-
Notifications
You must be signed in to change notification settings - Fork 2
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
Recompile issue typedefs.f90 on CSC Puhti #2
Comments
I guess this isn't the log from a fresh (rm -r build/*) build? Otherwise, the fact that its not using the toolchain file is probably an issue. Which toolchain are you using? |
I did remove the build directory (I tried first not to remove it, but then the recompiled HiDEM still caused problems on puhti so I hoped that a fresh recompilation may solve those problems). Below are the .sh and .cmake (but with changed .txt extension here for Github upload) |
So, to be totally clear, even when you remove everything from the build directory, your log still warns: 'CMake Warning: |
yes |
Indeed, the problem is related to not using the toolchain, which leads to wrong compilers being used and therefore the error messages came up. When I copied the CMake files/folders from the previous builddir to the new builddir, but made sure the builddir was empty besides those copies, it indeed compiles without errors. So the issue is partly solved, except that it would be good to fix the compilation script such that the right toolchain is automatically used. |
I cannot understand why the toolchain wouldn't be used. I suspect maybe you accidentally have CMakeCache.txt or something in amongst your source files? |
Computing system (please complete the following information):
Issue Type
Error message in compilation
Error message or symptoms
mpif-sizeof.h:395.47:
Included at mpif.h:63:
Included at /users/eefvan/sources/puhti/HiDEM/src/typedefs.f90:14:
Error: Array specification at (1) has more than 7 dimensions
Fatal Error: Error count reached limit of 25.
This same error (more than 7 dimensions) came up 25 times. Maybe related to:
CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_TOOLCHAIN_FILE
Describe the context
Due to problems on Puhti, I had to recompile HiDEM. I have removed the build directory and tried to use the same compilation file as before, but then the above errors came up.
The text was updated successfully, but these errors were encountered: