Problem 770 - link error for neutron HP models
Summary: link error for neutron HP models
Status: RESOLVED WORKSFORME
Alias: None
Product: Geant4
Classification: Unclassified
Component: processes/hadronic/models (show other problems)
Version: 7.1
Hardware: PC Linux
: P2 major
Assignee: Gabriele Cosmo
URL:
Depends on:
Blocks:
 
Reported: 2005-07-15 20:31 CEST by ic02
Modified: 2005-08-02 00:12 CEST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this problem.
Description ic02 2005-07-15 20:31:45 CEST
Hi,
 I've encountered the following link error when including the neutron HP models
of elastic and inelastic scatter in my physics list. I reproduced the problem
whilst building the example advanced/underground_physics, in this case the error
is given below.

My environment is:
gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
I am using geant4.7.1 and G4ENDL3.7

Linking DMX ...
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld:
`.gnu.linkonce.t._ZN29G4NeutronHPEnergyDistribution4InitERSt14basic_ifstreamIcSt11char_traitsIcEE'
referenced in section `.rodata' of
/usr/local/geant4.7.1/lib/Linux-g++/libG4had_neu_hp.a(G4NeutronHPInelasticCompFS.o):
defined in discarded section
`.gnu.linkonce.t._ZN29G4NeutronHPEnergyDistribution4InitERSt14basic_ifstreamIcSt11char_traitsIcEE'
of
/usr/local/geant4.7.1/lib/Linux-g++/libG4had_neu_hp.a(G4NeutronHPInelasticCompFS.o)

/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld:
`.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd'
referenced in section `.rodata' of
/usr/local/geant4.7.1/lib/Linux-g++/libG4had_neu_hp.a(G4NeutronHPLabAngularEnergy.o):
defined in discarded section
`.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd'
of
/usr/local/geant4.7.1/lib/Linux-g++/libG4had_neu_hp.a(G4NeutronHPLabAngularEnergy.o)

/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld:
`.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd'
referenced in section `.rodata' of
/usr/local/geant4.7.1/lib/Linux-g++/libG4had_neu_hp.a(G4NeutronHPLabAngularEnergy.o):
defined in discarded section
`.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd'
of
/usr/local/geant4.7.1/lib/Linux-g++/libG4had_neu_hp.a(G4NeutronHPLabAngularEnergy.o)

/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld:
`.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd'
referenced in section `.rodata' of
/usr/local/geant4.7.1/lib/Linux-g++/libG4had_neu_hp.a(G4NeutronHPLabAngularEnergy.o):
defined in discarded section
`.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd'
of
/usr/local/geant4.7.1/lib/Linux-g++/libG4had_neu_hp.a(G4NeutronHPLabAngularEnergy.o)
Comment 1 Gabriele Cosmo 2005-07-26 05:06:59 CEST
We cannot reproduce the problem. The advanced example "underground_physics"
links and runs just fine with release 7.1.
Check that you're adopting compatible libraries with the system/compiler you're
using. The error seems to point out a binary incompatibility of the libraries.
Note: gcc-3.3.5/Suse is not a configuration we support or can verify.
Comment 2 Gabriele Cosmo 2005-07-31 15:04:59 CEST
iwan@uow.edu.au wrote:
>
> I will look into this; however, the problem was also
> reproduced using redhat 9.0. (see user forum posting 461 in
> installation and configuration forum).

I've verified that the 'underground_physics' example -AS IS- in release 7.1
links and runs fine also on a vanilla RedHat-9.0 system (gcc-3.2.2).
The problem is therefore still not reproducible.
The only suggestion I can give is to verify that the source code used is
corresponding to the original code downloadable from the Geant4 web site and
that libraries have been built from scratch without errors.
If after these checks the problem persists in your SUSE system, I'd suggest to
try installing an alternative gcc compiler (one of those supported by Geant4
and listed in the release notes), you can find some instructions on how to do
this in the Hypernews forum under the heading ...
http://geant4-hn.slac.stanford.edu:5090/HyperNews/public/get/installconfig/428/3/1/1/1/1.html
Then, reinstall CLHEP and Geant4.
Hope it helps.
Unfortunately, we do not have means to verify on a SUSE system; it is however
to be noticed that it's not the first time that the default gcc compiler
version shipped with various Linux distributions is NOT suitable for
development; if SUSE comes with a -prerelease- (!) of gcc, version 3.3.5
20050117 (prerelease), it is certainly something to take into account.

Please, update the corresponding postings on Hypernews if the problem gets
resolved, thanks.
Comment 3 ic02 2005-08-02 00:12:59 CEST
Hi there, I've just upgraded my compiler from:
gcc version 3.3.5 20050117 (prerelease) (SUSE Linux)
to
gcc version 4.0.1
and there is no longer a compatibility problem when using the HP models.
Regards,
Iwan