Comment 5 for bug 2028932

Revision history for this message
Po-Hsu Lin (cypressyew) wrote :

If you try to use clang-16, llvm-16 and gcc-13 on Lunar, it will complain about:
  MOD bpf_testmod.ko
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.1.0-8ubuntu1) 13.1.0
  You are using: Ubuntu clang version 15.0.7
  CC [M] /home/ubuntu/mainline-crack/tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.o
clang: error: unknown argument: '-fconserve-stack'
clang: error: unsupported argument 'bounds-strict' to option '-fsanitize='
clang: error: unsupported option '-mrecord-mcount' for target 'x86_64-unknown-linux-gnu'
clang: error: '-ftrivial-auto-var-init=zero' hasn't been enabled; enable it at your own peril for benchmarking purpose only with '-enable-trivial-auto-var-init-zero-knowing-it-will-be-removed-from-clang'
make[4]: *** [scripts/Makefile.build:243: /home/ubuntu/mainline-crack/tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.o] Error 1
make[3]: *** [Makefile:2038: /home/ubuntu/mainline-crack/tools/testing/selftests/bpf/bpf_testmod] Error 2
make[2]: *** [Makefile:16: all] Error 2
make[1]: *** [Makefile:206: /home/ubuntu/mainline-crack/tools/testing/selftests/bpf/bpf_testmod.ko] Error 2
make[1]: Leaving directory '/home/ubuntu/mainline-crack/tools/testing/selftests/bpf'
make: *** [Makefile:169: all] Error 2