** Summary changed:

- 17.10 - BPF package build with errors
+ 17.10 - BPF test tool build with errors

-- 
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 linux package in Ubuntu:
  New

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/+source/linux/+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

Reply via email to