[LLVMbugs] [Bug 12954] New: clang looks for its libraries in ../lib, rather than correct libdir

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Sat May 26 02:31:48 PDT 2012


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

             Bug #: 12954
           Summary: clang looks for its libraries in ../lib, rather than
                    correct libdir
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: mgorny at gentoo.org
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


$ clang -O4 -faddress-sanitizer a.c
/usr/bin/x86_64-pc-linux-gnu-ld: error: cannot open
/usr/bin/../lib/clang/3.1/lib/linux/libclang_rt.asan-x86_64.a: No such file or
directory
lto-llvm.o-WK9UAf:ld-temp.o:function asan.module_ctor: error: undefined
reference to '__asan_init'
clang: error: linker command failed with exit code 1 (use -v to see invocation)


The problem is that the library is installed in ../lib64, and clang seems to
hardcode just ../lib in a lot of places.

-- 
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