-
Notifications
You must be signed in to change notification settings - Fork 23
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
Compilation issues on RHEL with GCC 10.3.0 and VTK 9.0.1 #115
Comments
@lennartvi I'm not sure what's going on with For the |
Hi Dave, thanks for the tip! I had to recompile the solver this week and commenting out the cvsolver_iotype indeed allowed successful compilation with GCC10. If you have any update on the VTK error, would be happy to learn more. Best, Lennart |
When compiling from source using CMake on Red Hat Enterprise Linux, I ran into some problems after our HPC software environment was updated to new GCC and VTK versions. Previously, compilation on this system worked well for GCC 9.3.0 and VTK 8.2.0. Trying to compile with GCC 10.3.0 and VTK 9.0.1 gave me two distinct errors in the make process, copied below.
For GCC 10.3.0, I used the Fortran compiler -std=legacy flag to convert errors from the Fortran code into warnings, but compilation then got stuck when the svsolver executable was being built.
System overview
Software
svSolver
During the make process, this first gave a problem when linking to the VTK binaries, as copied below.
I have found some similar error codes for VTK linking at https://discourse.slicer.org/t/build-fails-in-vtk-many-undefined-references/12150. A possible solution there was to turn off libssh2 in External_curl.cmake, but I am unsure if this helps and how to implement this option in my compilation configuration.
When reverting to an older VTK version (VTK-8.2.0), this error no longer disappeared.
With VTK-8.2.0 and GCC-10.3.0 (and the -std=legacy Fortran flag), I got the following error in a subsequent step of the compilation.
From what I can understand, there appears to be an ambiguous definition of cvsolver_iotype in write_restart_files.c.o and main.cxx.o?
This error was resolved when I used GCC 9.3.0. So using GCC 9.3.0 and VTK 8.2.0 fixed the issues for me, but would be great for future compatibility if new versions are supported.
The text was updated successfully, but these errors were encountered: