gcam-core
gcam-core copied to clipboard
GCAM build error
I am attempting to build GCAM on a UNIX HPCC. I have followed the instructions and installed all required packages, but the build fails every time and returns an internal compiler error and terminates the build at the same spot every time. The section of the output where the error occurs is provided below: /software/gcc/11.2.0/bin/g++ -O3 -pthread -ggdb -DNDEBUG -DFUSION_MAX_VECTOR_SIZE=30 -MMD -std=c++14 -Wno-deprecated -I/home/kag2592/gcam-core/libs/boost-lib -I/home/kag2592/java/jdk-19.0.2/include -I/home/kag2592/java/jdk-19.0.2/include/linux -I/home/kag2592/gcam-core/libs/tbb/include -I../../climate/source/hector/headers -I/home/kag2592/gcam-core/libs/eigen -I../../.. -I/home/kag2592/include -DJARS_LIB=""/home/kag2592/gcam-core/libs/jars/*"" -DGCAM_PARALLEL_ENABLED=1 -DUSE_HECTOR=1 -c -o xml_parse_helper.o xml_parse_helper.cpp g++: internal compiler error: Bus error signal terminated program cc1plus Please submit a full bug report, with preprocessed source if appropriate. See https://gcc.gnu.org/bugs/ for instructions. make[1]: *** [xml_parse_helper.o] Error 4 make[1]: Leaving directory `/home/kag2592/gcam-core/cvs/objects/util/base/source' make: *** [util_base_dir] Error 2
Any help on why this is happening and how to fix it would be greatly appreciated!
Since this is an internal compiler error, I would try a different version of the compiler itself. HPC systems that use the "module" approach to loading things like compilers often offer different versions of gcc/g++.
For example, on PNNL's HPC system, these are available:
$ module avail gcc
------------------------------------------------------------------------ /share/apps/modules/Modules/3.2.10/modulefiles/development/compilers -------------------------------------------------------------------------
gcc/12.1.0 gcc/4.6.2 gcc/4.9.2 gcc/5.2.0 gcc/6.3.0 gcc/7.3.0 gcc/8.1.0
gcc/4.4.7(default) gcc/4.8.2 gcc/5.1.0 gcc/6.1.0 gcc/7.1.0 gcc/7.5.0
I've successfully built GCAM there using gcc/6.1.0, but I'm sure other versions work, too.
Thanks for the suggestion. I've tried most of the versions of gcc available on the system and the build has now failed with gcc versions 4.9.2, 5.1.0, 6.3.0, 6.4.0, 8.4.0, 9.2.0, and 11.2.0. The error occurs at the same point regardless of the version of gcc used.