8000 CAMP does not compile with gcc13 on Mac · Issue #31 · open-atmos/camp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

CAMP does not compile with gcc13 on Mac #31

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

Open
mattldawson opened this issue Feb 25, 2025 · 0 comments
Open

CAMP does not compile with gcc13 on Mac #31

mattldawson opened this issue Feb 25, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@mattldawson
Copy link
Collaborator

The build fails with this message:

[  4%] Building Fortran object CMakeFiles/camplib.dir/src/aero_rep_factory.F90.o

-- stderr output is:
/Users/fier887/Downloads/ambrs_project/ambuilder/build/libraries/camp-src/src/aero_rep_factory.F90:473:32:

  473 | end module camp_aero_rep_factory
      |                                1
Error: Contained procedure ‘__final_camp_util_String_t’ at (1) of a PURE procedure must also be PURE

(null):0: confused by earlier errors, bailing out
make[5]: *** [CMakeFiles/camplib.dir/src/aero_rep_factory.F90.o] Error 1
make[4]: *** [CMakeFiles/camplib.dir/all] Error 2
make[3]: *** [all] Error 2
 
CMake Error at /Users/fier887/Downloads/ambrs_project/ambuilder/build/libraries/camp/src/camp-stamp/camp-build-.cmake:47 (message):
  Stopping after outputting logs.

make[2]: *** [libraries/camp/src/camp-stamp/camp-build] Error 1
make[1]: *** [libraries/CMakeFiles/camp.dir/all] Error 2
make: *** [all] Error 2

This was the command used for the build:

cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/opt/miniconda3/envs/ambrs2 -DENABLE_CAMP=ON -DCMAKE_Fortran_COMPILER=/opt/miniconda3/envs/ambrs2/bin/gfortran

Here is the version:

/opt/miniconda3/envs/ambrs2/bin/gfortran --version 
GNU Fortran (GCC) 13.2.0

This does work:

cmake -S . -B build -DCMAKE_INSTALL_PREFIX=/opt/miniconda3/envs/ambrs2 -DENABLE_CAMP=ON -DCMAKE_Fortran_COMPILER=/opt/homebrew/bin/gfortran

Here is the version:

/opt/homebrew/bin/gfortran --version 
GNU Fortran (Homebrew GCC 14.2.0_1) 14.2.0

@jeff-cohere @lfierce2

@mattldawson mattldawson added the bug Something isn't working label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant
0