lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Tue, 28 May 2019 14:27:25 +0530
From:   Srinivas Ramana <sramana@...eaurora.org>
To:     Alexei Starovoitov <ast@...nel.org>,
        Daniel Borkmann <daniel@...earbox.net>,
        Martin KaFai Lau <kafai@...com>,
        Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>,
        netdev@...r.kernel.org, bpf@...r.kernel.org
Subject: samples/bpf compilation failures - 5.2.0

Hello,

I am trying to build samples/bpf in kernel(5.2.0-rc1) but unsuccessful 
with below errors. Can you help to point what i am missing or if there 
is some known issue?

==============================8<===================================
$ make samples/bpf/ 
LLC=/local/mnt/workspace/tools/clang_ubuntu/clang/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/llc 
CLANG=/local/mnt/workspace/tools/clang_ubuntu/clang/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang 
V=1
make -C /local/mnt/workspace/sramana/kdev_torvalds/kdev/kernel -f 
/local/mnt/workspace/sramana/kdev_torvalds/kdev/kernel/Makefile samples/bpf/
................
................
................
make KBUILD_MODULES=1 -f ./scripts/Makefile.build obj=samples/bpf
(cat /dev/null; ) > samples/bpf/modules.order
make -C 
/local/mnt/workspace/sramana/kdev_torvalds/kdev/kernel/samples/bpf/../../tools/lib/bpf/ 
RM='rm -rf' LDFLAGS= 
srctree=/local/mnt/workspace/sramana/kdev_torvalds/kdev/kernel/samples/bpf/../../ 
O=

Auto-detecting system features:
...                        libelf: [ on  ]
...                           bpf: [ on  ]

make -C 
/local/mnt/workspace/sramana/kdev_torvalds/kdev/kernel/samples/bpf/../..//tools/build 
CFLAGS= LDFLAGS= fixdep
make -f 
/local/mnt/workspace/sramana/kdev_torvalds/kdev/kernel/samples/bpf/../..//tools/build/Makefile.build 
dir=. obj=fixdep
    ld -r -o fixdep-in.o  fixdep.o
ld: fixdep.o: Relocations in generic ELF (EM: 183)
ld: fixdep.o: Relocations in generic ELF (EM: 183)
fixdep.o: error adding symbols: File in wrong format
make[5]: *** [fixdep-in.o] Error 1
make[4]: *** [fixdep-in.o] Error 2
make[3]: *** [fixdep] Error 2
make[2]: *** 
[/local/mnt/workspace/sramana/kdev_torvalds/kdev/kernel/samples/bpf/../../tools/lib/bpf/libbpf.a] 
Error 2
make[1]: *** [samples/bpf/] Error 2
make: *** [sub-make] Error 2
==============================>8=======================================


I am using the below commands to build:
========================================================
export ARCH=arm64
export CROSS_COMPILE=<path>linaro-toolchain/5.1/bin/aarch64-linux-gnu-
export CLANG_TRIPLE=arm64-linux-gnu-

make 
CC=<path>/clang_ubuntu/clang/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang 
defconfig

make 
CC=<path>/clang_ubuntu/clang/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang 
-j8

make 
CC=<path>/clang_ubuntu/clang/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang 
headers_install INSTALL_HDR_PATH=./usr

make samples/bpf/ 
LLC=<path>/clang_ubuntu/clang/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/llc 
CLANG=<path>/clang_ubuntu/clang/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang 
V=1 
CC=<path>/clang_ubuntu/clang/clang+llvm-8.0.0-x86_64-linux-gnu-ubuntu-14.04/bin/clang
========================================================

Thanks,
-- Srinivas R

-- 
Qualcomm India Private Limited, on behalf of Qualcomm Innovation
Center, Inc., is a member of Code Aurora Forum, a Linux Foundation
Collaborative Project

Powered by blists - more mailing lists