Message: Running Cmake: "Found CLHEP Version 2.2.0.8" followed by "Could NOT find CLHEP" Not Logged In (login)
 Next-in-Thread Next-in-Thread
 Next-in-Forum Next-in-Forum

None Running Cmake: "Found CLHEP Version 2.2.0.8" followed by "Could NOT find CLHEP" 

Forum: Installation and Configuration
Date: 03 Aug, 2015
From: Piet Verwilligen <Piet Verwilligen>

Hi All

A while ago i was trying to run example B1 and B2 to see whether GEANT was installed correctly on my pc or not. The installation using Cmake ran fine, but when executing exampleB1 (and also exampleB2a & exampleB2b) I get only this output:

Segmentation fault (core dumped) 

In this forum I found some people having a similar problem:
http://hypernews.slac.stanford.edu/HyperNews/geant4/get/installconfig/1722.html
http://hypernews.slac.stanford.edu/HyperNews/geant4/get/installconfig/1722/1/2.html

so I decided to detailed my problem in that thread:
http://hypernews.slac.stanford.edu/HyperNews/geant4/get/installconfig/1722/1/1/1/1/1.html

As far as I understood no solution has been found up to now for this problem, so I was trying to solve / investigate / explore a bit myself and I stumbled upon the FAQ:

http://geant4.web.cern.ch/geant4/support/faq.shtml#runtime-1

stating that:

"On Linux, I get a segmentation fault as soon as I run one of the official examples.

Solution:
Check that the CLHEP library has been installed and compiled coherently with the same compiler you use for installing Geant4 and for the same version of Linux distribution. For example, a binary object produced with Red-Hat 7.X is not fully compatible with binaries running on RH 9.X or higher, due to different libc used in the two configurations."

Since I already have a ROOT 6.02/05 version installed, I am not sure whether CLHEP libraries might clash between my GEANT4.10.01.p02 installation and ROOT. So I decided to install CLHEP from source and to give the directory in the Cmake command to build GEANT.

When running cmake with following arguments:
cmake -DCMAKE_INSTALL_PREFIX=/srv/local/GEANT4/geant4.10.01.p02-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_SYSTEM_CLHEP=ON -DCLHEP_INCLUDE_DIR=/srv/local/CLHEP/clhep\
-2.2.0.8-install/include /srv/local/GEANT4/geant4.10.01.p02

I get this error message:

-- The C compiler identification is GNU 4.8.4
-- The CXX compiler identification is GNU 4.8.4
-- 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
-- Found CLHEP Version 2.2.0.8
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find CLHEP:

  CLHEP Library Not Found

   (missing:  CLHEP_LIBRARY) (Required is at least version "2.1.2.3")
Call Stack (most recent call first):
  /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:315 (_FPHSA_FAILURE_MESSAGE)
  cmake/Modules/FindCLHEP.cmake:297 (find_package_handle_standard_args)
  cmake/Modules/Geant4OptionalComponents.cmake:58 (find_package)
  CMakeLists.txt:99 (include)


-- Configuring incomplete, errors occurred!
See also "/home/piet/local/GEANT4/geant4.10.01.p02-build/CMakeFiles/CMakeOutput.log".
make: *** No targets specified and no makefile found.  Stop.
make: *** No rule to make target `install'.  Stop.

Reading here (GEANT4.9 though):
http://geant4.web.cern.ch/geant4/UserDocumentation/UsersGuides/InstallationGuide/BackupVersions/V9.4/html/ch04s02.html

 The detection of CLHEP relies on having the clhep-config script in the PATH, and if this is not the case on your system, you may see an error

            CMake Error at /usr/share/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:70 (MESSAGE):
              Failed to find CLHEP (missing: CLHEP_VERSION_OK CLHEP_LIBRARIES
              CLHEP_INCLUDE_DIRS)
            Call Stack (most recent call first):
              cmake/Modules/FindCLHEP.cmake:118 (find_package_handle_standard_args)
              CMakeLists.txt:114 (find_package)


            -- Configuring incomplete, errors occurred!
        

If you see this error, you should either add the location of clhep-config to your PATH and re-run cmake as above, or re-run cmake and pass it the full path to clhep-config as

            $ cmake -DCLHEP_CONFIG_EXECUTABLE=/full/path/to/clhep-config ../geant4.9.4
        
 
So I tried both to add clhep-config in my PATH and to pass it to the cmake command:

cmake -DCMAKE_INSTALL_PREFIX=/srv/local/GEANT4/geant4.10.01.p02-install -DGEANT4_INSTALL_DATA=ON -DGEANT4_USE_GDML=ON -DGEANT4_USE_OPENGL_X11=ON -DGEANT4_USE_SYSTEM_CLHEP=ON -DCLHEP_INCLUDE_DIR=/srv/local/CLHEP/clhep-2\
.2.0.8-install/include -DCLHEP_CONFIG_EXECUTABLE=/srv/local/CLHEP/clhep-2.2.0.8-build/clhep-config /srv/local/GEANT4/geant4.10.01.p02


but nothing changes and I still get:

-- Found CLHEP Version 2.2.0.8
CMake Error at /usr/share/cmake-2.8/Modules/FindPackageHandleStandardArgs.cmake:108 (message):
  Could NOT find CLHEP:

  CLHEP Library Not Found

   (missing:  CLHEP_LIBRARY) (Required is at least version "2.1.2.3")


Does anyone have an idea how to tackle this problem?
Thanks a lot
Kind regards
Piet Verwilligen

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

1 None: Re: Running Cmake:   (Ben Morgan - 03 Aug, 2015)
 Add Message Add Message
to: "Running Cmake: "Found CLHEP Version 2.2.0.8" followed by "Could NOT find CLHEP""

 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 ]