[llvm-bugs] [Bug 49937] New: (12.0) (ObjC) LLVM ERROR: Cannot select: intrinsic %llvm.objc.clang.arc.use

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Apr 12 11:47:11 PDT 2021


https://bugs.llvm.org/show_bug.cgi?id=49937

            Bug ID: 49937
           Summary: (12.0) (ObjC) LLVM ERROR: Cannot select: intrinsic
                    %llvm.objc.clang.arc.use
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: bero at lindev.ch
                CC: htmldeveloper at gmail.com, llvm-bugs at lists.llvm.org

Trying to build gnustep-base 1.27.0 (ng-gnu-gnu library combo) with clang
12.0-rc5, libobjc 2.1 result in

 Linking tool autogsdoc ...
LLVM ERROR: Cannot select: intrinsic %llvm.objc.clang.arc.use
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash
backtrace.
Stack dump:
0.      Program arguments: /usr/bin/ld -export-dynamic --build-id
--eh-frame-hdr -m elf_x86_64 -export-dynamic -dynamic-linker
/lib64/ld-linux-x86-64.so.2 -o obj/autogsdoc
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.2.1/../../../../lib64/crt1.o
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.2.1/../../../../lib64/crti.o
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.2.1/crtbegin.o
-L../Source/./obj -L/home/bero/GNUstep/Library/Libraries -L/usr/local/lib64
-L/usr/lib64 -L/usr/local/lib64 -L/usr/local/lib64 -L/usr/lib64
-L/usr/lib64/ng-gnu-gnu -L/usr/lib64
-L/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.2.1
-L/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.2.1/../../../../lib64
-L/usr/bin/../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/bin/../lib
-L/lib -L/usr/lib -plugin /usr/bin/../lib64/LLVMgold.so -plugin-opt=mcpu=znver1
-plugin-opt=O3 -O2 ./obj/autogsdoc.obj/autogsdoc.m.o
./obj/autogsdoc.obj/AGSParser.m.o ./obj/autogsdoc.obj/AGSOutput.m.o
./obj/autogsdoc.obj/AGSIndex.m.o ./obj/autogsdoc.obj/AGSHtml.m.o -O2
--no-undefined -lgnustep-base -lpthread -lobjc -lm -lgcc --as-needed -lgcc_s
--no-as-needed -lpthread -lc -lgcc --as-needed -lgcc_s --no-as-needed
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.2.1/crtend.o
/usr/bin/../lib64/gcc/x86_64-openmandriva-linux-gnu/10.2.1/../../../../lib64/crtn.o
1.      Running pass 'Function Pass Manager' on module 'ld-temp.o'.
2.      Running pass 'X86 DAG->DAG Instruction Selection' on function
'@_i_AGSHtml__makeLink_ofType_inUnit_isRef_'
 #0 0x00007fe2efa94ae1 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int)
(/usr/lib64/libLLVMSupport.so.12.0+0x235ae1)
 #1 0x00007fe2efa94dbd (/usr/lib64/libLLVMSupport.so.12.0+0x235dbd)
 #2 0x00007fe2efa9270a llvm::sys::RunSignalHandlers()
(/usr/lib64/libLLVMSupport.so.12.0+0x23370a)
 #3 0x00007fe2efa950d6 (/usr/lib64/libLLVMSupport.so.12.0+0x2360d6)
 #4 0x00007fe2ef4cc970 __restore_rt (/lib64/libc.so.6+0x40970)
 #5 0x00007fe2ef4cc8ef raise (/lib64/libc.so.6+0x408ef)
 #6 0x00007fe2ef4b2538 abort (/lib64/libc.so.6+0x26538)
 #7 0x00007fe2ef9b71d9 llvm::report_fatal_error(llvm::Twine const&, bool)
(/usr/lib64/libLLVMSupport.so.12.0+0x1581d9)
 #8 0x00007fe2ef9b72c7 (/usr/lib64/libLLVMSupport.so.12.0+0x1582c7)
 #9 0x00007fe2e99c50c9 llvm::SelectionDAGISel::CannotYetSelect(llvm::SDNode*)
(/usr/lib64/libLLVMSelectionDAG.so.12.0+0x3950c9)
#10 0x00007fe2e99c3980 llvm::SelectionDAGISel::SelectCodeCommon(llvm::SDNode*,
unsigned char const*, unsigned int)
(/usr/lib64/libLLVMSelectionDAG.so.12.0+0x393980)
#11 0x00007fe2ec7c79b2 (/usr/lib64/libLLVMX86CodeGen.so.12.0+0x3229b2)
#12 0x00007fe2e99babc8 llvm::SelectionDAGISel::DoInstructionSelection()
(/usr/lib64/libLLVMSelectionDAG.so.12.0+0x38abc8)
#13 0x00007fe2e99b9712 llvm::SelectionDAGISel::CodeGenAndEmitDAG()
(/usr/lib64/libLLVMSelectionDAG.so.12.0+0x389712)
#14 0x00007fe2e99b7d98
llvm::SelectionDAGISel::SelectBasicBlock(llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction,
false, false, void>, false, true>,
llvm::ilist_iterator<llvm::ilist_detail::node_options<llvm::Instruction, false,
false, void>, false, true>, bool&)
(/usr/lib64/libLLVMSelectionDAG.so.12.0+0x387d98)
#15 0x00007fe2e99b6ca7
llvm::SelectionDAGISel::SelectAllBasicBlocks(llvm::Function const&)
(/usr/lib64/libLLVMSelectionDAG.so.12.0+0x386ca7)
#16 0x00007fe2e99b3231
llvm::SelectionDAGISel::runOnMachineFunction(llvm::MachineFunction&)
(/usr/lib64/libLLVMSelectionDAG.so.12.0+0x383231)
#17 0x00007fe2ec7bb2f7 (/usr/lib64/libLLVMX86CodeGen.so.12.0+0x3162f7)
#18 0x00007fe2ea8544ec
llvm::MachineFunctionPass::runOnFunction(llvm::Function&)
(/usr/lib64/libLLVMCodeGen.so.12.0+0x4c74ec)
#19 0x00007fe2ea2cea06 llvm::FPPassManager::runOnFunction(llvm::Function&)
(/usr/lib64/libLLVMCore.so.12.0+0x3eaa06)
#20 0x00007fe2ea2d7563 llvm::FPPassManager::runOnModule(llvm::Module&)
(/usr/lib64/libLLVMCore.so.12.0+0x3f3563)
#21 0x00007fe2ea2cf678 llvm::legacy::PassManagerImpl::run(llvm::Module&)
(/usr/lib64/libLLVMCore.so.12.0+0x3eb678)
#22 0x00007fe2ea2d7a87 llvm::legacy::PassManager::run(llvm::Module&)
(/usr/lib64/libLLVMCore.so.12.0+0x3f3a87)
#23 0x00007fe2ec031eab (/usr/lib64/libLLVMLTO.so.12.0+0x58eab)
#24 0x00007fe2ec030f81 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, std::unique_ptr<llvm::Module, std::default_delete<llvm::Module> >,
llvm::ModuleSummaryIndex&) (/usr/lib64/libLLVMLTO.so.12.0+0x57f81)
#25 0x00007fe2ec020439
llvm::lto::LTO::runRegularLTO(std::function<std::unique_ptr<llvm::lto::NativeObjectStream,
std::default_delete<llvm::lto::NativeObjectStream> > (unsigned int)>)
(/usr/lib64/libLLVMLTO.so.12.0+0x47439)
#26 0x00007fe2ec01f9af
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/lib64/libLLVMLTO.so.12.0+0x469af)
#27 0x00007fe2eff9222c lld::elf::BitcodeCompiler::compile()
(/usr/lib64/liblldELF.so.12.0+0x20322c)
#28 0x00007fe2eff095f6 void
lld::elf::LinkerDriver::compileBitcodeFiles<llvm::object::ELFType<(llvm::support::endianness)1,
true> >() (/usr/lib64/liblldELF.so.12.0+0x17a5f6)
#29 0x00007fe2efef53f1 void
lld::elf::LinkerDriver::link<llvm::object::ELFType<(llvm::support::endianness)1,
true> >(llvm::opt::InputArgList&) (/usr/lib64/liblldELF.so.12.0+0x1663f1)
#30 0x00007fe2efee63da lld::elf::LinkerDriver::linkerMain(llvm::ArrayRef<char
const*>) (/usr/lib64/liblldELF.so.12.0+0x1573da)
#31 0x00007fe2efee3c4b lld::elf::link(llvm::ArrayRef<char const*>, bool,
llvm::raw_ostream&, llvm::raw_ostream&) (/usr/lib64/liblldELF.so.12.0+0x154c4b)
#32 0x000000000020519c (/usr/bin/ld+0x20519c)
#33 0x00000000002049e2 main (/usr/bin/ld+0x2049e2)
#34 0x00007fe2ef4b45dd __libc_start_main (/lib64/libc.so.6+0x285dd)
#35 0x00000000002044fa _start (/usr/bin/ld+0x2044fa)
clang-12: error: unable to execute command: Aborted (core dumped)
clang-12: error: linker command failed due to signal (use -v to see invocation)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20210412/3e668c65/attachment-0001.html>


More information about the llvm-bugs mailing list