Message: Linking errors with ported application Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Linking errors with ported application 

Keywords: geant4 compilation problem
Forum: Particles
Date: 08 Aug, 2006
From: Dan LaFuze <dlafuze@optivus.com>

Sorry if this is the wrong forum. I've just ported a working geant4 simulation from some of our postdocs that worked on windows to virtually the latest version. (4.8.0-1 if I'm reading release notes properly)

I'm using SUSE 10 with gcc 4.0.2 20050901

I'm using GNU Make 3.80

I've successfully compiled and installed CLHEP and geant4 and have been successfully compiling/modifying/running examples with no problem.

After porting our existing application, I made it all the way to the linker phase before I started seeing this:

`.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd' referenced in section `.rodata' of ../../lib//libG4had_neu_hp.a(G4NeutronHPVector.o): defined in discarded section `.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd' of ../../lib//libG4had_neu_hp.a(G4NeutronHPVector.o) `.gnu.linkonce.t._ZN29G4NeutronHPEnergyDistribution4InitERSt14basic_ifstreamIcSt11char_traitsIcEE' referenced in section `.rodata' of ../../lib//libG4had_neu_hp.a(G4NeutronHPFissionBaseFS.o): defined in discarded section `.gnu.linkonce.t._ZN29G4NeutronHPEnergyDistribution4InitERSt14basic_ifstreamIcSt11char_traitsIcEE' of ../../lib//libG4had_neu_hp.a(G4NeutronHPFissionBaseFS.o) `.gnu.linkonce.t._ZN29G4NeutronHPEnergyDistribution4InitERSt14basic_ifstreamIcSt11char_traitsIcEE' referenced in section `.rodata' of ../../lib//libG4had_neu_hp.a(G4NeutronHPInelasticBaseFS.o): defined in discarded section `.gnu.linkonce.t._ZN29G4NeutronHPEnergyDistribution4InitERSt14basic_ifstreamIcSt11char_traitsIcEE' of ../../lib//libG4had_neu_hp.a(G4NeutronHPInelasticBaseFS.o) `.gnu.linkonce.t._ZN29G4NeutronHPEnergyDistribution4InitERSt14basic_ifstreamIcSt11char_traitsIcEE' referenced in section `.rodata' of ../../lib//libG4had_neu_hp.a(G4NeutronHPInelasticCompFS.o): defined in discarded section `.gnu.linkonce.t._ZN29G4NeutronHPEnergyDistribution4InitERSt14basic_ifstreamIcSt11char_traitsIcEE' of ../../lib//libG4had_neu_hp.a(G4NeutronHPInelasticCompFS.o) `.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd' referenced in section `.rodata' of ../../lib//libG4had_neu_hp.a(G4NeutronHPLabAngularEnergy.o): defined in discarded section `.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd' of ../../lib//libG4had_neu_hp.a(G4NeutronHPLabAngularEnergy.o) `.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd' referenced in section `.rodata' of ../../lib//libG4had_neu_hp.a(G4NeutronHPLegendreStore.o): defined in discarded section `.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd' of ../../lib//libG4had_neu_hp.a(G4NeutronHPLegendreStore.o) `.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd' referenced in section `.rodata' of ../../lib//libG4had_neu_hp.a(G4NeutronHPPartial.o): defined in discarded section `.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd' of ../../lib//libG4had_neu_hp.a(G4NeutronHPPartial.o) `.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd' referenced in section `.rodata' of ../../lib//libG4had_neu_hp.a(G4NeutronHPDiscreteTwoBody.o): defined in discarded section `.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd' of ../../lib//libG4had_neu_hp.a(G4NeutronHPDiscreteTwoBody.o) `.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd' referenced in section `.rodata' of ../../lib//libG4had_neu_hp.a(G4NeutronHPContAngularPar.o): defined in discarded section `.gnu.linkonce.t._ZNK23G4NeutronHPInterpolator11InterpolateE21G4InterpolationSchemeddddd' of ../../lib//libG4had_neu_hp.a(G4NeutronHPContAngularPar.o)

collect2: ld returned 1 exit status

I have no idea what to do since all of that stuff appears to be built at install time.

Normally, I'd delete the offending libraries and rebuild them.

If anyone has seen this sort of thing, I'd appreciate any help you can offer.

Dan L.

Inline Depth:
 1 1
 All All
Outline Depth:
 1 1
 2 2
 All All
Add message: (add)

 Add Message Add Message
to: "Linking errors with ported application"

 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 ]