Message: Re: linking Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Re: linking 

Forum: Installation and Configuration
Re: None linking (andrea lucaroni)
Date: 16 Nov, 2015
From: Ben Morgan <Ben Morgan>

On Sat, 14 Nov 2015 15:41:19 GMT, andrea lucaroni wrote:
> Dear All
> 
> i try installer geant 4.9.6 path 03 in :
> i686 athlon i386 GNU/Linux
> 
> I create the config file with command:
> cmake -DCMAKE_INSTALL_PREFIX=/home/dicapua/ARTE/comp/geant4.9
> -DGEANT4_USE_GDML=ON -DXERCESC_ROOT_DIR=/home/dicapua/ARTE/comp/xerces
> -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_RAYTRACER_X11=ON
>  -DCMAKE_C_COMPILER=gcc4 -DCMAKE_CXX_COMPILER=g++4
> /home/dicapua/ARTE/software/geant4.9.6.p03
> 
> I get this error:
> 
> [ 80%] Building CXX object
> source/processes/CMakeFiles/G4processes.dir/transportation/src/G4VTrackTerminator.cc.o
> [ 80%] Linking CXX shared library
> ../../outputs/library/Linux-g++/libG4processes.so
> Error running link command: Argument list too long
> make[2]: *** [outputs/library/Linux-g++/libG4processes.so] Error 2
> make[1]: *** [source/processes/CMakeFiles/G4processes.dir/all] Error 2
> make: *** [all] Error 2
> 
> I do not understand the problem.
> 
> thanks
> Andrea
> 
>  [ MIME part of type text/html without a name stripped ]
> 

This is likely due to using an old kernel that is limited in the length of command line that can be taken. G4processes is composed of a large number of files, so can run into this issue.

The only workaround on systems like this is to use a build directory with as few characters as possible. For example, try and build in /tmp/g4. That's usually enough to resolve things.

Cheers,

Ben.

 Add Message Add Message
to: "Re: linking"

 Subscribe Subscribe

This site runs SLAC HyperNews version 1.11-slac-98, derived from the original HyperNews


[ Geant 4 Home | Geant 4 HyperNews | Search | Request New Forum | Feedback ]