-
Notifications
You must be signed in to change notification settings - Fork 389
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
adding --version flag results in fortran runtime error #1273
Comments
interesting error message since the left parenthesis in the format string is obviously there |
So far I am unable to reproduce this with CP2K v8.1+ built with either gcc or clang and gfortran-10.2 on macOS. |
Thanks a lot for checking - do you get the same error as me when you install cp2k using
? It is possible that this is somehow caused by either the specific compiler combination or compiler flags on conda-forge. Build log including compiler flags Relevant flags might be:
Compiler versions
|
Since the error message about the missing parenthesis is obviously bogus, we are most likely dealing with a compiler incompatibility that is not specific to CP2K. Hence, I'd suggest we close this issue. |
... since a lot of other applications conda provides seem to be working there is a good chance that the problem is still explicitly linked to CP2K. |
From #1273 (comment) it seems that clang and gfortran were mixed. I guess, other Conda packages are simply not doing that. |
yes, mixing clang and gfortran in a project where |
So, this issue is most likely not caused by CP2K and we can not reproduce it. I think, those are two good reason for closing it. |
@ltalirz I've got an idea how we can start verifying the issue if you can get access to the faulty binary. The data (format string AND result from $ strings exe/minimal/cp2k.sdbg | grep 'compiler'
--set, -E name=value : set the initial value of a preprocessor value (Development Version)(T2,A)CP2K version 9.0Source code revision git:8a5b25a-cpp -I /home/tiziano/work/cp2k/cp2k/src/start/ -I /home/tiziano/work/cp2k/cp2k/obj/minimal/sdbg/exts/dbcsr -D_REENTRANT -D __COMPILE_ARCH="minimal" -D __COMPILE_DATE="Thu Jan 28 05:12:17 PM CET 2021" -D __COMPILE_HOST="scarlet" -D __COMPILE_REVISION="git:8a5b25a" -D __DATA_DIR="/home/tiziano/work/cp2k/cp2k/data" -D __SHORT_FILE__="start/cp2k.F" -mtune=generic -march=x86-64 -fopenmp -ffree-form -fpre-include=/usr/include/finclude/math-vector-fortran.h(T2,A,A)compiler: GCC version 10.2.0compiler options:(T4,A)compiler_options_string
The compiler target flags (
Consider compiler target flags as part of FCFLAGS and CFLAGS (ARCH file). If you check inside the there you'll see the |
thanks for the suggestion!
Sure - just to be clear: anybody can get this binary on MacOS with
Here it is
i.e. this is gfortran from GCC 9.3.0 And clang version 11.0.0, see The reason we're mixing these two is because they are the default c & fortran compilers on conda-forge.
See e.g. Siesta This doesn't make it right, of course. P.S. We do verify on CI that the regtests all pass. Edit: Reproduced issue on CI. Edit: Unfortunately, there is no gcc for the osx platform :-( I.e. we'll need to make it work with clang here |
Actually, |
Do not wait for #770. I'm currently working on rewriting our |
the bug has been reproduced again on centos 8.3 stream, with gcc 8.3.1, openmpi 4.0.5, python 3.6.8, and mkl 2020.4. |
IIRC, the most likely cause was mixing compilers. So, I don't think there is anything we can do from CP2K's side. |
This is with cp2k 7.1 installed from conda forge on MacOS
The reported line is
cp2k/src/start/cp2k.F
Line 249 in 40eef54
Looks like it is still present in current master
cp2k/src/start/cp2k.F
Line 290 in 2285224
The text was updated successfully, but these errors were encountered: