Project

General

Profile

Actions

Bug #41608

open

ceph_test_msgr: file INSTALL cannot copy file

Added by Changcheng Liu over 4 years ago. Updated over 4 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
% Done:

0%

Source:
Development
Tags:
Backport:
Regression:
No
Severity:
2 - major
Reviewed:
Affected Versions:
ceph-qa-suite:
Pull request ID:
Crash signature (v1):
Crash signature (v2):

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

Actions #1

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)

Actions

Also available in: Atom PDF