Open Quuxplusone opened 3 years ago
Bugzilla Link | PR48454 |
Status | NEW |
Importance | P enhancement |
Reported by | Shaun Crampton (shaun@tigera.io) |
Reported on | 2020-12-09 03:53:46 -0800 |
Last modified on | 2020-12-11 02:54:27 -0800 |
Version | 11.0 |
Hardware | PC Linux |
CC | htmldeveloper@gmail.com, llvm-bugs@lists.llvm.org |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
The clang command was this:
clang-11 -x c -DKERNEL -DASM_SYSREG_H -DLINUX_BPF_H__ -Wno-unused-value -Wno-pointer-sign -Wno-compare-distinct-pointer-types -Wunused -Wall -Werror -fno-stack-protector -O2 -emit-llvm --include=/usr/src/linux-headers-5.9.0-0.bpo.2-common/include/uapi/linux/bpf.h --include=/usr/src/linux-headers-5.9.0-0.bpo.2-amd64/include/generated/uapi/linux/version.h ./calculate-flags from_wg_debug.ll
-c tc.c -o from_wg_debug.ll
The code I'm trying to compile is here: https://github.com/projectcalico/felix/tree/master/bpf-gpl
We do our builds in a docker container, so i had patched that docker container to install the new clang and patched the makefile to use clang-11 and llc-11 instead of clang/llc.
Same build works with v12.0.0