-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
install spack-stack-1.4.0 on gaea C5 after Gaea's upgrade@20241015 #1347
Comments
@jieshunzhu we are re-installing spack-stacks 1.6.0, 1.7.0 and 1.8.0 on Gaea-C5. Currently, I'm installing 1.6.0.
Since you already installed 1.4.0 before, follow same instructions, just change these two yaml files. Also, before installation make sure new modules are loaded:
|
@RatkoVasic-NOAA @climbfuji I tried to reinstall spack-stack1.4.0 by modifying compilers.yaml and packages.yaml. I got an error in "spack install". It looks like the error is related to "mapl". My installation log is here: /gpfs/f5/cfsrl/scratch/JieShun.Zhu/util/spack-stack/c5/spack-stack/log5.install When you have time, could you please help me take a look at it? Thanks a lot! |
@jieshunzhu
Can you please allow read permission. |
@RatkoVasic-NOAA Thanks for quick response. I have changed the access permission |
I looked at log file. MAPL installation crashed without any meaningful message:
Do you know if it is important to keep that MAPL version ([email protected]/[email protected])? For that you'll have to replace files:
with:
And update version numbers (mapl and esmf) in:
|
Thanks @RatkoVasic-NOAA. Let me try your suggestion.... |
@RatkoVasic-NOAA I tried to build with [email protected]/[email protected]. But at the step of "spack concretize" I got the error saying "==> Error: FilePatch: Patch file backport-b571b3f-from-develop-to-v2.40.3.patch for package builtin.mapl does not exist." Here is my directory: /gpfs/f5/cfsrl/scratch/JieShun.Zhu/util/spack-stack/c5_20241021t/spack-stack. In addition, I used the script: /ncrc/proj/epic/spack-stack/spack-stack-1.5.1/spack/var/spack/repos/builtin/packages/mapl/package.py. |
@jieshunzhu Yes, there are patch files, so maybe the best is to replace your mapl and esmf directories:
with
|
@RatkoVasic-NOAA Thanks for your quick response. I got your idea and will try replacing the two whole directories. |
@RatkoVasic-NOAA By replacing the two directories, I got another error in the "spack concretize" step, saying "==> Error: too many values to unpack (expected 1)". |
I don't know if this is making problem, but you have all compilers in spack.yaml:
|
And, also, you have
twice in /gpfs/f5/cfsrl/scratch/JieShun.Zhu/util/spack-stack/c5_20241021t/spack-stack/envs/unified-dev/common/modules.yaml |
@RatkoVasic-NOAA It looks like the modules.yaml @ spack-stack1.4.0 includes parts for "tcl" and "lmod". But in spack-stack1.6.0, there are two separate files - modules_lmod.yaml and modules_tcl.yaml. |
@climbfuji @RatkoVasic-NOAA @AlexanderRichert-NOAA Hi All, after so many tests, I still got the same error "==> Error: too many values to unpack (expected 1)" in "spack concretize". Could you please give me some hint about my problem? Thanks. |
Can you provide exact steps to reproduce? |
Thanks for your reply, Alex. Here are my steps.
S2 is to use the new compilers at Gaea-C5; S3/4 are to use [email protected]/[email protected] following the suggestion by RatkoVasic-NOAA. |
I am unable to reproduce the issue with those steps-- it concretizes without error. Can you try deleting or relocating your ~/.spack directory? There's always a chance that it's an issue of using multiple spack versions with the same user cache/bootstrap/etc. |
Thanks @AlexanderRichert-NOAA. Let me try that. Meanwhile, can you also share me with your directory? |
/ncrc/home1/Alexander.Richert/spack-stack-1.4.0/envs/unified-dev |
Thanks, Alex! It looks like modules.yaml and packages.yaml under envs/unified-dev/common were not updated. Would you please update them and try "concretize" again? In addition, I just deleted ~/.spack, and tried "concretize" again. I still got the same error. |
I recopied packages.yaml and modules.yaml from /gpfs/f5/cfsrl/scratch/JieShun.Zhu/util/spack-stack/c5_20241021t/spack-stack/configs/common. Are you doing any module loads in your shell rc file, or running in a conda env, anything like that? |
Thanks Alex. Please let me know if you get the same error as I got or not, after using the new packages.yaml and modules.yaml. No, I didnot do additional module loads in my rc files, nor conda env. |
Okay, that did it. The issue is that the older copy of spack used by spack-stack 1.4.0 doesn't have the newer any_of/one_of logic for the esmf:
version: [8.5.0]
variants: ~xerces ~pnetcdf snapshot=none ~shared +external-parallelio
require: 'fflags="-fp-model precise" cxxflags="-fp-model precise"' edit: The above isn't working, I'll update when I have a working yaml entry... |
I can't find a clean way to add the |
@AlexanderRichert-NOAA Thanks for the instruction. I chose to delete the flags. Now I can complete the "concretize" step. I am now with the "install" step. I will give you the update here. Thanks again for your help. |
@AlexanderRichert-NOAA @RatkoVasic-NOAA I tried another two reinstallation with my above steps. I got failures in the "install" step. Both failures are "Error: Exception occurred in writer daemon!", but for different packages (one during pcre2, another one during wgrib2).
Could you please help me take a look at them? |
@jieshunzhu since this is very old version and it took quite some time without success, I suggest you switch to newer version of the spack stack. Version 1.5.1 is going to be supported for next 2 months, so I'd suggest you try updating your work to at least spack-stack 1.6.0. |
@RatkoVasic-NOAA Thanks for your suggestion. The problem for me is that I am still using an old version of soca-science. In early of this year, I tried to build it with spack-stack 1.4.1. Even with that, I still got a failure. But spack-stack 1.4.0 works for me. In any case, I will give it another try with 1.6.0 or other versions of spack-stack. I will share my updates here when done. Thanks again. |
You might as well jump up to 1.8.0 so that you have a stable release to work with for the next 11 months. |
@climbfuji @RatkoVasic-NOAA @AlexanderRichert-NOAA I started with 1.8.0, but got lots of issues. So I turned to 1.6.0, and it seems close to a success in "ecbuild" but with a problem in "bufr". You can see my log file here: /gpfs/f5/cpchso/scratch/JieShun.Zhu/ng-godas/CODEs/JZstable-nightly.20220729_iodaconvert20241112c5spack1.6.0/build/ecbuild.out. Here is my options used in "ecbuild":
|
This reflects a change in the bufr library, I believe, where it no longer builds a separate _d target. I suggest checking the documentation and/or creating an issue under the NCEPLIBS-bufr repo to see what's involved in updating your code to use bufr v12+. |
@AlexanderRichert-NOAA Thanks for the quick response. I will take a look at the documentation. |
I think I am able to build my code with spack-stack-1.7.0 with some changes in my code. But I am not able to use spack-stack-1.8.0. Let me give it more tests. |
Hello,
I am running an old version soca-science which needs to use spack-stack-1.4.0. Previously we followed Dom's instruction and installed spack-stack-1.4.0 on my own directory. But since Gaea's recent upgrade, the old compilers (e.g., PrgEnv-intel/8.3.3;
intel-classic/2022.2.1; cray-mpich/8.1.25) are not available.
Did anyone try to install any version of spack-stack after the Gaea upgrade? Could you please instruct me where to modify and how to install spack-stack-1.4.0?
Thanks,
Jieshun
The text was updated successfully, but these errors were encountered: