I believe this is third party source that you are trying to build, not
using Ubuntu package build procedures, with a non-default compiler.

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.

** Changed in: linux (Ubuntu)
       Status: New => Invalid

** Changed in: ubuntu-z-systems
       Status: New => Invalid

You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.

  17.10 - BPF test tool build with errors

Status in Ubuntu on IBM z Systems:
Status in linux package in Ubuntu:

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

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

  When I add this directory to the include pathes of the compile, I get another 

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

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