Shared libs build failing since yesterday

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Shared libs build failing since yesterday

Renato Golin-2
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
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Shared libs build failing since yesterday

Renato Golin-2
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 <[hidden email]> 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
_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Reply | Threaded
Open this post in threaded view
|

Re: Shared libs build failing since yesterday

Akira Hatanaka
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 <[hidden email]> 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 <[hidden email]> 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


_______________________________________________
LLVM Developers mailing list
[hidden email]         http://llvm.cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev