-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Hi,
with the attached config and Makefile, I can no longer successfully compile the Linux-Xanmod Kernel 5.14.6 with Full LTO - this is a recent regression, it used to work with 5.14.5 and a LLVM/Clang 14 build one week older than the one mentioned in the title.
The issue occurs when building the modules.
This is the output I get:
Cannot take the address of an inline asm!
store i32 (i32)* asm "# ALT: oldnstr\0A661:\0A\09call __sw_hweight32\0A662:\0A# ALT: padding\0A.skip -(((6651f-6641f)-(662b-661b)) > 0) * ((6651f-6641f)-(662b-661b)),0x90\0A663:\0A.pushsection .altinstructions,\22a\22\0A .long 661b - .\0A .long 6641f - .\0A .word ( 4*32+23)\0A .byte 663b-661b\0A .byte 6651f-6641f\0A.popsection\0A.pushsection .altinstr_replacement, \22ax\22\0A# ALT: replacement 1\0A6641:\0A\09popcntl $1, $0\0A6651:\0A.popsection\0A", "={ax},{di},{dirflag},{fpsr},~{flags}", i32 (i32)** LTO [M] drivers/input/mouse/elan_i2c.lto.o
%36, align 8
LLVM ERROR: Broken module found, compilation aborted!
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:
-
Program arguments: ld.lld -m elf_x86_64 -mllvm -import-instr-limit=5 -r -o drivers/gpu/drm/amd/amdgpu/amdgpu.lto.o --whole-archive drivers/gpu/drm/amd/amdgpu/amdgpu.o
#0 0x00007f19ec0d62e3 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/../lib/libLLVM-14.so+0x1b7c2e3)
#1 0x00007f19ec0d33f0 llvm::sys::RunSignalHandlers() (/usr/bin/../lib/libLLVM-14.so+0x1b793f0)
#2 0x00007f19ec0d5cca (/usr/bin/../lib/libLLVM-14.so+0x1b7bcca)
#3 0x00007f19ea336870 __restore_rt sigaction.c:0:0
#4 0x00007f19ea193d22 raise (/usr/bin/../lib/libc.so.6+0x3cd22)
#5 0x00007f19ea17d862 abort (/usr/bin/../lib/libc.so.6+0x26862)
#6 0x00007f19ebfe92de (/usr/bin/../lib/libLLVM-14.so+0x1a8f2de)
#7 0x00007f19ebfe9106 (/usr/bin/../lib/libLLVM-14.so+0x1a8f106)
#8 0x00007f19edab8c4d (/usr/bin/../lib/libLLVM-14.so+0x355ec4d)
#9 0x00007f19ec2a1b70 llvm::PassManager<llvm::Module, llvm::AnalysisManager<llvm::Module> >::run(llvm::Module&, llvm::AnalysisManager<llvm::Module>&) (/usr/bin/../lib/libLLVM-14.so+0x1d47b70)
#10 0x00007f19edab66f0 llvm::lto::opt(llvm::lto::Config const&, llvm::TargetMachine*, unsigned int, llvm::Module&, bool, llvm::ModuleSummaryIndex*, llvm::ModuleSummaryIndex const*, std::vector<unsigned char, std::allocator<unsigned char> > const&) (/usr/bin/../lib/libLLVM-14.so+0x355c6f0)
#11 0x00007f19edab9269 llvm::lto::backend(llvm::lto::Config const&, std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>, unsigned int, llvm::Module&, llvm::ModuleSummaryIndex&) (/usr/bin/../lib/libLLVM-14.so+0x355f269)
#12 0x00007f19edaaaf24 llvm::lto::LTO::runRegularLTO(std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>) (/usr/bin/../lib/libLLVM-14.so+0x3550f24)
#13 0x00007f19edaaa5ad llvm::lto::LTO::run(std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>, std::function<std::function<std::unique_ptr<llvm::lto::NativeObjectStream, std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)> (unsigned int, llvm::StringRef)>) (/usr/bin/../lib/libLLVM-14.so+0x35505ad)
#14 0x000000000054812a lld::elf::BitcodeCompiler::compile() (/usr/bin/lld+0x54812a)
#15 0x00000000004baee6 void lld::elf::LinkerDriver::compileBitcodeFiles<llvm::object::ELFType<(llvm::support::endianness)1, true> >() (/usr/bin/lld+0x4baee6)
#16 0x00000000004a7ef4 void lld::elf::LinkerDriver::link<llvm::object::ELFType<(llvm::support::endianness)1, true> >(llvm::opt::InputArgList&) (/usr/bin/lld+0x4a7ef4)
#17 0x0000000000492d32 lld::elf::LinkerDriver::linkerMain(llvm::ArrayRef<char const*>) (/usr/bin/lld+0x492d32)
#18 0x000000000048fe89 lld::elf::link(llvm::ArrayRef<char const*>, bool, llvm::raw_ostream&, llvm::raw_ostream&) (/usr/bin/lld+0x48fe89)
#19 0x00000000003ac6a0 (/usr/bin/lld+0x3ac6a0)
#20 0x00000000003acdca main (/usr/bin/lld+0x3acdca)
#21 0x00007f19ea17eb25 __libc_start_main (/usr/bin/../lib/libc.so.6+0x27b25)
#22 0x00000000003aba6e _start (/usr/bin/lld+0x3aba6e)
P.S: I also get the following two stack frame size issues with that build:
ld.lld: warning: stack frame size (1288) exceeds limit (1024) in function 'HUF_readCTable'
ld.lld: warning: stack frame size (1080) exceeds limit (1024) in function 'rtnl_newlink'