Message: Re: shared library problem with QGSP_BIC Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question Re: shared library problem with QGSP_BIC 

Forum: Installation and Configuration
Re: Question shared library problem with QGSP_BIC (Tom Roberts)
Re: Question Re: shared library problem with QGSP_BIC (Gabriele Cosmo)
Re: News Re: shared library problem with QGSP_BIC (Tom Roberts)
Date: 30 Jul, 2009
From: Tom Roberts <Tom Roberts>

This is even stranger. This test makes me conclude that this problem has something to do with the compilation, not with linking the shared libraries or with their initialization.

With G4WORKDIR=$G4INSTALL, I built exampleN01 using global shared libraries, its original form works fine, but with my edit to use QGSP_BIC it takes a Bus error, as before.

Then I built example N01 without any Geant4 library, just linking all Geant4 .o-s:
    cd $G4INSTALL/tmp/Darwin-g++
    g++ -o exN01 exampleN01/exe/*.o */*.o ~/clhep/lib/libCLHEP.a

In its original form it works fine when built this way. But with my edit to use QGSP it takes a Bus error as before:
     Geant4 version Name: geant4-09-02-patch-01 (13-March-2009)
                          Copyright : Geant4 Collaboration
                          Reference : NIM A 506 (2003), 250-303
                                WWW :
    <<< Geant4 Physics List engine packaging library: PACK 5.4
    <<< Geant4 Physics List simulation engine: QGSP_BIC 3.3
    ### Adding tracking cuts for neutron TimeCut(ns)= 10000 KinEnergyCut(MeV)= 0
    Bus error

Note that these .o files were compiled with Geant4 configured for shared global libraries, but here they were linked all together into the executable with no shared libraries at all (except C++ and system .dylib-s).

    env | grep G4

    otool -L exN01
  /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current version 7.4.0)
  /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0, current version 1.0.0)
  /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 111.1.4)

 Add Message Add Message
to: "Re: shared library problem with QGSP_BIC"

 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 ]