| Summary: | internal compiler error: in var_defined_without_dynamic_init, at cp/decl2.c:3005 | ||
|---|---|---|---|
| Product: | Geant4 | Reporter: | jp <jpalencia3> |
| Component: | cmake | Assignee: | Ben Morgan <Ben.Morgan> |
| Status: | CLOSED FIXED | ||
| Severity: | normal | ||
| Priority: | P5 | ||
| Version: | 10.2 | ||
| Hardware: | Other | ||
| OS: | Linux | ||
| Attachments: | gcc-4.9.0 build log | ||
None of the compiler selected is suitable for building Geant4 10.2.p01. gcc-4.9.0 is known to be buggy in the implementation of thread-local-storage, required by Geant4. Please upgrade to a more recent version of the gcc compiler (latest 4.9 series or 5.3). This is resolved. Geant4 built effortlessly with GCC-5.3.0. Thank you! |
Created attachment 401 [details] gcc-4.9.0 build log Trying to build geant4.10.02.p01 on Arch: RH Enterprise 6.5 Kernel: 2.6.32-431.20.3.el6.x86_64 Here's my cmake: cmake --trace-expand --debug-output -D CMAKE_BUILD_TYPE=Release \ -DGEANT4_BUILD_MULTITHREADED=ON \ -DGEANT4_USE_RAYTRACER_X11=ON \ -DGEANT4_USE_OPENGL_X11=ON \ -DGEANT4_INSTALL_DATA=ON \ -DGEANT4_USE_QT=ON \ -DGEANT4_INSTALL_DATADIR=/usr/local/pacerepov1/${SOFTWARE}/${VERSION}/data \ -DCMAKE_INSTALL_PREFIX =/usr/local/pacerepov1/${SOFTWARE}/${VERSION}/${COMPILERVERSION} \ -DGEANT4_INSTALL_DATA_TIMEOUT=6000 \ ../ \ && make -j8 \ && make install * both ON/OFF switches for each option has been tried/tested. * it works if you turn off multithread (the build is available/usable) Here are the compilers I tried building it with intel-15.0 intel-14.0.2 gcc-4.9.0 gcc-4.7.2 gcc-4.4.5/4.4.7 Other modules loaded cmake/3.5.2 qt/5.5.1 Below is the compile error message GCC-4.9.0 [ 26%] Building CXX object source/particles/CMakeFiles/G4particles.dir/management/src/G4ParticlesWorkspace.cc.o -- [download 79% complete] /build/josephin/geant4.10.02.p01/source/particles/management/src/G4ParticleDefinition.cc: In function ‘G4int& _ZTWN14G4PDefSplitterIT_E15slavetotalspaceE()’: /build/josephin/geant4.10.02.p01/source/particles/management/src/G4ParticleDefinition.cc:469:1: internal compiler error: in var_defined_without_dynamic_init, at cp/decl2.c:3005 } ^ 0x58e0ea var_defined_without_dynamic_init ../../gcc/cp/decl2.c:3005 0x58e0ea var_needs_tls_wrapper ../../gcc/cp/decl2.c:3021 0x59469b get_tls_init_fn ../../gcc/cp/decl2.c:3055 0x595073 generate_tls_wrapper ../../gcc/cp/decl2.c:3182 0x595073 cp_write_global_declarations() ../../gcc/cp/decl2.c:4445 Attached is build log using gcc-4.9.0 (full log 1.2M lines). Ps let me know if more info is needed. Thanks