CMake Error at source/python3/cmake_install.cmake:51 (file): *** ERROR: g4py could not be created. [message #23655] |
Thu, 21 February 2019 15:40 |
Peiyong Jiang
Messages: 7 Registered: February 2019
|
occasional visitor |
From: 140.181.14*
|
|
Dear colleagues,
I have a problem with installation of external packages on my PC under Ubuntu.
With version may18 the problem is the next:
----------------------------------------------
Compiling '/home/pjiang/install/fairsoft_may18/transport/geant4/build_g4py/site-mo dules/python/__init__.py'...
[ 71%] Built target test07
[ 73%] Built target test06
[ 74%] Built target test09
[ 75%] Built target test10
[ 76%] Built target test08
[ 76%] Built target g4py_module
[ 76%] Built target test11
[ 78%] Built target test13
[ 78%] Built target test12
[ 82%] Built target gtest01
[100%] Built target pyG4geometry
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4global.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4interface.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4intercoms.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4run.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4event.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4tracking.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4track.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4geometry.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4materials.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4particles.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4processes.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4digits_hits.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4visualization.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4graphics_reps.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4physicslists.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/G4gdml.so
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/__init__.py
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/colortable.py
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/g4thread.py
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/g4viscp.py
-- Installing: /home/pjiang/install/fairsoft/lib/Geant4/hepunit.py
CMake Error at source/python3/cmake_install.cmake:51 (file):
file INSTALL cannot find
" /home/pjiang/install/fairsoft_may18/transport/geant4/build_g4py/source/p ython3/__init__.pyc ".
Call Stack (most recent call first):
source/cmake_install.cmake:58 (include)
cmake_install.cmake:42 (include)
Makefile:128: recipe for target 'install' failed
make: *** [install] Error 1
**** Checking libraries in /home/pjiang/install/fairsoft/lib ****
*** ERROR: g4py could not be created.
*** End installation of external packages with Errors***
--------------------------------------------------------------
What could be the reason? What to do?
Thank you in advance,
Peiyong
|
|
|
|
|
Re: CMake Error at source/python3/cmake_install.cmake:51 (file): *** ERROR: g4py could not be created. [message #23675 is a reply to message #23673] |
Tue, 26 February 2019 16:01 |
Peiyong Jiang
Messages: 7 Registered: February 2019
|
occasional visitor |
From: 140.181.8*
|
|
Hi Tobias,
At first I installed it on linux mint 19.1(ubuntu LTS 18.04),I upgraded my system before, and I forgot the specific kernel version. The gcc was about 7.2. Under this situation, there was a folder in ~~/python3/ named __pycache__ inside which there were pairs of files: *.cpython-36.opt-1.pyc and *.cpython-36.pyc. I think these should be *.pyo and *.pyc. So I change the name and put it in the folder ~~/python3/ .It works. My final aim is the installation of PandaRoot, but I was failed there.
Another reason I wanted to downgrade my linux mint is that I met a problem in the installation of Pandaroot. The problem is :
"nvcc fatal:Value 'sm_21' is nor defined for option 'gpu-architecture'." At that time, my nvcc was latest one(I think it is 10) which does not support "sm_21" any more. I just looked up the word 'sm_21' and removed "--gpu-architecture sm_21;" from "(APPEND CUDA_NVCC_FLAGS --gpu-architecture sm_21;-std=c++11;-O2;-DVERBOSE)", and it continued. But finally the PandaRoot was not installed successfully.
Then I made a decision to reinstall my linux mint after I checked the kernel version and gcc version of kronos. I tried linux mint 17.3 (ubuntu LTS 14.04 ?) but it is too old to install the drivers for the new pc. so I changed to linux mint 18.3(ubuntu LTS 16.04). The information:
1.
system: linux mint 18.3
gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.11)
2.
Linux pjiang 4.14.10-041410-generic #201712291810 SMP Fri Dec 29 18:11:20 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
3.
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2015 NVIDIA Corporation
Built on Tue_Aug_11_14:27:32_CDT_2015
Cuda compilation tools, release 7.5, V7.5.17
Under this situation, everything goes FINE until the last step in the installation of PandaRoot. The new problem in the installation of Pandaroot is as follows. And I have totally no idea to solve it. Do you have any recommendation?
-------------------
[ 83%] Building CXX object tracking/SecondariesTracking/CMakeFiles/SecondariesTracking.dir/TrkData/ PndTrkSkewHitList.cxx.o
[ 83%] Building CXX object tracking/SecondariesTracking/CMakeFiles/SecondariesTracking.dir/TrkData/ PndTrkNeighboringMap.cxx.o
[ 83%] Building CXX object tracking/SecondariesTracking/CMakeFiles/SecondariesTracking.dir/TrkSecon dary/PndTrkTrackFinder.cxx.o
[ 83%] Building CXX object tracking/SecondariesTracking/CMakeFiles/SecondariesTracking.dir/TrkSecon dary/PndTrkAddTCA.cxx.o
[ 83%] Building CXX object tracking/SecondariesTracking/CMakeFiles/SecondariesTracking.dir/TrkSecon dary/PndTrkGemCombiTask.cxx.o
[ 83%] Building CXX object tracking/SecondariesTracking/CMakeFiles/SecondariesTracking.dir/G__Secon dariesTrackingDict.cxx.o
[ 83%] Linking CXX shared library ../../lib/libSecondariesTracking.so
[ 83%] Built target SecondariesTracking
[ 83%] Building NVCC (Device) object tracking/SttCellTrackFinder/cuda/CMakeFiles/PndSttCellTrackFinderCuda.di r/PndSttCellTrackFinderCuda_generated_trackletGenerator.cu.o
/usr/include/string.h: In function 'void* __mempcpy_inline(void*, const void*, size_t)':
/usr/include/string.h:652:42: error: 'memcpy' was not declared in this scope
return (char *) memcpy (__dest, __src, __n) + __n;
^
CMake Error at PndSttCellTrackFinderCuda_generated_trackletGenerator.cu.o.Debug.cmake:2 75 (message):
Error generating file
/home/pjiang/pandaroot_18p1/buildPanda/tracking/SttCellTrackFinder/cuda/ CMakeFiles/PndSttCellTrackFinderCuda.dir//./PndSttCellTrackFinderCuda_ge nerated_trackletGenerator.cu.o
tracking/SttCellTrackFinder/cuda/CMakeFiles/PndSttCellTrackFinderCuda.di r/build.make:280: recipe for target 'tracking/SttCellTrackFinder/cuda/CMakeFiles/PndSttCellTrackFinderCuda.d ir/PndSttCellTrackFinderCuda_generated_trackletGenerator.cu.o' failed
make[2]: *** [tracking/SttCellTrackFinder/cuda/CMakeFiles/PndSttCellTrackFinderCuda.d ir/PndSttCellTrackFinderCuda_generated_trackletGenerator.cu.o] Error 1
CMakeFiles/Makefile2:4014: recipe for target 'tracking/SttCellTrackFinder/cuda/CMakeFiles/PndSttCellTrackFinderCuda.d ir/all' failed
make[1]: *** [tracking/SttCellTrackFinder/cuda/CMakeFiles/PndSttCellTrackFinderCuda.d ir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2
---------------
Many thanks for your reply.
Best,
Peiyong
|
|
|
|
|
|
|