This repository was archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 343
Kernel Devel error when building Cortx in docker #864
Copy link
Copy link
Closed
Description
Attempt 1
Following this guide, I wanted to build Cortx using the cortx-build image. However, I encounter the following error:
...
--> Already installed : lustre-client-devel-2.12.5-1.el7.x86_64
--> Already installed : libuuid-devel-2.23.2-63.el7.x86_64
--> Already installed : binutils-devel-2.27-43.base.el7.x86_64
--> Already installed : python36-ply-3.9-2.el7.noarch
--> Already installed : perl-autodie-2.16-2.el7.noarch
--> Already installed : systemd-devel-219-73.el7.1.x86_64
--> Already installed : python-devel-2.7.5-88.el7.x86_64
--> Already installed : libedit-devel-3.0-12.20121213cvs.el7.x86_64
Error: No Package found for kernel-devel = 3.10.0-1062.el7
ERROR: cortx-motr source code is not available in cortx-workspace. Exiting...
make: *** [_cortx-motr_prereq] Error 1
Attempt 2
So I thought perhaps it's missing the kernel devel, and I opened an interactive shell
docker run --rm -v /var/artifacts:/var/artifacts -v /root/cortx:/cortx-workspace -it ghcr.io/seagate/cortx-build:centos-7.8.2003
Manually install a kernel devel before building
yum install -y https://buildlogs.centos.org/c7.1908.00.x86_64/kernel/20190808101829/3.10.0-1062.el7.x86_64/kernel-devel-3.10.0-1062.el7.x86_64.rpm
make clean build
It went past the initial stage, but then failed again (error_output.txt) at a later stage
...
checking whether malloc_size is declared... no
checking whether backtrace is declared... yes
checking systemd/sd-daemon.h usability... yes
checking systemd/sd-daemon.h presence... yes
checking for systemd/sd-daemon.h... yes
checking whether sd_notify is declared... yes
checking for library containing sd_notify... -lsystemd-daemon
checking for symbols file... configure: error: Failed to find symbols files in /lib/modules/3.10.0-1062.el7.x86_64/build
error: Bad exit status from /var/tmp/rpm-tmp.HxRlS2 (%build)
RPM build errors:
Bad exit status from /var/tmp/rpm-tmp.HxRlS2 (%build)
make[2]: *** [__rpm_tests] Error 1
make[1]: *** [rpms] Error 2
make: *** [_cortx-motr_build] Error 2
Script to reproduce
yum install -y http://opensource.wandisco.com/centos/7/git/x86_64/wandisco-git-release-7-2.noarch.rpm
yum install -y git
yum install -y yum-utils
yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce docker-ce-cli containerd.io
cd /root
mkdir /var/artifacts
git clone --depth 1 --recursive --shallow-submodules https://github.com/Seagate/cortx
systemctl start docker
docker run --rm -v /var/artifacts:/var/artifacts -v /root/cortx:/cortx-workspace ghcr.io/seagate/cortx-build:centos-7.8.2003 make clean build
Using VMWare Workstation 16 Player (Windows 10) running CentOS 7.7.1908
Metadata
Metadata
Assignees
Labels
No labels