ARM compilation issue

13 views
Skip to first unread message

Maciej Cienkowski

unread,
Nov 14, 2020, 5:53:22 PM11/14/20
to swift...@googlegroups.com
Hi guys.

I has some issues with compilation on armhf system.

As I'm trying to compile it on phone, I'll put only errors instead of whole log. It's a bit hard to copy it this way, and I can't ssh to it from PC at this moment. 

/usr/bin/ld: ../../third_party/llvm-10.0/libllvm.a(ARMTargetMachine.cpp.o): in function `(anonymous namespace)::ARMPassConfig::addIRPasses()':                          ARMTargetMachine.cpp:(.text._ZN12_GLOBAL__N_113ARMPassConfig11addIRPassesEv+0x1c): undefined reference to `llvm::createLowerAtomicPass()'                               /usr/bin/ld: ../../third_party/llvm-10.0/libllvm.a(ARMTargetMachine.cpp.o): in function `(anonymous namespace)::ARMPassConfig::addPreISel()':                           ARMTargetMachine.cpp:(.text._ZN12_GLOBAL__N_113ARMPassConfig10addPreISelEv+0x78): undefined reference to `llvm::createGlobalMergePass(llvm::TargetMachine const*, unsigned int, bool, bool)'                                    /usr/bin/ld: ../../third_party/llvm-10.0/libllvm.a(ARMTargetStreamer.cpp.o): in function `llvm::ARMTargetStreamer::addConstantPoolEntry(llvm::MCExpr const*, llvm::SMLoc)':                                                     ARMTargetStreamer.cpp:(.text._ZN4llvm17ARMTargetStreamer20addConstantPoolEntryEPKNS_6MCExprENS_5SMLocE+0x20): undefined reference to `llvm::AssemblerConstantPools::addEntry(llvm::MCStreamer&, llvm::MCExpr const*, unsigned int, llvm::SMLoc)'                                        /usr/bin/ld: ../../third_party/llvm-10.0/libllvm.a(ARMTargetStreamer.cpp.o): in function `llvm::ARMTargetStreamer::emitCurrentConstantPool()':                          ARMTargetStreamer.cpp:(.text._ZN4llvm17ARMTargetStreamer23emitCurrentConstantPoolEv+0x10): undefined reference to `llvm::AssemblerConstantPools::emitForCurrentSection(llvm::MCStreamer&)'                                      /usr/bin/ld: ARMTargetStreamer.cpp:(.text._ZN4llvm17ARMTargetStreamer23emitCurrentConstantPoolEv+0x20): undefined reference to `llvm::AssemblerConstantPools::clearCacheForCurrentSection(llvm::MCStreamer&)'                   /usr/bin/ld: ../../third_party/llvm-10.0/libllvm.a(ARMTargetStreamer.cpp.o): in function `llvm::ARMTargetStreamer::finish()':                                           ARMTargetStreamer.cpp:(.text._ZN4llvm17ARMTargetStreamer6finishEv+0x8): undefined reference to `llvm::AssemblerConstantPools::emitAll(llvm::MCStreamer&)' 

Nicolas Capens

unread,
Nov 15, 2020, 8:53:59 AM11/15/20
to Maciej Cienkowski, swiftshader
Hi Maciej,

Please report this at g.co/swiftshaderbugs.

It looks like Transforms/Scalar/Lower atomic.cpp is missing from //third_party/llvm-10.0/CMakeLists.cpp, as well as others defining missing symbols when compiling for armhf.

Cheers,
Nicolas




--
You received this message because you are subscribed to the Google Groups "swiftshader" group.
To unsubscribe from this group and stop receiving emails from it, send an email to swiftshader...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/swiftshader/CACX8ggtxvAD85UtLPFPGpZjPmttw%3D9DkYCM7_gqwSDFfrY-qDQ%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages