Message: First Time Enabled Multithreading, Compiler Won't Link Ojects Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question First Time Enabled Multithreading, Compiler Won't Link Ojects 

Forum: Multithreading
Date: 24 Jun, 2014
From: Matt McIntyre <Matt McIntyre>

I'm trying to migrate my application from sequential processing to multi-threading, I rebuilt G4 to include this option, and modified my application file as shown in the Quick Migration Guide:

(https://twiki.cern.ch/twiki/bin/view/Geant4/QuickMigrationGuideForGeant4V10)

The application seems to compile fine, but when it begins linking the objects, I get the following error:

Creating shared library /home/matt/geant4_workdir/tmp/Linux-g++/SNS/libSNS.so ... /usr/bin/ld: DetectorConstruction.o: relocation R_X86_64_32S against `_ZTV20DetectorConstruction' can not be used when making a shared object; recompile with -fPIC DetectorConstruction.o: could not read symbols: Bad value

I have also tried compiling the basic examples (B1) and I get nearly the exact same error output.

I would greatly appreciate any help, or instruction on what the problem might be.

Thank you!

Matt

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

1 Question: Re: First Time Enabled Multithreading, Compiler Won't Link Ojects   (Andrea Dotti - 26 Jun, 2014)
 Add Message Add Message
to: "First Time Enabled Multithreading, Compiler Won't Link Ojects"

 Subscribe Subscribe

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