ubuntu_bpf failed to build on F-ibm-5.15
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned |
Bug Description
Test build failed with:
In file included from progs/test_
/home/
#pragma clang attribute push (__attribute_
^
/home/
#pragma clang attribute pop
^
2 errors generated.
We are using clang-9 for this, we might need to use clang-10 instead.
With clang-10 and llvm-10, test build failed with: include/ uapi/linux/ bpf.h' differs from latest version at 'include/ uapi/linux/ bpf.h' include/ uapi/linux/ netlink. h' differs from latest version at 'include/ uapi/linux/ netlink. h' include/ uapi/linux/ if_link. h' differs from latest version at 'include/ uapi/linux/ if_link. h' ubuntu/ autotest/ client/ tmp/ubuntu_ bpf/src/ linux/tools/ testing/ selftests/ bpf/tools/ include -I/home/ ubuntu/ autotest/ client/ tmp/ubuntu_ bpf/src/ linux/tools/ testing/ selftests/ bpf -I/home/ ubuntu/ autotest/ client/ tmp/ubuntu_ bpf/src/ linux/tools/ include/ uapi -I/home/ ubuntu/ autotest/ client/ tmp/ubuntu_ bpf/src/ linux/tools/ testing/ selftests/ usr/include -idirafter /usr/local/include -idirafter /usr/lib/ llvm-10/ lib/clang/ 10.0.0/ include -idirafter /usr/include/ x86_64- linux-gnu -idirafter /usr/include -Wno-compare- distinct- pointer- types -DENABLE_ ATOMICS_ TESTS -O2 -target bpf -c progs/atomics.c -o /home/ubuntu/ autotest/ client/ tmp/ubuntu_ bpf/src/ linux/tools/ testing/ selftests/ bpf/atomics. o -mcpu=v3 x86_64- linux-gnu/ libLLVM- 10.so.1( _ZN4llvm3sys15P rintStackTraceE RNS_11raw_ ostreamE+ 0x1f)[0x7fa525c 8a4ff] x86_64- linux-gnu/ libLLVM- 10.so.1( _ZN4llvm3sys17R unSignalHandler sEv+0x50) [0x7fa525c887b0 ] x86_64- linux-gnu/ libLLVM- 10.so.1( _ZN4llvm3sys15C leanupOnSignalE m+0xdd) [0x7fa525c89c4d ] x86_64- linux-gnu/ libLLVM- 10.so.1( +0x8d6cea) [0x7fa525bdfcea ] x86_64- linux-gnu/ libLLVM- 10.so.1( +0x8d6c8b) [0x7fa525bdfc8b ] x86_64- linux-gnu/ libLLVM- 10.so.1( +0x97c3fe) [0x7fa525c853fe ] 10[0x4125b2] x86_64- linux-gnu/ libLLVM- 10.so.1( _ZN4llvm18repor t_fatal_ errorERKNS_ 5TwineEb+ 0x104)[ 0x7fa525be99b4] x86_64- linux-gnu/ libLLVM- 10.so.1( _ZN4llvm18repor t_fatal_ errorENS_ 9StringRefEb+ 0x0)[0x7fa525be 9a80] x86_64- linux-gnu/ libLLVM- 10.so.1( +0x21874ed) [0x7fa5274904ed ] x86_64- linux-gnu/ libLLVM- 10.so.1( _ZN4llvm19Machi neFunctionPass1 3runOnFunctionE RNS_8FunctionE+ 0x118)[ 0x7fa525f255e8] x86_64- linux-gnu/ libLLVM- 10.so.1( _ZN4llvm13FPPas sManager13runOn FunctionERNS_ 8FunctionE+ 0x466)[ 0x7fa525d8fd76] x86_64- linux-gnu/ libLLVM- 10.so.1( _ZN4llvm13FPPas sManager11runOn ModuleERNS_ 6ModuleE+ 0x33)[0x7fa525d 8fff3] x86_64- linux-gnu/ libLLVM- 10.so.1( _ZN4llvm6legacy 15PassManagerIm pl3runERNS_ 6ModuleE+ 0x3c0)[ 0x7fa525d904a0] x86_64- linux-gnu/ libclang- cpp.so. 10(_ZN5clang17E mitBackendOutpu tERNS_17Diagnos ticsEngineERKNS _19HeaderSearch OptionsERKNS_ 14CodeGenOption sERKNS_ 13TargetOptions ERKNS_11LangOpt ionsERKN4llvm10 DataLayoutEPNSE _6ModuleENS_ 13BackendAction ESt10unique_ ptrINSE_ 17raw_pwrite_ streamESt14defa ult_deleteISM_ EE+0x3173) [0x7fa52ad85433 ] x86_64- linux-gnu/ libclang- cpp.so. 10(+0x1667e1c) [0x7fa52b004e1c ] x86_64- linux-gnu/ libclang- cpp.so. 10(_ZN5clan. ..
Warning: Kernel ABI header at 'tools/
Warning: Kernel ABI header at 'tools/
Warning: Kernel ABI header at 'tools/
fatal error: error in backend: line 27: Invalid usage of the XADD return value
Stack dump:
0. Program arguments: clang-10 -g -D__TARGET_ARCH_x86 -mlittle-endian -I/home/
1. <eof> parser at end of file
2. Code generation
3. Running pass 'Function Pass Manager' on module 'progs/atomics.c'.
4. Running pass 'BPF PreEmit Checking' on function '@add'
/lib/
/lib/
/lib/
/lib/
/lib/
/lib/
clang-
/lib/
/lib/
/lib/
/lib/
/lib/
/lib/
/lib/
/lib/
/lib/
/lib/