Bug #42093
closedIt does not make the ceph with script "run-make-check.sh" sucessfully when I follow the chapter "DEVELOPER GUIDE (QUICK)" in ceph.io site
0%
Description
As the $subject descripted , I get the below error when I try to run the srcipt "run-make-check.sh".
....
[ 51%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/operation/SnapshotLimitRequest.cc.o
[ 51%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/operation/SparsifyRequest.cc.o
[ 51%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/operation/TrimRequest.cc.o
[ 51%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/trash/MoveRequest.cc.o
[ 51%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/trash/RemoveRequest.cc.o
[ 51%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/watcher/Notifier.cc.o
[ 51%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/watcher/RewatchRequest.cc.o
[ 51%] Building CXX object src/librbd/CMakeFiles/rbd_internal.dir/__/common/ContextCompletion.cc.o
[ 51%] Linking CXX static library ../../lib/librbd_internal.a
[ 51%] Built target rbd_internal
CMakeFiles/Makefile2:441: recipe for target 'CMakeFiles/tests.dir/rule' failed
make1: * [CMakeFiles/tests.dir/rule] Error 2
Makefile:240: recipe for target 'tests' failed
make: * [tests] Error 2
the git command output is as below shown:
- master 35dbbf9a9b [behind 1299] Merge pull request #29854 from tchaikov/wip-sloppy-cond
git describe
v15.0.0-4334-g35dbbf9a9b
My os version is below:
cat /etc/os-release
NAME="Ubuntu"
VERSION="18.04.3 LTS (Bionic Beaver)"
ID=ubuntu
ID_LIKE=debian
PRETTY_NAME="Ubuntu 18.04.3 LTS"
VERSION_ID="18.04"
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
VERSION_CODENAME=bionic
UBUNTU_CODENAME=bionic
Could someone grab my question? Thanks very much!
wei
Files
Updated by Brad Hubbard over 4 years ago
- Category set to build
- Source set to Community (user)
Hi Wei,
Can you give more information about the error you are seeing?
The "Error 2" at the end of the build output is kind of a summary saying "A level 2 error occurred during the build". What we'd really need to see is the lines surrounding the first "Error 2" output during the build. If you like attach the entire build output and I'll take a look.
Updated by Nathan Cutler over 4 years ago
Just wondering, why are you trying to build a version of master that is over a month old? https://github.com/ceph/ceph/pull/29854 was merged on August 26....
Updated by Nathan Cutler over 4 years ago
Also, the lines above "Error 1" in the log would show the first build error, which might be just as interesting as the second one.
Updated by wei liu over 4 years ago
- File ceph_make_error.rtf ceph_make_error.rtf added
Brad Hubbard wrote:
Hi Wei,
Can you give more information about the error you are seeing?
The "Error 2" at the end of the build output is kind of a summary saying "A level 2 error occurred during the build". What we'd really need to see is the lines surrounding the first "Error 2" output during the build. If you like attach the entire build output and I'll take a look.
Dear Brad:
Due to holiday recently in China, my answer is too late, I am so sorry for that. Now I will attach the error I am seeing when I try to compile the ceph with source code. Please check it . I hope that is useful for this question.
Thanks again!
Wei
Updated by Brad Hubbard over 4 years ago
Hi Wei,
Requirement already up-to-date: pip>=6.1 in /home/wliu/data1/Ceph/ceph_build_via_code/ceph/build/mgr-orchestrator_cli-virtualenv/lib/python2.7/site-packages (19.2.3)\ \ Complete output from command /home/wliu/data1/Cep...ualenv/bin/python2.7 - setuptools pkg_resources pip wheel:\ Collecting setuptools\ Downloading https://files.pythonhosted.org/packages/6a/9a/50fadfd53ec909e4399b67c74cc7f4e883488035cfcdb90b685758fa8b34/setuptools-41.4.0-py2.py3-none-any.whl (580kB)\ Exception:\
This seems to be an issue with the python virtual environment. Could you try the following from the ceph source directory?
# source build/mgr-orchestrator_cli-virtualenv/bin/activate # pip list # pip install -v setuptools # deactivate
If any of the above fails please upload all the output.
Updated by wei liu over 4 years ago
Brad Hubbard wrote:
Hi Wei,
[...]
This seems to be an issue with the python virtual environment. Could you try the following from the ceph source directory?
[...]
If any of the above fails please upload all the output.
Dear Brad:
Thanks for your help on this ticket , I will test in my environment and feedback later!
Thanks again!!!
Wei
Updated by wei liu over 4 years ago
Brad Hubbard wrote:
Hi Wei,
[...]
This seems to be an issue with the python virtual environment. Could you try the following from the ceph source directory?
[...]
If any of the above fails please upload all the output.
Dear Brad:
So sorry for replying later on this ticket, following your suggestion , the error has been fixed , I think you can close this ticket.
Thanks again !
Wei