New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot build DD4hep examples #382

Closed
gaede opened this Issue May 14, 2018 · 7 comments

Comments

Projects
None yet
3 participants
@gaede
Contributor

gaede commented May 14, 2018

It seems to no longer be possible to build the DD4hep examples against an installed version of DD4hep:

  • OS version: SLC6
  • Compiler version: gcc version 7.3.0 (GCC)
    DD4hep version: current master
  • Reproduced by:
    '''
    git clone https://github.com/AIDASoft/DD4hep.git trunk
    cd trunk/examples
    mkdir build ; cd build
    . /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/init_ilcsoft.sh
    cmake ..
    '''
    CMake Error at /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/DD4hepConfig.cmake:81 (MESSAGE):
    |++> Did not find required component: DDCMS

After commenting out DDCMS from CMakeLists.txt, I get:

cmake ..
make -j 4 install

[ 26%] Building CXX object AlignDet/CMakeFiles/AlignDetExample.dir/src/AlignmentExample_nominal.cpp.o
[ 28%] Building CXX object Conditions/CMakeFiles/ConditionsExample.dir/src/ConditionExampleObjects.cpp.o
[ 29%] Building CXX object LHeD/CMakeFiles/LHeD.dir/src/Lhe_CylindricalEndcapCalorimeter_geo.cpp.o
/afs/desy.de/user/g/gaede/DD4hep/trunk/examples/Conditions/src/ConditionExampleObjects.cpp: In constructor 'dd4hep::ConditionExamples::ConditionsDependencyCreator::ConditionsDependencyCreator(dd4hep::cond::ConditionsContent&, dd4hep::PrintLevel)':
/afs/desy.de/user/g/gaede/DD4hep/trunk/examples/Conditions/src/ConditionExampleObjects.cpp:98:42: error: invalid new-expression of abstract class type 'dd4hep::ConditionExamples::ConditionUpdate1'
call1 = new ConditionUpdate1(printLevel);
^
In file included from /afs/desy.de/user/g/gaede/DD4hep/trunk/examples/Conditions/src/ConditionExampleObjects.cpp:15:0:
/afs/desy.de/user/g/gaede/DD4hep/trunk/examples/Conditions/src/ConditionExampleObjects.h:71:11: note: because the following virtual functions are pure within 'dd4hep::ConditionExamples::ConditionUpdate1':
class ConditionUpdate1 : public ConditionUpdateCall, public OutputLevel {
^~~~~~~~~~~~~~~~
In file included from /afs/desy.de/user/g/gaede/DD4hep/trunk/examples/Conditions/src/ConditionExampleObjects.h:21:0,
from /afs/desy.de/user/g/gaede/DD4hep/trunk/examples/Conditions/src/ConditionExampleObjects.cpp:15:
/cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/include/DD4hep/ConditionDerived.h:232:25: note: virtual dd4hep::Condition dd4hep::cond::ConditionUpdateCall::operator()(const dd4hep::ConditionKey&, dd4hep::cond::ConditionUpdateContext&)
virtual Condition operator()(const ConditionKey& target,

And then finally, after commenting out Conditions from CMakeLists.txt:

cmake ..
make -j 4 install

Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/examples/CLICSiD/compact
CMake Error at CLICSiD/cmake_install.cmake:44 (file):
file INSTALL cannot set permissions on
"/cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/examples/CLICSiD/compact"
Call Stack (most recent call first):
cmake_install.cmake:37 (include)

I assume it is the following line in CLICSiD/CMakeLists.txt:

dd4hep_install_dir( compact scripts sim DESTINATION ${DD4hep_DIR}/examples/CLICSiD )

Why is the install directory set to be in the original source tree ?

@MarkusFrankATcernch

This comment has been minimized.

Contributor

MarkusFrankATcernch commented May 15, 2018

Hi Frank,

This is a non issue. Your "master" of DD4hep must be anything but the master and actually is highly out of sync with the checkout of your examples. The 2 checkouts do not match.

  • the package DDCMS does no longer exist in the release. It is only present in the examples. This dependency simply does no longer exist.
  • Same with the conditions example. This callback signature does no longer exist.
@gaede

This comment has been minimized.

Contributor

gaede commented May 15, 2018

Hi Markus,
sorry, I had managed to confuse myself w/ debugging the tau issue and had accidentally merged a non-up-to-date master. Nevertheless the actual problem (the last one from above) persists:

git clone https://github.com/AIDASoft/DD4hep.git trunk
cd trunk/examples
mkdir build ; cd build
. /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/init_ilcsoft.sh 
cmake ..
make -j 4 install

Compilation of course now works fine but then:

Install the project...
-- Install configuration: "RelWithDebInfo"
-- Up-to-date: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/examples/CLICSiD/compact
CMake Error at CLICSiD/cmake_install.cmake:44 (file):
file INSTALL cannot set permissions on
"/cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/examples/CLICSiD/compact"
Call Stack (most recent call first):
cmake_install.cmake:37 (include)

I assume it is the following line in CLICSiD/CMakeLists.txt:

dd4hep_install_dir( compact scripts sim DESTINATION ${DD4hep_DIR}/examples/CLICSiD )

Why is the install directory set to be in the original source tree ?

@gaede gaede reopened this May 15, 2018

@MarkusFrankATcernch

This comment has been minimized.

Contributor

MarkusFrankATcernch commented May 15, 2018

This is present since Dec. 2nd 2015 ie. 2.5 years. We will not fix this.
There was a good reason to have a consistent release area with examples if wanted.
Developers do not fall into this category.

See:
https://github.com/MarkusFrankATcernch/DD4hep/blob/72f584558e7beb8fe8e2e37b4390f03ea025ab06/examples/CLICSiD/CMakeLists.txt

@petricm

This comment has been minimized.

Member

petricm commented May 15, 2018

Sorry cannot reproduce

git clone git@github.com:AIDASoft/DD4hep.git
source /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/init_ilcsoft.sh 
cd DD4hep/examples/
mkdir build
cd build/
cmake ..
-- The C compiler identification is GNU 7.3.0
-- The CXX compiler identification is GNU 7.3.0
-- Check for working C compiler: /cvmfs/clicdp.cern.ch/compilers/gcc/7.3.0/x86_64-slc6/bin/gcc
-- Check for working C compiler: /cvmfs/clicdp.cern.ch/compilers/gcc/7.3.0/x86_64-slc6/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /cvmfs/clicdp.cern.ch/compilers/gcc/7.3.0/x86_64-slc6/bin/g++
-- Check for working CXX compiler: /cvmfs/clicdp.cern.ch/compilers/gcc/7.3.0/x86_64-slc6/bin/g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- INCLUDING DD4hepBuild.cmake
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- INCLUDING DD4hepBuild.cmake
-- Performing Test CXX_FLAG_WORKS__Wall
-- Performing Test CXX_FLAG_WORKS__Wall - Success
-- Adding -Wall to CXX_FLAGS
-- Performing Test CXX_FLAG_WORKS__Wextra
-- Performing Test CXX_FLAG_WORKS__Wextra - Success
-- Adding -Wextra to CXX_FLAGS
-- Performing Test CXX_FLAG_WORKS__pedantic
-- Performing Test CXX_FLAG_WORKS__pedantic - Success
-- Adding -pedantic to CXX_FLAGS
-- Performing Test CXX_FLAG_WORKS__Wshadow
-- Performing Test CXX_FLAG_WORKS__Wshadow - Success
-- Adding -Wshadow to CXX_FLAGS
-- Performing Test CXX_FLAG_WORKS__Wformat_security
-- Performing Test CXX_FLAG_WORKS__Wformat_security - Success
-- Adding -Wformat-security to CXX_FLAGS
-- Performing Test CXX_FLAG_WORKS__Wno_long_long
-- Performing Test CXX_FLAG_WORKS__Wno_long_long - Success
-- Adding -Wno-long-long to CXX_FLAGS
-- Performing Test CXX_FLAG_WORKS__Wdeprecated
-- Performing Test CXX_FLAG_WORKS__Wdeprecated - Success
-- Adding -Wdeprecated to CXX_FLAGS
-- Performing Test CXX_FLAG_WORKS__fdiagnostics_color=auto
-- Performing Test CXX_FLAG_WORKS__fdiagnostics_color=auto - Success
-- Adding -fdiagnostics-color=auto to CXX_FLAGS
-- Performing Test CXX_FLAG_WORKS_FTLS_global_dynamic
-- Performing Test CXX_FLAG_WORKS_FTLS_global_dynamic - Success
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE  
-- |++> dd4hep_configure_output: CMAKE_INSTALL_PREFIX is /home/mpetric/DD4hep/examples - overwrite with -D CMAKE_INSTALL_PREFIX
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- +------------------------------------------- <<<< PACKAGE dd4hepExample >>>> Version: ( 0.15.0 )
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> DD4hep: Looking for Components: DDCore
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- |++> Package[dd4hepExample] Uses: ROOTDD4HEP
-- |++> Enable CTest environment....BUILD:ON DIRS: CLICSiD LHeD AlignDet ClientTests Conditions DDG4 Persistency SimpleDetector
-- |++> dd4hep_configure_output: CMAKE_INSTALL_PREFIX is /home/mpetric/DD4hep/examples - overwrite with -D CMAKE_INSTALL_PREFIX
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- +------------------------------------------- <<<< PACKAGE CLICSiD >>>> Version: ( 0.0.1 )
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> DD4hep: Looking for Components: DDCore
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- |++> Package[CLICSiD] Uses: ROOTDD4HEP
-- Found CLHEP Version 2.3.4.3
-- Found CLHEP: /cvmfs/clicdp.cern.ch/software/CLHEP/2.3.4.3/x86_64-slc6-gcc7-opt/lib/libCLHEP.so (Required is at least version "2.3.4.3") 
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore;DDG4
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDG4_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDG4.so -- ok
-- |++> DD4hep: Looking for Components: DDCoreDDG4
-- |++> Executable[CLICSiD] -> CLICSiDXML Uses: DD4HEPGeant4
-- |++> Executable[CLICSiD] -> CLICSiDAClick Uses: DD4HEPGeant4
-- |++> Setting up test environment for CLICSiD: Testing:ON Setup:TRUE With Tests(TRUE): DIRS: CLICSiD
-- |++> Enable CTest environment....BUILD:ON 
-- |++> Geant4 Multi-threading ENABLED. Configuring multi-threaded DDG4 tests.
-- |++> dd4hep_configure_output: CMAKE_INSTALL_PREFIX is /home/mpetric/DD4hep/examples - overwrite with -D CMAKE_INSTALL_PREFIX
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- +------------------------------------------- <<<< PACKAGE LHeD >>>> Version: ( 0.0.1 )
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDRec;DDCore;DDCond;DDAlign
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDREC_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDRec.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCOND_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCond.so -- ok
-- |++> Check for DD4hep_DDALIGN_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDAlign.so -- ok
-- |++> DD4hep: Looking for Components: DDRecDDCoreDDCondDDAlign
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- |++> Package[LHeD] Uses: ROOTDD4HEP
-- |++> Plugin[LHeD] -> LHeD Uses  DEFAULTS
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore;DDG4
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDG4_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDG4.so -- ok
-- |++> DD4hep: Looking for Components: DDCoreDDG4
-- |++> Executable[LHeD] -> LHeDXML Uses: DD4HEPGeant4
-- |++> Executable[LHeD] -> LHeDACLick Uses: DD4HEPGeant4
-- |++> Setting up test environment for LHeD: Testing:ON Setup:TRUE With Tests(TRUE): DIRS: LHeD
-- |++> Enable CTest environment....BUILD:ON 
-- |++> dd4hep_configure_output: CMAKE_INSTALL_PREFIX is /home/mpetric/DD4hep/examples - overwrite with -D CMAKE_INSTALL_PREFIX
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- +------------------------------------------- <<<< PACKAGE AlignDet >>>> Version: ( 0.0.1 )
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore;DDCond;DDAlign
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCOND_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCond.so -- ok
-- |++> Check for DD4hep_DDALIGN_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDAlign.so -- ok
-- |++> DD4hep: Looking for Components: DDCoreDDCondDDAlign
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- |    Package[AlignDet]  ...optional: Skip optional XERCESC [XERCESC Not defined]
-- |++> Package[AlignDet] Uses: ROOTDD4HEP
-- |++> Plugin[AlignDet] -> AlignDetExample Uses  DEFAULTS
-- |++> Setting up test environment for AlignDet: Testing:ON Setup:TRUE With Tests(TRUE): DIRS: AlignDet
-- |++> Enable CTest environment....BUILD:ON 
-- |++> dd4hep_configure_output: CMAKE_INSTALL_PREFIX is /home/mpetric/DD4hep/examples - overwrite with -D CMAKE_INSTALL_PREFIX
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- +------------------------------------------- <<<< PACKAGE ClientTests >>>> Version: ( 0.0.1 )
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> DD4hep: Looking for Components: DDCore
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- |    Package[ClientTests]  ...optional: Skip optional XERCESC [XERCESC Not defined]
-- |++> Package[ClientTests] Uses: ROOTDD4HEP
-- Boost version: 1.65.1
-- |    Plugin[ClientTests] -> ClientTests  ...optional: ADD sources src_boost/*.cpp [dependent on BOOST]
-- |++> Plugin[ClientTests] -> ClientTests Uses: BOOST
-- |++> Setting up test environment for ClientTests: Testing:ON Setup:TRUE With Tests(TRUE): DIRS: ClientTests
-- |++> Enable CTest environment....BUILD:ON 
-- |++> dd4hep_configure_output: CMAKE_INSTALL_PREFIX is /home/mpetric/DD4hep/examples - overwrite with -D CMAKE_INSTALL_PREFIX
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- +------------------------------------------- <<<< PACKAGE Conditions >>>> Version: ( 0.0.1 )
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore;DDCond;DDAlign
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCOND_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCond.so -- ok
-- |++> Check for DD4hep_DDALIGN_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDAlign.so -- ok
-- |++> DD4hep: Looking for Components: DDCoreDDCondDDAlign
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- |    Package[Conditions]  ...optional: Skip optional XERCESC [XERCESC Not defined]
-- |++> Package[Conditions] Uses: ROOTDD4HEP
-- |++> Plugin[Conditions] -> ConditionsExample Uses  DEFAULTS
-- |++> Setting up test environment for Conditions: Testing:ON Setup:TRUE With Tests(TRUE): DIRS: Conditions
-- |++> Enable CTest environment....BUILD:ON 
-- |++> dd4hep_configure_output: CMAKE_INSTALL_PREFIX is /home/mpetric/DD4hep/examples - overwrite with -D CMAKE_INSTALL_PREFIX
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- +------------------------------------------- <<<< PACKAGE DDG4 >>>> Version: ( 0.0.1 )
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> DD4hep: Looking for Components: DDCore
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- |++> Package[DDG4] Uses: DD4HEP
-- |++> Dictionary[DDG4] -> G__DDG4UserDict Building dictionary ...
-- |++> Dictionary[DDG4] -> G__DDG4UserDict Uses  DEFAULTS
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore;DDG4
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDG4_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDG4.so -- ok
-- |++> DD4hep: Looking for Components: DDCoreDDG4
-- |++> Plugin[DDG4] -> DDG4UserLib Uses: GEANT4ROOTDD4HEP
-- |++> Setting up test environment for DDG4: Testing:ON Setup:TRUE With Tests(TRUE): DIRS: DDG4
-- |++> Enable CTest environment....BUILD:ON 
-- |++> dd4hep_configure_output: CMAKE_INSTALL_PREFIX is /home/mpetric/DD4hep/examples - overwrite with -D CMAKE_INSTALL_PREFIX
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- +------------------------------------------- <<<< PACKAGE Persistency >>>> Version: ( 0.0.1 )
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> DD4hep: Looking for Components: DDCore
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- |    Package[Persistency]  ...optional: Skip optional XERCESC [XERCESC Not defined]
-- |++> Package[Persistency] Uses: ROOTDD4HEP
-- |++> Plugin[Persistency] -> PersistencyExample Uses  DEFAULTS
-- |++> Setting up test environment for Persistency: Testing:ON Setup:TRUE With Tests(TRUE): DIRS: Persistency
-- |++> Enable CTest environment....BUILD:ON 
-- |++> dd4hep_configure_output: CMAKE_INSTALL_PREFIX is /home/mpetric/DD4hep/examples - overwrite with -D CMAKE_INSTALL_PREFIX
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- +------------------------------------------- <<<< PACKAGE SimpleDetector >>>> Version: ( 0.0.1 )
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore;DDRec
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDREC_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDRec.so -- ok
-- |++> DD4hep: Looking for Components: DDCoreDDRec
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- |    Package[SimpleDetector]  ...optional: Skip optional XERCESC [XERCESC Not defined]
-- |++> Package[SimpleDetector] Uses: ROOTDD4HEP
-- |++> Plugin[SimpleDetector] -> SimpleDetector Uses  DEFAULTS
-- |++> Setting up test environment for SimpleDetector: Testing:ON Setup:TRUE With Tests(TRUE): DIRS: SimpleDetector
-- |++> Enable CTest environment....BUILD:ON 
-- |++> XercesC is not present. NOT building DDDB examples.
-- |++> XercesC PRESENT. Building DDCMS examples.
-- |++> Enable CTest environment....BUILD:ON DIRS: DDCMS
-- |++> dd4hep_configure_output: CMAKE_INSTALL_PREFIX is /home/mpetric/DD4hep/examples - overwrite with -D CMAKE_INSTALL_PREFIX
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- +------------------------------------------- <<<< PACKAGE DDCMS >>>> Version: ( 1.7.0 )
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> DD4hep: Looking for Components: DDCore
-- Found DD4hep: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD  
-- |++> Package[DDCMS] Uses: DD4HEPCLHEPROOT
-- |++> Check for DD4hep_LIBRARIES: DDCore
-- |++> Check for DD4hep_COMPONENT_LIBRARIES: DDCore;DDAlign;DDCond
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDCORE_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCore.so -- ok
-- |++> Check for DD4hep_DDALIGN_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDAlign.so -- ok
-- |++> Check for DD4hep_DDCOND_LIBRARY: /cvmfs/clicdp.cern.ch/iLCSoft/builds/nightly/x86_64-slc6-gcc7-opt/DD4hep/HEAD/lib/libDDCond.so -- ok
-- |++> DD4hep: Looking for Components: DDCoreDDAlignDDCond
-- |++> Plugin[DDCMS] -> DDCMS Uses: DD4HEPROOT
-- |++> Setting up test environment for DDCMS: Testing:ON Setup:TRUE With Tests(TRUE): DIRS: DDCMS
-- |++> Enable CTest environment....BUILD:ON 
-- Configuring done
-- Generating done
-- Build files have been written to: /home/mpetric/DD4hep/examples/build
@gaede

This comment has been minimized.

Contributor

gaede commented May 15, 2018

@petricm did you run make install ?
@MarkusFrankATcernch We made a fairly big attempt to have the examples as an independent package which happens to be shipped with the original source tree - similar to the Geant4 examples. The reason that we have not yet discovered this 'bug' is simply due to the fact that in our iLCSoft installations, where we actually install DD4hepExamples as extra package, we of course also have write access to the original DD4hep source directory.
I still believe that one should be able to build the DD4hep examples against an installed read only version of DD4hep. Also, the current setup ignores any other installation directory specified with CMAKE_INSTALL_PREFIX. I think this is a bug, albeit not a dramatic one !

@petricm

This comment has been minimized.

Member

petricm commented May 15, 2018

@gaede sorry I read your report wrongly. And I agree with you that if you do

cd DD4hep/examples/
mkdir build
cd build/
cmake -DCMAKE_INSTALL_PREFIX=__location_with_write_access__ ..
make install

that this should work against a central release and it doesn't now.

It is also impossible to build the examples at present that are shipped with a release in an out of source way, so shipping the examples with the release is pointless?

@MarkusFrankATcernch

This comment has been minimized.

Contributor

MarkusFrankATcernch commented Jun 21, 2018

Please see: #409

Closed until fix proven to not work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment