Bug#643959: clang cannot find standard include files
Urs Janssen
urs at tin.org
Wed Dec 7 04:35:34 UTC 2011
Package: clang
Version: 3.0-1
Followup-For: Bug #643959
Again /usr/include/i386-linux-gnu/ isn't searched on i386 systems:
chao% cat /tmp/foo.c
#include <stdio.h>
chao% clang -v -c /tmp/foo.c
Debian clang version 3.0-1 (tags/RELEASE_30/final) (based on LLVM 3.0)
Target: i386-pc-linux-gnu
Thread model: posix
"/usr/bin/clang" -cc1 -triple i386-pc-linux-gnu -emit-obj -mrelax-all
-disable-free -disable-llvm-verifier -main-file-name foo.c
-mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -target-cpu pentium4
-target-linker-version 2.21.90.20111025 -momit-leaf-frame-pointer -v
-coverage-file foo.o -resource-dir /usr/bin/../lib/clang/3.0
-fmodule-cache-path /var/tmp/clang-module-cache
-internal-isystem /usr/local/include
-internal-isystem /usr/bin/../lib/clang/3.0/include
-internal-externc-isystem /usr/include/i486-linux-gnu
-internal-externc-isystem /usr/include -ferror-limit 19 -fmessage-length 80
-fgnu-runtime -fobjc-runtime-has-arc -fobjc-runtime-has-weak
-fobjc-fragile-abi -fdiagnostics-show-option -fcolor-diagnostics -o foo.o
-x c /tmp/foo.c
clang -cc1 version 3.0 based upon llvm 3.0 hosted on i386-pc-linux-gnu
ignoring nonexistent directory "/usr/bin/../lib/clang/3.0/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
ignoring nonexistent directory "/usr/include/i486-linux-gnu/"
ignoring nonexistent directory "/usr/bin/../lib/clang/3.0/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
ignoring duplicate directory "/usr/local/include"
ignoring duplicate directory "/usr/include"
#include "..." search starts here:
#include <...> search starts here:
/usr/local/include
/usr/include
/usr/lib/gcc/i486-linux-gnu/4.6/include/
/usr/lib/gcc/i486-linux-gnu/4.6/include-fixed/
End of search list.
In file included from /tmp/foo.c:1:
In file included from /usr/include/stdio.h:28:
/usr/include/features.h:323:10: fatal error: 'bits/predefs.h' file not found
#include <bits/predefs.h>
^
1 error generated.
chao% find /usr -type f -name 'predefs.h'
/usr/include/i386-linux-gnu/bits/predefs.h
-- System Information:
Debian Release: wheezy/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)
Kernel: Linux 3.0.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages clang depends on:
ii libc6 2.13-21
ii libffi5 3.0.10-3
ii libgcc1 1:4.6.2-5
ii libllvm3.0 3.0-2
ii libstdc++6 4.6.2-5
ii libstdc++6-4.6-dev 4.6.2-5
Versions of packages clang recommends:
ii llvm-3.0-dev 3.0-2
ii python 2.7.2-9
clang suggests no packages.
-- no debconf information
More information about the Pkg-llvm-team
mailing list