Problem 1863 - internal compiler error: in var_defined_without_dynamic_init, at cp/decl2.c:3005
Summary: internal compiler error: in var_defined_without_dynamic_init, at cp/decl2.c:3005
Status: CLOSED FIXED
Alias: None
Product: Geant4
Classification: Unclassified
Component: cmake (show other problems)
Version: 10.2
Hardware: Other Linux
: P5 normal
Assignee: Ben Morgan
URL:
Depends on:
Blocks:
 
Reported: 2016-06-02 21:56 CEST by jp
Modified: 2018-05-08 14:44 CEST (History)
0 users

See Also:


Attachments
gcc-4.9.0 build log (77.62 KB, application/octet-stream)
2016-06-02 21:56 CEST, jp
Details

Note You need to log in before you can comment on or make changes to this problem.
Description jp 2016-06-02 21:56:16 CEST
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
Comment 1 Gabriele Cosmo 2016-06-03 08:47:48 CEST
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).
Comment 2 jp 2016-06-14 22:13:25 CEST
This is resolved.
Geant4 built effortlessly with GCC-5.3.0.  
Thank you!