Message: "No Thread Local Storage (TLS) technology supported for this platform. Use sequential build !" Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

Question "No Thread Local Storage (TLS) technology supported for this platform. Use sequential build !" 

Forum: Multithreading
Date: 22 Jul, 2014
From: David <David>

All,

I am trying to compile the basic examples with threading on a macbook pro with osx 10.8.5 and a single intel i7 processor with two cores. I went to the following for information on setting up the build:

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

The following is the cmake command that I issued:

cmake -DCMAKE_INSTALL_PREFIX=../geant4.10.00.p02.mt_install 
           -DGEANT4_BUILD_MULTITHREADED=ON 
           -DCMAKE_C_COMPILER=clang 
           -DCMAKE_CXX_COMPILER=clang++ 
           -DGEANT4_INSTALL_DATADIR=/Users/daviddixon/Geant/geant4.10.00.p02_install/share/Geant4-10.0.2/data 
           ../geant4.10.00.p02

After issuing the following command, the build process completed succesfully:

make -j2; make install

However, when I try to build the basic examples with threading I get the following errors:

/Users/daviddixon/Geant/geant4.10.00.p02.mt_install/include/Geant4/G4Threading.hh:148:6: error: #error "No Threading model technology supported for this platform. Use sequential build !" /Users/daviddixon/Geant/geant4.10.00.p02.mt_install/include/Geant4/tls.hh:48:6: error: #error "No Thread Local Storage (TLS) technology supported for this platform. Use sequential build !"

I looked at both G4Threading.hh and tls.hh to determine what is causing the error which is caused by the following test:

 #if ( defined(__MACH__) && defined(__clang__) && defined(__x86_64__) ) || \
      ( defined(__MACH__) && defined(__GNUC__) && __GNUC__>=4 && __GNUC_MINOR__>=7 ) 

I have no idea how any of these variables get set, but evidently they are not getting set.

Lastly, I tried using cmake and the GNUMakefile to build the examples, but I get the same error from both.

Thanks,

David

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

1 Warning: Re:   (Andrea Dotti - 24 Jul, 2014)
(_ None: Re:   (David - 24 Jul, 2014)
(_ None: Re:   (David - 24 Jul, 2014)
 Add Message Add Message
to: ""No Thread Local Storage (TLS) technology supported for this platform. Use sequential build !""

 Subscribe Subscribe

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