-
Notifications
You must be signed in to change notification settings - Fork 104
Description
Describe the bug
I try to build polycube form source code, occur follow errors:
[ 19%] Linking CXX static library libclang_frontend.a
[ 19%] Built target clang_frontend
make: *** [Makefile:130: all] Error 2
error: Bad exit status from /var/tmp/rpm-tmp.yWC67Y (%build)
To Reproduce
Steps to reproduce the behavior:
-
first step:git clone source code
git clone https://github.com/polycube-network/polycube
cd polycube
git submodule update --init --recursive -
write spec file
The key information of spec :
===========>The following is buildrquire information
=>provides compiler and other compilation tools
BuildRequires: cmake
=>yum groupinstall "Development Tools"
BuildRequires: asciidoc byacc ctags diffstat gcc-gfortran gdb
BuildRequires: intltool ltrace patchutils perl-Fedora-VSP
BuildRequires: pesign source-highlight systemtap valgrind-devel
BuildRequires: openEuler-rpm-config perl-generators
=> bcc dependencies
BuildRequires: bison flex elfutils-devel
=>bpf tools compilation tool chain
BuildRequires: llvm-devel llvm-libs llvm compiler-rt
BuildRequires: clang-devel clang-analyzer lldb-devel
=>netlink library
BuildRequires: libnl3-devel
BuildRequires: uuid-devel autoconf libtool m4 automake
=>needed for polycubectl and pcn-k8s
BuildRequires: golang
=>needed for certificate based security
BuildRequires: openssl-devel
=>needed for pcn-iptables, when using lsmod to unload conntrack if not needed
BuildRequires: kmod
=>needed for pcn-iptables, when building docker image
BuildRequires: sudo
=>needed for polycubectl bash autocompletion
BuildRequires: jq bash-completion
=>needed for network service module
BuildRequires: libyang-devel
=>needed for packetcapture filter
BuildRequires: libpcap-devel
=>needed for pcn-k8s mode
BuildRequires: curl iptables iproute
=>needed for polycube
BuildRequires: libtins pistache libyang
===========>The following is parting package verion
=>rpm -qa | grep llvm
llvm-libs-7.0.0-9.oe1.aarch64
llvm-7.0.0-9.oe1.aarch64
llvm-devel-7.0.0-9.oe1.aarch64
=>rpm -qa | grep clang
clang-devel-7.0.0-5.oe1.aarch64
clang-analyzer-7.0.0-5.oe1.noarch
clang-7.0.0-5.oe1.aarch64
clang-tools-extra-7.0.0-5.oe1.aarch64
clang-help-7.0.0-5.oe1.aarch64
Is need other package version infomation ?
- Execute this '....'
===========>The following is bulid operation from spec file
%build
mkdir build && cd build
~ Set $GOPATH, if not already set
if [[ -z "${GOPATH}" ]]; then
mkdir -p %{buildroot}/go
export GOPATH=%{buildroot}/go
fi
cmake -DCMAKE_INSTALL_PREFIX=%{buildroot}%{_prefix} ..
make %{?_smp_mflags}
- See error
Expected behavior
BUILD OK.
Please tell us about your environment:
-
OS details:
~ cat /etc/euleros-release
EulerOS release 2.0 (SP9) -
Kernel details:
uname -a
Linux host 4.19.90-2003.4.0.0036.oe1.aarch64 pcn_log cannot be split in multiple lines #1 SMP Mon Mar 23 19:06:43 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux -
Polycube Version:
source code from git clone, commit id a5bbab6 -
Polycube Log:
none
Additional context
none