[LLVMbugs] [Bug 14254] New: llvm-config --libfiles lists libraries which don't appear to exist.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sun Nov 4 03:54:44 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=14254

             Bug #: 14254
           Summary: llvm-config --libfiles lists libraries which don't
                    appear to exist.
           Product: tools
           Version: 3.1
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-config
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: terrywallwork at netscape.net
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


I recently built llvm 3.1 final, on Fedora 17 box 32 bit Intel box, using the
following configure options:

${SVNROOTDIRLLVMCOLLECTION}/llvm/configure --enable-optimized
--prefix="${LLVMCOLLECTIONBUILDIR}/LLVMInstall"

This all worked well (as far as I can tell), install seems to have gone
correctly as well.  But when I then try to build an application that uses LLVM
(Blender in my case for OSL).  I get linking  errors about libraries not
existing.  I checked with llvm-config --libfiles which libraries llvm was
saying it needed to be successfully linked and it seems to list libraries that
don't seem to exist in llvm lib directory.  

In my case:

${LLVMCOLLECTIONBUILDIR}/LLVMInstall/lib/libLLVMIntelJITEvents.a
${LLVMCOLLECTIONBUILDIR}/LLVMInstall/lib/libLLVMOProfileJIT.a
${LLVMCOLLECTIONBUILDIR}/LLVMInstall/lib/libgtest_main.a
${LLVMCOLLECTIONBUILDIR}/LLVMInstall/lib/libgtest.a

To get it to work I ended up intercepting calls to llvm-config and filtering
out these libraries so Blender would compile.  Once it did compile Blender OSL
works fine.

I know this is not the correct way to do things but I am not a hard core
programmer so doing it the correct way is beyond me.

I posted here because i am not sure if this is the same bug as this one:

http://llvm.org/bugs/show_bug.cgi?id=11886

Apologies if this is simply me not knowing how to configure LLVM correctly.

If you need any more information please let me know.

Terry Wallwork

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list