You have been subscribed to a public bug:

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.

** Affects: linux (Ubuntu)
     Importance: Undecided
     Assignee: Skipper Bug Screeners (skipper-screen-team)
         Status: New


** Tags: architecture-s39064 bugnameltc-164834 severity-high 
targetmilestone-inin1604
-- 
17.10 - BPF package build with errors
https://bugs.launchpad.net/bugs/1750388
You received this bug notification because you are a member of Kernel Packages, 
which is subscribed to linux in Ubuntu.

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

Reply via email to