8000 bug: mkmf + fixsystem relies on the FC variable in the makefile being the name of the compiler · Issue #870 · NCAR/DART · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

bug: mkmf + fixsystem relies on the FC variable in the makefile being the name of the compiler #870

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
hkershaw-brown opened this issue May 5, 2025 · 0 comments
Labels
build-system issues related to building dart

Comments

@hkershaw-brown
Copy link
Member

🐛 Your bug may already be reported!

Describe the bug

  1. List the steps someone needs to take to reproduce the bug.
    Build dart on a machine such as Perlmutter, where the recommended compiler wrapper is ftn.
    FC = ftn
    Or in EMSFx containers where the compiler is gfortran-version
  2. What was the expected outcome?
    You can build DART
  3. What actually happened?
    DART fails to build

Error Message

ftn types_mod.o null_mpi_utilities_mod.o parse_args_mod.o preprocess.o utilities_mod.o time_manager_mod.o -o /global/u2/h/hkershaw/DART/DART/assimilation_code/programs/preprocess/preprocess  -O2 -ffree-line-length-none -I/opt/cray/pe/netcdf/4.9.0.13/gnu/12.3/include -L/opt/cray/pe/netcdf/4.9.0.13/gnu/12.3/lib -lnetcdff -lnetcdf
/usr/lib64/gcc/x86_64-suse-linux/13/../../../../x86_64-suse-linux/bin/ld: null_mpi_utilities_mod.o: in function `__mpi_utilities_mod_MOD_shell_execute':
null_mpi_utilities_mod.f90:(.text+0x391): undefined reference to `system_'
collect2: error: ld returned 1 exit status
make: *** [Makefile:45: /global/u2/h/hkershaw/DART/DART/assimilation_code/programs/preprocess/preprocess] Error 1

You can set FC = gfortran

MPIFC = ftn
MPILD = ftn
FC = gfortran
LD = ftn

but then you loose the compiler wrapper functionality (e.g. linking to netcdf, whatever else they have set up on the machine).

Which model(s) are you working with?

ESM3, lorenz_96, all models.

Version of DART

Which version of DART are you using?
You can find the version using git describe --tags
v11.10.9

Have you modified the DART code?

No

Build information

Please describe:

  1. Perlmutter
  2. The compiler you are using (e.g. gnu, intel). GNU Fortran (SUSE Linux) 13.2.1 20240206
@hkershaw-brown hkershaw-brown added the build-system issues related to building dart label May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build-system issues related to building dart
Projects
None yet
Development

No branches or pull requests

1 participant
0