Bug #41608
openceph_test_msgr: file INSTALL cannot copy file
0%
Description
rpmbuild failed with below log:
-- Installing: /home/rdma/rpmbuild/BUILDROOT/ceph-14.0.0-14563.g6a3bb5e.el7.x86_64/usr/bin/ceph_test_msgr
CMake Error at src/test/msgr/cmake_install.cmake:67 (file):
file INSTALL cannot copy file
"/home/rdma/rpmbuild/BUILD/ceph-14.0.0-14563-g6a3bb5e/build/bin/ceph_test_msgr"
to
"/home/rdma/rpmbuild/BUILDROOT/ceph-14.0.0-14563.g6a3bb5e.el7.x86_64/usr/bin/ceph_test_msgr".
Call Stack (most recent call first):
src/test/cmake_install.cmake:270 (include)
src/cmake_install.cmake:375 (include)
cmake_install.cmake:43 (include)
source code:
master branch, commit head: c5d45ab88a89b779e530ad
Updated by Changcheng Liu over 4 years ago
Reproduce steps:
Build environment:
[rdma@rdmarhel rpmbuild]$ cat /etc/os-release
NAME="Red Hat Enterprise Linux Server"
VERSION="7.5 (Maipo)"
ID="rhel"
ID_LIKE="fedora"
VARIANT="Server"
VARIANT_ID="server"
VERSION_ID="7.5"
Source code:
git clone https://github.com/ceph/ceph.git
git checkout -b rpm_build
git reset --hard c5d45ab88
package build source code
cd ceph
./install-deps.sh
make-srpm.sh
Prepare build environment:
cd $HOME
rpmdev-setuptree
cp ${PATH_CEPH_ROOT}/ceph/ceph-14.0.0-14563-g6a3bb5e.tar.bz2 ~/rpmbuild/SOURCES/
tar --strip-components=1 -C ~/rpmbuild/SPECS/ --no-anchored -xvjf ~/rpmbuild/SOURCES/ceph-14.0.0-14563-g6a3bb5e.tar.bz2 ceph.spec
Trigger build
rpmbuild -ba ~/rpmbuild/SPECS/ceph.spec
Hit build error log
-- Installing: /home/rdma/rpmbuild/BUILDROOT/ceph-14.0.0-14563.g6a3bb5e.el7.x86_64/usr/bin/ceph_test_msgr
CMake Error at src/test/msgr/cmake_install.cmake:67 (file):
file INSTALL cannot copy file
"/home/rdma/rpmbuild/BUILD/ceph-14.0.0-14563-g6a3bb5e/build/bin/ceph_test_msgr"
to
"/home/rdma/rpmbuild/BUILDROOT/ceph-14.0.0-14563.g6a3bb5e.el7.x86_64/usr/bin/ceph_test_msgr".
Call Stack (most recent call first):
src/test/cmake_install.cmake:270 (include)
src/cmake_install.cmake:375 (include)
cmake_install.cmake:43 (include)