[LLVMbugs] [Bug 20772] New: r216531 breaks libstdc++ include search path on Gentoo

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Aug 27 10:05:54 PDT 2014


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

            Bug ID: 20772
           Summary: r216531 breaks libstdc++ include search path on Gentoo
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: octoploid at yandex.com
                CC: chandlerc at gmail.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified

r216531 breaks libstdc++ include search path on Gentoo, e.g.:

markus at x4 ~ % clang++ -v -O2 bench.cpp
clang version 3.6.0 
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2
Found candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2
Selected GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/usr/local/bin/clang-3.6" -cc1 -triple x86_64-unknown-linux-gnu -emit-obj
-disable-free -disable-llvm-verifier -main-file-name bench.cpp
-mrelocation-model static -fmath-errno -masm-verbose -mconstructor-aliases
-munwind-tables -fuse-init-array -target-cpu x86-64 -momit-leaf-frame-pointer
-v -dwarf-column-info -resource-dir /usr/local/bin/../lib/clang/3.6.0
-internal-isystem
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/c++/4.9.2
-internal-isystem
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/x86_64-pc-linux-gnu/c++/4.9.2
-internal-isystem
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/x86_64-unknown-linux-gnu/c++/4.9.2
-internal-isystem
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/c++/4.9.2/backward
-internal-isystem /usr/local/include -internal-isystem
/usr/local/bin/../lib/clang/3.6.0/include -internal-externc-isystem /include
-internal-externc-isystem /usr/include -O2 -fdeprecated-macro
-fdebug-compilation-dir /home/markus -ferror-limit 19 -fmessage-length 174
-mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions
-fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops -vectorize-slp
-o /tmp/bench-38d147.o -x c++ bench.cpp
clang -cc1 version 3.6.0 based upon LLVM 3.6.0svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory
"/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/c++/4.9.2"
ignoring nonexistent directory
"/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/x86_64-pc-linux-gnu/c++/4.9.2"
ignoring nonexistent directory
"/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/x86_64-unknown-linux-gnu/c++/4.9.2"
ignoring nonexistent directory
"/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../include/c++/4.9.2/backward"
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/local/bin/../lib/clang/3.6.0/include
 /usr/include
End of search list.
bench.cpp:84:10: fatal error: 'cstddef' file not found
#include <cstddef> // some older implementations lack <cstddef>
         ^
1 error generated.

Before r216531:

markus at x4 ~ % /var/.snapshots/daily.0/localhost/usr/local/bin/clang++ -v -O2
bench.cpp
clang version 3.6.0 
Target: x86_64-unknown-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib/gcc/x86_64-pc-linux-gnu/4.9.2
Found candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.8.4
Found candidate GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2
Selected GCC installation: /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2
Candidate multilib: .;@m64
Selected multilib: .;@m64
 "/var/.snapshots/daily.0/localhost/usr/local/bin/clang-3.6" -cc1 -triple
x86_64-unknown-linux-gnu -emit-obj -disable-free -disable-llvm-verifier
-main-file-name bench.cpp -mrelocation-model static -fmath-errno -masm-verbose
-mconstructor-aliases -munwind-tables -fuse-init-array -target-cpu x86-64
-momit-leaf-frame-pointer -v -dwarf-column-info -resource-dir
/var/.snapshots/daily.0/localhost/usr/local/bin/../lib/clang/3.6.0
-internal-isystem /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4
-internal-isystem
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/x86_64-pc-linux-gnu
-internal-isystem
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/backward
-internal-isystem /usr/local/include -internal-isystem
/var/.snapshots/daily.0/localhost/usr/local/bin/../lib/clang/3.6.0/include
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O2
-fdeprecated-macro -fdebug-compilation-dir /home/markus -ferror-limit 19
-fmessage-length 174 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions
-fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-loops
-vectorize-slp -o /tmp/bench-407afc.o -x c++ bench.cpp
clang -cc1 version 3.6.0 based upon LLVM 3.6.0svn default target
x86_64-unknown-linux-gnu
ignoring nonexistent directory "/include"
#include "..." search starts here:
#include <...> search starts here:
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/x86_64-pc-linux-gnu
 /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/include/g++-v4/backward
 /usr/local/include
 /var/.snapshots/daily.0/localhost/usr/local/bin/../lib/clang/3.6.0/include
 /usr/include
End of search list.

"/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/bin/ld"
--eh-frame-hdr -m elf_x86_64 -dynamic-linker /lib64/ld-linux-x86-64.so.2 -o
a.out /usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/crt1.o
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/crti.o
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/crtbegin.o
-L/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2
-L/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64
-L/var/.snapshots/daily.0/localhost/usr/local/bin/../lib64 -L/lib/../lib64
-L/usr/lib/../lib64
-L/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../x86_64-pc-linux-gnu/lib
-L/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../..
-L/var/.snapshots/daily.0/localhost/usr/local/bin/../lib -L/lib -L/usr/lib
/tmp/bench-407afc.o -lstdc++ -lm -lgcc_s -lgcc -lc -lgcc_s -lgcc
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/crtend.o
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.9.2/../../../../lib64/crtn.o
markus at x4 ~ %

-- 
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/20140827/581b7dd2/attachment.html>


More information about the llvm-bugs mailing list