[llvm-bugs] [Bug 31745] New: lld fails to build with shared libraries enabled due to missing arg to -rpath-link

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Jan 24 14:36:10 PST 2017


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

            Bug ID: 31745
           Summary: lld fails to build with shared libraries enabled due
                    to missing arg to -rpath-link
           Product: lld
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: All Bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: mgorny at gentoo.org
                CC: llvm-bugs at lists.llvm.org
    Classification: Unclassified

Patch in https://reviews.llvm.org/D29099

[ 98%] Linking CXX executable ../../bin/lld
cd /usr/src/llvm/tools/lld/_build/tools/lld && /usr/bin/cmake -E
cmake_link_script CMakeFiles/lld.dir/link.txt --verbose=1
/usr/lib64/ccache/bin/c++    -fPIC -fvisibility-inlines-hidden
-Werror=date-time -std=c++11 -ffunction-sections -fdata-sections  
-Wl,-rpath-link,  -Wl,-O3 -Wl,--gc-sections CMakeFiles/lld.dir/lld.cpp.o  -o
../../bin/lld -Wl,-rpath,"\$ORIGIN/../lib64:/usr/lib64"
/usr/lib64/libLLVMSupport.so.5.0.0svn -lpthread
../../lib/Driver/liblldDriver.so.5.0.0 ../../COFF/liblldCOFF.so.5.0.0
../../ELF/liblldELF.so.5.0.0 
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: liblldConfig.so.5, needed by ../../lib/Driver/liblldDriver.so.5.0.0,
not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: liblldMachO.so.5, needed by ../../lib/Driver/liblldDriver.so.5.0.0,
not found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: liblldCore.so.5, needed by ../../lib/Driver/liblldDriver.so.5.0.0, not
found (try using -rpath or -rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: liblldReaderWriter.so.5, needed by
../../lib/Driver/liblldDriver.so.5.0.0, not found (try using -rpath or
-rpath-link)
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: liblldYAML.so.5, needed by ../../lib/Driver/liblldDriver.so.5.0.0, not
found (try using -rpath or -rpath-link)
../../lib/Driver/liblldDriver.so.5.0.0: undefined reference to
`lld::MachOLinkingContext::addRpath(llvm::StringRef)'
[...]

-- 
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/20170124/b2ecd8dc/attachment-0001.html>


More information about the llvm-bugs mailing list