[LLVMbugs] [Bug 17945] Header search issues: slackware 14.1

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Nov 19 22:51:09 PST 2013


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

mishehu <fixitup at cartissolutions.com> changed:

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

--- Comment #9 from mishehu <fixitup at cartissolutions.com> ---
Issue self-resolved.  Changed the configure line to:

--with-clang-resource-dir="../lib$LIBDIRSUFFIX/clang/3.4" \

Why does this always assume /usr/bin ?  Even if you set this line to:

--with-clang-resource-dir="/usr/lib$LIBDIRSUFFIX/clang/3.4" \

It will still prepend /usr/bin to it.

# clang -v /tmp/bah.c 
clang version 3.4 (trunk)
Target: x86_64-slackware-linux-gnu
Thread model: posix
Found candidate GCC installation:
/usr/bin/../lib64/gcc/x86_64-slackware-linux/4.8.2
Found candidate GCC installation: /usr/lib64/gcc/x86_64-slackware-linux/4.8.2
Selected GCC installation: /usr/bin/../lib64/gcc/x86_64-slackware-linux/4.8.2
 "/usr/bin/clang" -cc1 -triple x86_64-slackware-linux-gnu -emit-obj -mrelax-all
-disable-free -disable-llvm-verifier -main-file-name bah.c -mrelocation-model
static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -target-linker-version
2.23.52.0.1.20130226 -v -resource-dir /usr/bin/../lib64/clang/3.4 -cxx-isystem
/usr/lib64/qt/include -cxx-isystem /usr/lib64/qt/include -internal-isystem
/usr/local/include -internal-isystem /usr/bin/../lib64/clang/3.4/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include
-fdebug-compilation-dir /usr/local/src/llvm-r195172/tmp -ferror-limit 19
-fmessage-length 130 -mstackrealign -fobjc-runtime=gcc
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -o
/tmp/bah-b60864.o -x c /tmp/bah.c
clang -cc1 version 3.4 based upon LLVM 3.4svn default target
x86_64-slackware-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/bin/../lib64/clang/3.4/include
 /usr/include
End of search list.
 "/usr/bin/ld" --eh-frame-hdr -m elf_x86_64 -dynamic-linker
/lib64/ld-linux-x86-64.so.2 -o a.out
/usr/bin/../lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../lib64/crt1.o
/usr/bin/../lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../lib64/crti.o
/usr/bin/../lib64/gcc/x86_64-slackware-linux/4.8.2/crtbegin.o
-L/usr/bin/../lib64/gcc/x86_64-slackware-linux/4.8.2
-L/usr/bin/../lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../lib64
-L/lib/../lib64 -L/usr/lib/../lib64
-L/usr/bin/../lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/lib
-L/usr/bin/../lib64/gcc/x86_64-slackware-linux/4.8.2/../../.. -L/lib -L/usr/lib
/tmp/bah-b60864.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc
--as-needed -lgcc_s --no-as-needed
/usr/bin/../lib64/gcc/x86_64-slackware-linux/4.8.2/crtend.o
/usr/bin/../lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../lib64/crtn.o

-- 
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/20131120/1261e776/attachment.html>


More information about the llvm-bugs mailing list