Skip to content

[BUG] build failed. #319

@Mr-dot-lu

Description

@Mr-dot-lu

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:

  1. first step:git clone source code
    git clone https://github.com/polycube-network/polycube
    cd polycube
    git submodule update --init --recursive

  2. 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 ?

  1. 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}

  1. See error

Expected behavior

BUILD OK.

Please tell us about your environment:

  1. OS details:
    ~ cat /etc/euleros-release
    EulerOS release 2.0 (SP9)

  2. 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

  3. Polycube Version:
    source code from git clone, commit id a5bbab6

  4. Polycube Log:
    none

Additional context

none

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions