Open aphecetche opened 8 years ago
you forgot to actually build the thing :)
$> oxy init .
$> oxy build
$> oxy shell
oxy build is failing (see below).
Where I'm lost probably is as to whether oxy build is supposed to be working in the container or in my native system ?
nanpc420:oxywork laurent$ oxy build
oxy: building fair-soft...
tee: /opt/alice/src/fair-soft/Install_110316_082900.log: Permission denied
The build process for the external packages for the FairRoot Project was started at 110316_082900
tee: /opt/alice/src/fair-soft/Install_110316_082900.log: Permission denied
*** Compiling the external packages with the GCC compiler
tee: /opt/alice/src/fair-soft/Install_110316_082900.log: Permission denied
*** Building the libraries with best optimization
----------------- Install FairSoft ---------------
mkdir: cannot create directory '/opt/alice/src/fair-soft/test': Permission denied
scripts/check_system.sh: line 392: cd: /opt/alice/src/fair-soft/test: No such file or directory
cp: cannot create regular file './FairVersion.h.default': Permission denied
cp: cannot create regular file './FairVersion.h.tmp': Permission denied
cp: cannot create regular file './GenerateVersionInfo.cmake': Permission denied
cp: cannot create regular file 'CMakeLists.txt': Permission denied
cp: cannot create regular file './configure.in': Permission denied
scripts/check_system.sh: line 399: cd: build: No such file or directory
CMake Error: The source directory "/opt/alice/src" does not appear to contain CMakeLists.txt.
Specify --help for usage, or press the help button on the CMake GUI.
There have been problems found. Please check the output above.
oxy: building fair-root...
CMake Error at /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:170 (file):
file Internal CMake error when trying to open file:
/opt/alice/src/fair-root/build/CMakeFiles/CMakeOutput.log for writing.
Call Stack (most recent call first):
CMakeLists.txt:33 (project)
CMake Error: Could not open file for write in copy operation /opt/alice/src/fair-root/build/CMakeFiles/2.8.11/CMakeSystem.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/share/cmake/Modules/CMakeDetermineSystem.cmake:182 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:33 (project)
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:99 (file):
file problem creating directory:
/opt/alice/src/fair-root/build/CMakeFiles/2.8.11/CompilerIdC
Call Stack (most recent call first):
/usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/share/cmake/Modules/CMakeDetermineCCompiler.cmake:124 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:33 (project)
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:99 (file):
file problem creating directory:
/opt/alice/src/fair-root/build/CMakeFiles/2.8.11/CompilerIdC
Call Stack (most recent call first):
/usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/share/cmake/Modules/CMakeDetermineCCompiler.cmake:124 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:33 (project)
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:99 (file):
file problem creating directory:
/opt/alice/src/fair-root/build/CMakeFiles/2.8.11/CompilerIdC
Call Stack (most recent call first):
/usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/share/cmake/Modules/CMakeDetermineCCompiler.cmake:124 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:33 (project)
-- The C compiler identification is unknown
CMake Error: Could not open file for write in copy operation /opt/alice/src/fair-root/build/CMakeFiles/2.8.11/CMakeCCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCCompiler.cmake:179 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:33 (project)
CMake Error: Could not find cmake module file:/opt/alice/src/fair-root/build/CMakeFiles/2.8.11/CMakeCCompiler.cmake
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:99 (file):
file problem creating directory:
/opt/alice/src/fair-root/build/CMakeFiles/2.8.11/CompilerIdCXX
Call Stack (most recent call first):
/usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake:120 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:33 (project)
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:99 (file):
file problem creating directory:
/opt/alice/src/fair-root/build/CMakeFiles/2.8.11/CompilerIdCXX
Call Stack (most recent call first):
/usr/share/cmake/Modules/CMakeDetermineCompilerId.cmake:39 (CMAKE_DETERMINE_COMPILER_ID_BUILD)
/usr/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake:120 (CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:33 (project)
-- The CXX compiler identification is unknown
CMake Error: Could not open file for write in copy operation /opt/alice/src/fair-root/build/CMakeFiles/2.8.11/CMakeCXXCompiler.cmake.tmp
CMake Error: : System Error: No such file or directory
CMake Error at /usr/share/cmake/Modules/CMakeDetermineCXXCompiler.cmake:178 (configure_file):
configure_file Problem configuring file
Call Stack (most recent call first):
CMakeLists.txt:33 (project)
CMake Error: Could not find cmake module file:/opt/alice/src/fair-root/build/CMakeFiles/2.8.11/CMakeCXXCompiler.cmake
-- Check for working C compiler: /usr/bin/gcc
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:35 (file):
file Internal CMake error when trying to open file:
/opt/alice/src/fair-root/build/CMakeFiles/CMakeTmp/testCCompiler.c for
writing.
Call Stack (most recent call first):
CMakeLists.txt:33 (project)
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:47 (try_compile):
Failed to open
/opt/alice/src/fair-root/build/CMakeFiles/CMakeTmp/CMakeLists.txt
No such file or directory
Call Stack (most recent call first):
CMakeLists.txt:33 (project)
-- Check for working C compiler: /usr/bin/gcc -- broken
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:58 (file):
file Internal CMake error when trying to open file:
/opt/alice/src/fair-root/build/CMakeFiles/CMakeError.log for writing.
Call Stack (most recent call first):
CMakeLists.txt:33 (project)
CMake Error at /usr/share/cmake/Modules/CMakeTestCCompiler.cmake:61 (message):
The C compiler "/usr/bin/gcc" is not able to compile a simple test program.
It fails with the following output:
CMake will not be able to correctly generate this project.
Call Stack (most recent call first):
CMakeLists.txt:33 (project)
-- Configuring incomplete, errors occurred!
CMake Error: Cannot open file for write: /opt/alice/src/fair-root/build/CMakeCache.txt.tmp
CMake Error: : System Error: Permission denied
CMake Error: Unable to open cache file for save. /opt/alice/src/fair-root/build/CMakeCache.txt
CMake Error: : System Error: Permission denied
oxy: error running command cmake-DCMAKE_INSTALL_PREFIX=/opt/alice/sw/install -DUSE_NANOMSG=1 -DCMAKE_CXX_COMPILER=/usr/bin/g++ -DCMAKE_CC_COMPILER=/usr/bin/gcc ../: exit status 1
oxy: error: exit status 1
hum... (theoretically, oxy
should be launched on the host (ie: your Mac) and it would take care of running the commands inside the container, the hop thru the thin linux-VM being taken care of by the docker toolbox)
I'll try to implement oxy
on top of alibuild
and see what gives (based on http://ktf.github.io/o2-tutorial)
concerning alibuild, there are (at least on mac) a number of issues currently, see https://github.com/alisw/alidist/issues
Hi,
Started to test oxy but already lost...
What I did
...... Step 10 : ADD dot-bashrc $HOME/.bashrc ---> 608432545bc8 Removing intermediate container 2e27d84792bf Successfully built 608432545bc8
Looks like I have a container :
But now ... what ?
Thanks for your help,