-
Notifications
You must be signed in to change notification settings - Fork 11
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
Preprocessor failure with gfortran in xml_routines.f90 in 7.0 #9
Comments
Can you try now? I fixed and uploaded new tar.gz files to the release. |
Please note that the preprocessing unconditionally removed these conditional statements: #if defined(__OMP)
integer, external :: omp_get_max
nthreads = omp_get_max()
#endif I'll give it a try, I just have to unbreak my build recipes first as modifying the release tarballs in-place caused the checksum protection to (rightfully) alert. |
The generated source file does not compile here as several lines are too long, assuming this is some 135 character Fortran limit that the/our QE build process doesn't specify a flag for?
In my manual preprocessing, I had to manually line-wrap the output of |
Dear Lars, tomorrow I'll try to fix both issues. Thank you for pointing out! |
The macros in
xml_routines.f90
use the stringification feature#x
of the preprocessor which is not available in the "traditional"cpp
mode that the GNU toolchain uses to preprocess code.This leads to several compilation failures like the following as the
#
is emitted verbatim into the resulting source file:Manual expansion of the macros that use
#
(splitting the longer ones into multiple lines due to line lengths) compiles properly.This is building via EasyBuild and its foss/2021b and intel/2021b toolchains, Intel seems unaffected.
The text was updated successfully, but these errors were encountered: