[llvm-bugs] [Bug 37591] New: Dynamic linking: undefined references when linking libLTO.so

via llvm-bugs llvm-bugs at lists.llvm.org
Fri May 25 13:43:25 PDT 2018


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

            Bug ID: 37591
           Summary: Dynamic linking: undefined references when linking
                    libLTO.so
           Product: tools
           Version: 6.0
          Hardware: Sun
                OS: Solaris
            Status: NEW
          Severity: normal
          Priority: P
         Component: lto
          Assignee: unassignedbugs at nondot.org
          Reporter: phantall at gmail.com
                CC: llvm-bugs at lists.llvm.org

I'm building on Solaris 10 / sparcv9, though I suspect this isn't solaris or
sparc specific.

I built with the following:

    cmake ../src/llvm \
    -DCMAKE_C_COMPILER=gcc-7.2.0 \
    -DCMAKE_CXX_COMPILER=g++-7.2.0 \
    -DGCC_INSTALL_PREFIX=$(dirname $(dirname $(which gcc-7.2.0))) \
    -DBUILD_SHARED_LIBS=ON \
    -DLINK_LLVM_DYLIB=ON \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo

    make -j32

I'll explain why I built using those options in a separate comment.

When linking libLTO.so it fails with undefined references to the following:

    LLVMDisasmDispose
    LLVMCreateDisasmCPU
    LLVMCreateDisasm
    LLVMDisasmInstruction
    LLVMSetDisasmOptions

If I remove those entries from tools/lto/lto.exports then it links fine.

-- 
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/20180525/232e6853/attachment.html>


More information about the llvm-bugs mailing list