-
Notifications
You must be signed in to change notification settings - Fork 47
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
Spack-stacks on Hera with gnu/13.3.x and openmpi/4.1.6 built for Rocky8 #1090
Comments
Found issues reported with spack building proj-8.1.0: "Installation issue: proj #42775" UPDATE: Version |
Another package build fails: odc-1.4.6 Some of the errors:
|
Updates:
Spack-stack/1.6.0 for ufs-wm-env and ufs-srw-env (not the entire unified-env) were built successfully for custom-installed gnu-13.2.0 and openmpi-4.1.6, as well as with system-wide installation of gnu-13.2.0 and openmpi-4.1.6. These included esmf/8.1.6 and mapl/2.46.0. Building ufs-weather-model, however, gives internal compiler error (ICE) while either of these two stacks is used. The gnu/14.1.0 is built under Opened a bug report in
Found a workaround for gnu/14.1.0 gcc warnings/errors issues: using cflag="-Wno-implicit-function-declaration ..." helped to avoid errors during the build. The following "cflags" was needed to build successfully a package (wgrib2, in particular) that had troubles being compiled: cflags="Wno-deprecated-declarations -Wno-implicit-function-declaration -Wno-incompatible-pointer-types -Wno-implicit-int"
The stack environments are built under /scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0_gnu14/ |
A gnu compiler version 13.3.0 has been released as well, which it is claimed having an internal compiler error fixed; internal compiler error appeared in gnu/13.2.0.
|
Update for gnu/13.2.0 bug, fixed in 13.3.0: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115107#c15 Locations of the spack-stacks (NB: packages for UFS-WM and UFS-SRW only!) /scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.6.0_gnu13.3/envs/ufs-wm-srw-rocky8 Added a comment on ufs-weather-model repository on the tests with spack-stack/1.5.1 and spack-stack-1.6.0 (for ufs-weather-model and ufs-srweather-app packages only): |
Update for ufs-weather-model, spack-stack-1.6.0 with gnu/13.3.0 and openmpi/4.1.6: |
Is this all done, can the issue be closed? |
This was built only for the UFS WM and SRW packages. Still needs solutions for a couple of other packages for the ue-dev, getting back to the issue! |
Well, I built the unified environment with gcc@13 and committed the spack submodule pointer updates. The only thing missing is to bump odc from 1.4.6 to 1.5.2, which I am doing in #759. |
Oh, that's awesome! On which platforms is the unified env. installed with the gcc@13, where could I check the logs how the installation issues were resolved??. I wonder if the issue with the gcc@13 could be considered solved with the gcc.gnu.org/bugzilla... |
I did that on my laptop (repeatedly) |
|
Rocky Linux 9 |
Finding the same error as found earlier with odc/1.4.6 when built with the [email protected]:
The odc: It did record the flag during concretization:
However, odc was still being built with the "-std=gnu++11" during the install phase. Any suggestions will be helpful! |
I mentioned this a few comments above! You need to bump odc to 1.5.2 - the spack-stack PR that does the update still hasn't been merged. |
@climbfuji - thank you, all is great now! I haven't realized bumping odc to 1.5.2 was part of the solution. The unified environment for spack-stack-1.6.0 has built successfully to completion on Hera Rocky 8 ([email protected], [email protected]). The env. is located: I've tested this environment for building SRW and launched a single test; it is successfully running. This issue could be closed. |
More than happy to do that! Thanks for testing in spack-stack-1.6.0. |
Issues have been reported with Weather Model runs on Hera, with Gnu compiler, after transition to Rocky8.
ufs-community/ufs-weather-model#2200
The compiler used was still gnu/9.2.0
** Offering a solution **
To build an updated gnu and openmpi on Rocky 8 system.
A new installation of gnu/13.2.0 compiler suite (gcc, g++, gfortran) is built on Hera/ Rocky 8 system, in a separate role.epic location. Openmpi/1.4.6 is built with this new gnu/13.2.0 compiler as well.
Installation locations for gnu and openmpi:
/scratch2/NCEPDEV/stmp1/role.epic/installs/gnu/13.2.0
/scratch2/NCEPDEV/stmp1/role.epic/installs/openmpi/4.1.6
Modules to be loaded as following:
Building spack-stack-1.5.1 environment in
/scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.5.1/envs/uni fied-env-rocky8
.The following modules need to be loading the modules before building the spack-stack environment:
(NB: order of modulepaths matter here, as the /scratch1/NCEPDEV/nems/role.epic/modulefiles has another openmpi/4.1.6 modulefile from an earlier installation and compiler)
94 packages were successfully built in this unified-env-rocky8 environment, but getting some errors in others, i.e., proj-8.1.0. These errors could be likely related to different standards for c++, as shown below. The option -std=c++11 is currently used as appears in the logs, and I wonder if -std=c++98 could possibly help.
A question: is it a good idea to try setting -std=c++98 for the entire stack build, or try specifying it only for certain packages that report errors? Any other ideas?
Most recent log file:/scratch2/NCEPDEV/stmp1/role.epic/spack-stack/spack-stack-1.5.1/envs/unified-env-rocky8/log.install.unified-env.003
(cache cleaned up, however, to have other options tested)
Errors as following:
... (more similar errors)...
Attached is the most recent spack.lock and the installation build log.
spack.lock.hera.rocky8.txt
log.install.unified-env.003.txt
######### Summaries on building gnu/13.2.0, openmpi/4.1.6:
Hera.Rocky8.gcc-13.2.0.txt
Hera.Rocky8.openmpi.4.1.6.txt
The text was updated successfully, but these errors were encountered: