[llvm-dev] Compiling linux with `clang -fbasic-block-sections=labels`
A G via llvm-dev
llvm-dev at lists.llvm.org
Mon Jun 7 21:14:44 PDT 2021
Hi,
I'm trying to build the linux kernel with *`clang
-fbasic-block-sections=labels`.*
I ran into this error:
/tmp/main-81886d.s: Assembler messages:
/tmp/main-81886d.s: Error: .size expression for .BB.set_reset_devices does
not evaluate to a constant
/tmp/main-81886d.s: Error: .size expression for .BB.debug_kernel does not
evaluate to a constant
/tmp/main-81886d.s: Error: .size expression for .BB.quiet_kernel does not
evaluate to a constant
/tmp/main-81886d.s: Error: .size expression for .BB.loglevel does not
evaluate to a constant
make kernelversion
5.10.0
clang version 11.1.0 (g... at github.com:llvm/llvm-project.git
1fdec59bffc11ae37eb51a1b9869f0696bfd5312)
Target: x86_64-unknown-linux-gnu
1. Can someone help me understand what this error means?
2. Is *clang-built-linux* a better place to ask this question?
3. Is there a workaround for this?
Thanks
Akshith
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20210607/186e97cd/attachment.html>
More information about the llvm-dev
mailing list