Skip to content

setup-lhcb-build.sh cannot work in chroot environments #25

@manuelschiller

Description

@manuelschiller

Hi,

your script cannot work in chroot environments, since it changes MYSITEROOT to cvmfs which may or may not be available, and it changes CMTCONFIG as well (again, binaries for the new setting may or may not be available). I've sort of hacked things by hand to point to the right locations on my laptop (and use gcc 4.8 which is the only version for which I have binaries installed), but even after that, I cannot start compiling:

[mala@fenchurch]~/paris2015/moo/Gaudi% make
mkdir -p /home/mala/paris2015/moo/Gaudi/build.x86_64-slc6-gcc48-opt
cd /home/mala/paris2015/moo/Gaudi/build.x86_64-slc6-gcc48-opt && cmake -DCMAKE_USE_CCACHE=ON -DCMAKE_TOOLCHAIN_FILE=/home/mala/paris2015/moo/Gaudi/toolchain.cmake -GNinja /home/mala/paris2015/moo/Gaudi
CMake Error: CMake was unable to find a build program corresponding to "Ninja". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_C_COMPILER
CMake Error: Could not find cmake module file: /home/mala/paris2015/moo/Gaudi/build.x86_64-slc6-gcc48-opt/CMakeFiles/2.8.12.2/CMakeCCompiler.cmake
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER_ENV_VAR
CMake Error: Error required internal CMake variable not set, cmake may be not be built correctly.
Missing variable is:
CMAKE_CXX_COMPILER
CMake Error: Could not find cmake module file: /home/mala/paris2015/moo/Gaudi/build.x86_64-slc6-gcc48-opt/CMakeFiles/2.8.12.2/CMakeCXXCompiler.cmake
-- Configuring incomplete, errors occurred!
make: *** [/home/mala/paris2015/moo/Gaudi/build.x86_64-slc6-gcc48-opt/build.ninja] Error 1

If that's expected behaviour, and if I should therefore compile this on lxplus, please let me know. In any case, things need at least some kind of clarification...

Cheers,

Manuel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions