Skip to content

Conversation

@jihyeonjang
Copy link
Collaborator

@jihyeonjang jihyeonjang commented Feb 12, 2026

This PR fixes a similar issue in PR1327.

There is a DEBUG build issue due to the use of Fortran-only LDFLAGS_DEBUG in the ifort build target.

Builds of MPAS with make ifort CORE=atmosphere DEBUG=true were broken with the following error message:

Checking for a working PnetCDF library...
*********************************************************
ERROR: Test PnetCDF C program could not be compiled by mpicc.
Please ensure you have a working PnetCDF library installed.

The following compilation command failed with errors:
mpicc pnetcdf.c  -I/glade/u/apps/casper/23.10/spack/opt/spack/netcdf/4.9.2/openmpi/4.1.6/oneapi/2023.2.1/x5i2/include -I/glade/u/apps/casper/23.10/spack/opt/spack/parallel-netcdf/1.12.3/openmpi/4.1.6/oneapi/2023.2.1/ormb/include -g -traceback -DSINGLE_PRECISION -g -fpe0 -traceback -L/glade/u/apps/casper/23.10/spack/opt/spack/parallel-netcdf/1.12.3/openmpi/4.1.6/oneapi/2023.2.1/ormb/lib -lpnetcdf -o pnetcdf.out

Test program pnetcdf.c and output pnetcdf.log have been left
in the top-level MPAS directory for further debugging
*********************************************************

pnetcdf.log:

icx: error: unknown argument: '-fpe0'
icx: remark: Note that use of '-g' without any optimization-level option will turn off most compiler optimizations similar to use of '-O0'; use '-Rno-debug-disables-optimization' to disable this remark [-Rdebug-disables-optimization]

Thus, this PR removes -fpe0 from the definition of LDFLAGS_DEBUG for the ifort target.

@jihyeonjang jihyeonjang requested a review from mgduda February 12, 2026 02:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant