Bug#825504: clang-3.6: clang++-3.6 does not find libstdc++ headers on !linux

Andreas Beckmann anbe at debian.org
Fri May 27 10:44:04 UTC 2016


On 2016-05-27 12:31, Sylvestre Ledru wrote:
> Does the same thing happen with 3.7? I remember fixing this kind of
> issues in the past.

Unfortunately it doesn't work on 3.7, which also has the same problem
finding sys/cdefs.h as 3.6 (that's #806241 for 3.6)
(nothing newer than 3.7 is available on these architectures)

Andreas

(sid_k-a-dchroot)anbe at falla:~$ echo '#include <iostream>' | clang++-3.7 -v -x c++ -E - >/dev/null
Debian clang version 3.7.1-2 (tags/RELEASE_371/final) (based on LLVM 3.7.1)
Target: x86_64-pc-kfreebsd-gnu
Thread model: posix
 "/usr/lib/llvm-3.7/bin/clang" -cc1 -triple x86_64-pc-kfreebsd-gnu -E -disable-free -disable-llvm-verifier -main-file-name - -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.26 -v -dwarf-column-info -resource-dir /usr/lib/llvm-3.7/bin/../lib/clang/3.7.1 -fdeprecated-macro -fdebug-compilation-dir /home/anbe -ferror-limit 19 -fmessage-length 214 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -o - -x c++ -
clang -cc1 version 3.7.1 based upon LLVM 3.7.1 default target x86_64-pc-kfreebsd-gnu
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/llvm-3.7/bin/../lib/clang/3.7.1/include
 /usr/include
End of search list.
<stdin>:1:10: fatal error: 'iostream' file not found
#include <iostream>
         ^
1 error generated.

(sid_k-a-dchroot)anbe at falla:~$ echo '#include <features.h>' | clang-3.7 -v -x c -E - >/dev/null
Debian clang version 3.7.1-2 (tags/RELEASE_371/final) (based on LLVM 3.7.1)
Target: x86_64-pc-kfreebsd-gnu
Thread model: posix
 "/usr/lib/llvm-3.7/bin/clang" -cc1 -triple x86_64-pc-kfreebsd-gnu -E -disable-free -disable-llvm-verifier -main-file-name - -mrelocation-model static -mthread-model posix -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version 2.26 -v -dwarf-column-info -resource-dir /usr/lib/llvm-3.7/bin/../lib/clang/3.7.1 -fdebug-compilation-dir /home/anbe -ferror-limit 19 -fmessage-length 214 -mstackrealign -fobjc-runtime=gcc -fdiagnostics-show-option -fcolor-diagnostics -o - -x c -
clang -cc1 version 3.7.1 based upon LLVM 3.7.1 default target x86_64-pc-kfreebsd-gnu
#include "..." search starts here:
#include <...> search starts here:
 /usr/local/include
 /usr/lib/llvm-3.7/bin/../lib/clang/3.7.1/include
 /usr/include
End of search list.
In file included from <stdin>:1:
/usr/include/features.h:362:12: fatal error: 'sys/cdefs.h' file not found
#  include <sys/cdefs.h>
           ^
1 error generated.

Andreas



More information about the Pkg-llvm-team mailing list