------- Comment From tmri...@de.ibm.com 2018-02-20 03:05 EDT------- > I believe this is third party source that you are trying to build, not using > Ubuntu package build procedures, > with a non-default compiler.
Absolutely no. I have downloaded the clang compiler and libraries from ubuntu: root@s8360046:~# apt list --installed|fgrep clang WARNING: apt does not have a stable CLI interface. Use with caution in scripts. clang-4.0/artful,now 1:4.0.1-6 s390x [installed,automatic] libclang-common-4.0-dev/artful,now 1:4.0.1-6 s390x [installed,automatic] libclang1-4.0/artful,now 1:4.0.1-6 s390x [installed,automatic] root@s8360046:~# cang is part of the ubuntu installation. > This is out of scope to provide support for. > Why are you using clang, instead of gcc, btw? I believe you will have more > success if you use the default > Ubuntu gcc compiler. I downloaded the linux kernel source tree. It contains a directory named linux/tools/testing/selftests/bpf. When you compile the code in the bpf directory, it creates eBPF byte code to be loaded and executed in the kernel. gcc does not generate eBPF code, there clang is used. Whatever, this setup is part of the linux kernel, I did not change anything. All I did was building the selftest tools for the linux kernel and it fails. -- You received this bug notification because you are a member of Kernel Packages, which is subscribed to linux in Ubuntu. https://bugs.launchpad.net/bugs/1750388 Title: 17.10 - BPF test tool build with errors Status in Ubuntu on IBM z Systems: Invalid Status in linux package in Ubuntu: Invalid Bug description: Rebuild problem of BPFC test tool with Ubuntu 17.10 uname -a Linux s8360046 4.13.0-16-generic #19-Ubuntu SMP Wed Oct 11 18:33:05 UTC 2017 s390x s390x s390x GNU/Linux cat ./etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=17.10 DISTRIB_CODENAME=artful DISTRIB_DESCRIPTION="Ubuntu 17.10" root@s8360046:/# When I compile file test_pkt_access.c in directory linux/tools/testing/selftest/bpf I get a compile error. root@s8360046:~/linux/tools/testing/selftests/bpf# clang -I. -I./include/uapi -I../../../include/uapi -Wno-compare-distinct-pointer-types -O2 -target bpf -emit-llvm -c test_pkt_access.c -o - In file included from test_pkt_access.c:8: /usr/include/string.h:26:10: fatal error: 'bits/libc-header-start.h' file not found #include <bits/libc-header-start.h> ^~~~~~~~~~~~~~~~~~~~~~~~~~ 1 error generated. # File bits/libc-header-start.h is located in directory /usr/include/s390x-linux-gnu which is not part of the include directory list: # find /usr/ -name libc-header-start.h /usr/include/s390x-linux-gnu/bits/libc-header-start.h # When I add this directory to the include pathes of the compile, I get another error: # clang -I. -I./include/uapi -I../../../include/uapi -I/usr/include/s390x-linux-gnu -Wno-compare-distinct-pointer-types -O2 -target bpf -emit-llvm -c test_pkt_access.c -o - In file included from test_pkt_access.c:12: In file included from /usr/include/linux/ip.h:20: In file included from /usr/include/s390x-linux-gnu/asm/byteorder.h:4: In file included from /usr/include/linux/byteorder/big_endian.h:12: In file included from /usr/include/linux/swab.h:6: /usr/include/s390x-linux-gnu/asm/swab.h:52:5: error: invalid output constraint '=&d' in asm : "=&d" (result) : "Q" (*x) : "cc"); ^ /usr/include/s390x-linux-gnu/asm/swab.h:80:5: error: invalid output constraint '=&d' in asm : "=&d" (result) : "Q" (*x) : "cc"); ^ 2 errors generated. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu-z-systems/+bug/1750388/+subscriptions -- Mailing list: https://launchpad.net/~kernel-packages Post to : kernel-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~kernel-packages More help : https://help.launchpad.net/ListHelp