Skip to content
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

Open
eefvandongen opened this issue Nov 19, 2019 · 6 comments
Open

Recompile issue typedefs.f90 on CSC Puhti #2

eefvandongen opened this issue Nov 19, 2019 · 6 comments

Comments

@eefvandongen
Copy link
Collaborator

Computing system (please complete the following information):

  • Machine name: Puhti @ CSC, Espoo
  • HiDEM commit hash [e.g. 53e2eb5]: 924c983

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:

  COMPLEX(REAL64), DIMENSION(1,1,1,1,1,1,1,*)::x
                                           1

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.

@joeatodd
Copy link
Owner

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?

@eefvandongen
Copy link
Collaborator Author

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)
compile_cray.txt
HiDEM-cray-taito.txt

@joeatodd
Copy link
Owner

So, to be totally clear, even when you remove everything from the build directory, your log still warns: 'CMake Warning:
Manually-specified variables were not used by the project:
CMAKE_TOOLCHAIN_FILE' ?

@eefvandongen
Copy link
Collaborator Author

yes

@eefvandongen
Copy link
Collaborator Author

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.

@joeatodd
Copy link
Owner

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?

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

No branches or pull requests

2 participants