Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'm trying to build Geant4. I got some problem on cmake that I have no idea what to do. Whenever I try to build on home directory, everything works just fine.

Here's the output:

geo@george-Ubuntu:~$ cmake -DCMAKE_INSTALL_PREFIX=/home/geo/Geant4/geant4.10.00.p02-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_QT=ON ~/Geant4/geant4.10.00.p02
-- The C compiler identification is GNU 4.8.2
-- The CXX compiler identification is GNU 4.8.2
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Performing Test HAVE_TLS
-- Performing Test HAVE_TLS - Success
...
A LOT OF STUFF HERE
...
-- Configuring done
-- Generating done
-- Build files have been written to: /home/geo

However when I change it to my desired build directory, this happens:

geo@george-Ubuntu:~$ cd Geant4/geant4.10.00.p02-build/
geo@george-Ubuntu:~/Geant4/geant4.10.00.p02-build$ cmake -DCMAKE_INSTALL_PREFIX=/home/geo/Geant4/geant4.10.00.p02-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_BUILD_MULTITHREADED=ON -DGEANT4_USE_RAYTRACER_X11=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_QT=ON ~/Geant4/geant4.10.00.p02
CMake Error at cmake/Modules/Geant4LibraryBuildOptions.cmake:52 (message):
  Configured compiler /usr/bin/c++ does not support thread local storage
Call Stack (most recent call first):
  CMakeLists.txt:75 (include)

-- Configuring incomplete, errors occurred!

What can I do?

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.