[llvm-bugs] [Bug 27855] bootstrap failure when -DLLVM_LINK_LLVM_DYLIB:BOOL=ON is used

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 24 14:01:07 PDT 2016


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

Jack Howarth <howarth.mailing.lists at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #8 from Jack Howarth <howarth.mailing.lists at gmail.com> ---
r270605 still results in a
tools/llvm-objdump/CMakeFiles/llvm-objdump.dir/link.txt without an explicit
-lxar linkage...

/sw/src/fink.build/llvm39-3.9.0-1/opt-bin/ccclang++   -fno-common -fPIC
-fvisibility-inlines-hidden -Wall -W -Wno-unused-parameter -Wwrite-strings
-Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long
-Wcovered-switch-default -Wnon-virtual-dtor -Wdelete-non-virtual-dtor
-Werror=date-time -std=c++11 -O3 -Wl,-search_paths_first
-Wl,-headerpad_max_install_names  -L/sw/lib  -Wl,-dead_strip
CMakeFiles/llvm-objdump.dir/llvm-objdump.cpp.o
CMakeFiles/llvm-objdump.dir/COFFDump.cpp.o
CMakeFiles/llvm-objdump.dir/ELFDump.cpp.o
CMakeFiles/llvm-objdump.dir/MachODump.cpp.o  -o ../../bin/llvm-objdump 
../../lib/libLLVM.dylib -Wl,-rpath, at executable_path/../lib 

The only change I see in the linkage is for llvm-tblgen which now shows...

$ otool -L llvm-tblgen
llvm-tblgen:
    /sw/lib/ncurses/libncurses.5.dylib (compatibility version 5.0.0, current
version 5.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1226.10.1)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
    /usr/lib/libxar.1.dylib (compatibility version 1.0.0, current version
1.3.0)
    /usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
120.1.0)

as opposed to the previous...

$ otool -L llvm-tblgen
llvm-tblgen:
    /sw/lib/ncurses/libncurses.5.dylib (compatibility version 5.0.0, current
version 5.0.0)
    /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
1226.10.1)
    /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.5)
    /sw/opt/llvm-3.9/lib/libc++.1.dylib (compatibility version 1.0.0, current
version 1.0.0)

I assume this is because of the use of add_tablegen() cmake macro in that case
whereas the llvm-objdump CMakeLists.txt uses the add_llvm_tool() cmake macro.

-- 
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/20160524/bca9d770/attachment.html>


More information about the llvm-bugs mailing list