Hi, I have a debug build with shared libraries (to reduce compilation time), but since yesterday, it's failing with an ExecutionEngine error: FAILED: : && /usr/lib/ccache/bin/c++ -fPIC -fPIC -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -std=c++11 -g -Wl,-z,defs -shared -Wl,-soname,libLLVMExecutionEngine.so.3.7 -o lib/libLLVMExecutionEngine.so.3.7.0svn lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/ExecutionEngine.cpp.o lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/ExecutionEngineBindings.cpp.o lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/GDBRegistrationListener.cpp.o lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/SectionMemoryManager.cpp.o lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/TargetSelect.cpp.o lib/libLLVMCore.so.3.7.0svn lib/libLLVMMC.so.3.7.0svn lib/libLLVMObject.so.3.7.0svn lib/libLLVMRuntimeDyld.so.3.7.0svn lib/libLLVMSupport.so.3.7.0svn -Wl,-rpath,"\$ORIGIN/../lib" && : lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/ExecutionEngineBindings.cpp.o: In function `LLVMCreateMCJITCompilerForModule': /home/rengolin/devel/llvm/src/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp:188: undefined reference to `llvm::setFunctionAttributes(llvm::StringRef, llvm::StringRef, llvm::TargetOptions const&, llvm::Module&, bool)' collect2: error: ld returned 1 exit status This is my CMake command line: cmake -G Ninja $LLVM_SRC -DCMAKE_BUILD_TYPE=Debug -DLLVM_BUILD_TESTS=False -DLLVM_INCLUDE_EXAMPLES=False -DLLVM_ENABLE_ASSERTIONS=True -DBUILD_SHARED_LIBS=True -DLLVM_TARGETS_TO_BUILD="ARM;X86;AArch64" -DPYTHON_EXECUTABLE=/usr/bin/python2 Static object compilation is unaffected. Any ideas? cheers, --renato
Rafael, Akira, Going back the commits, maybe you reverted a bit too much of TargetOptions in r238076? Or maybe added it the wrong way in r238080? cheers, --renato On 23 May 2015 at 12:02, Renato Golin <renato.golin at linaro.org> wrote:> Hi, > > I have a debug build with shared libraries (to reduce compilation > time), but since yesterday, it's failing with an ExecutionEngine > error: > > FAILED: : && /usr/lib/ccache/bin/c++ -fPIC -fPIC > -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter > -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic > -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -std=c++11 -g > -Wl,-z,defs -shared -Wl,-soname,libLLVMExecutionEngine.so.3.7 -o > lib/libLLVMExecutionEngine.so.3.7.0svn > lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/ExecutionEngine.cpp.o > lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/ExecutionEngineBindings.cpp.o > lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/GDBRegistrationListener.cpp.o > lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/SectionMemoryManager.cpp.o > lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/TargetSelect.cpp.o > lib/libLLVMCore.so.3.7.0svn lib/libLLVMMC.so.3.7.0svn > lib/libLLVMObject.so.3.7.0svn lib/libLLVMRuntimeDyld.so.3.7.0svn > lib/libLLVMSupport.so.3.7.0svn -Wl,-rpath,"\$ORIGIN/../lib" && : > lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/ExecutionEngineBindings.cpp.o: > In function `LLVMCreateMCJITCompilerForModule': > /home/rengolin/devel/llvm/src/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp:188: > undefined reference to `llvm::setFunctionAttributes(llvm::StringRef, > llvm::StringRef, llvm::TargetOptions const&, llvm::Module&, bool)' > collect2: error: ld returned 1 exit status > > This is my CMake command line: > > cmake -G Ninja $LLVM_SRC -DCMAKE_BUILD_TYPE=Debug > -DLLVM_BUILD_TESTS=False -DLLVM_INCLUDE_EXAMPLES=False > -DLLVM_ENABLE_ASSERTIONS=True -DBUILD_SHARED_LIBS=True > -DLLVM_TARGETS_TO_BUILD="ARM;X86;AArch64" > -DPYTHON_EXECUTABLE=/usr/bin/python2 > > Static object compilation is unaffected. > > Any ideas? > > cheers, > --renato
Sorry for the breakage. The cmake failure was fixed in r238096 and I intend to remove the dependence on CodeGen in another patch. On Sat, May 23, 2015 at 4:35 AM, Renato Golin <renato.golin at linaro.org> wrote:> Rafael, Akira, > > Going back the commits, maybe you reverted a bit too much of > TargetOptions in r238076? Or maybe added it the wrong way in r238080? > > cheers, > --renato > > On 23 May 2015 at 12:02, Renato Golin <renato.golin at linaro.org> wrote: > > Hi, > > > > I have a debug build with shared libraries (to reduce compilation > > time), but since yesterday, it's failing with an ExecutionEngine > > error: > > > > FAILED: : && /usr/lib/ccache/bin/c++ -fPIC -fPIC > > -fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter > > -Wwrite-strings -Wcast-qual -Wno-missing-field-initializers -pedantic > > -Wno-long-long -Wno-maybe-uninitialized -Wno-comment -std=c++11 -g > > -Wl,-z,defs -shared -Wl,-soname,libLLVMExecutionEngine.so.3.7 -o > > lib/libLLVMExecutionEngine.so.3.7.0svn > > > lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/ExecutionEngine.cpp.o > > > lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/ExecutionEngineBindings.cpp.o > > > lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/GDBRegistrationListener.cpp.o > > > lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/SectionMemoryManager.cpp.o > > lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/TargetSelect.cpp.o > > lib/libLLVMCore.so.3.7.0svn lib/libLLVMMC.so.3.7.0svn > > lib/libLLVMObject.so.3.7.0svn lib/libLLVMRuntimeDyld.so.3.7.0svn > > lib/libLLVMSupport.so.3.7.0svn -Wl,-rpath,"\$ORIGIN/../lib" && : > > > lib/ExecutionEngine/CMakeFiles/LLVMExecutionEngine.dir/ExecutionEngineBindings.cpp.o: > > In function `LLVMCreateMCJITCompilerForModule': > > > /home/rengolin/devel/llvm/src/llvm/lib/ExecutionEngine/ExecutionEngineBindings.cpp:188: > > undefined reference to `llvm::setFunctionAttributes(llvm::StringRef, > > llvm::StringRef, llvm::TargetOptions const&, llvm::Module&, bool)' > > collect2: error: ld returned 1 exit status > > > > This is my CMake command line: > > > > cmake -G Ninja $LLVM_SRC -DCMAKE_BUILD_TYPE=Debug > > -DLLVM_BUILD_TESTS=False -DLLVM_INCLUDE_EXAMPLES=False > > -DLLVM_ENABLE_ASSERTIONS=True -DBUILD_SHARED_LIBS=True > > -DLLVM_TARGETS_TO_BUILD="ARM;X86;AArch64" > > -DPYTHON_EXECUTABLE=/usr/bin/python2 > > > > Static object compilation is unaffected. > > > > Any ideas? > > > > cheers, > > --renato >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150525/96eb599b/attachment.html>
Apparently Analagous Threads
- [LLVMdev] Win32 JIT issue + bug in ScheduleDAGSNodes.h?
- [LLVMdev] Bad permissions for mapped region
- [LLVMdev] Win32 JIT issue + bug in ScheduleDAGSNodes.h?
- [LLVMdev] Win32 JIT issue + bug in ScheduleDAGSNodes.h?
- [LLVMdev] Bad permissions for mapped region