Bug#730857: clang-3.4: Unable to build anything on i386 ('bits/c++config.h' file not found)

Hans Joachim Desserud debian at desserud.org
Sat Nov 30 10:47:44 UTC 2013


Package: clang-3.4
Version: 1:3.4~+rc1-1
Severity: important

Dear Maintainer,

I recently noticed clang-3.4 had been packaged and wanted to try it out,
but was unable to compile anything with it on my i386 system.

Prior to the install, clang-3.3 worked fine, and the same file builds without
problems with GCC. See below for detailed output.

I believe this might be http://bugs.debian.org/697127 which has reappeared.
Let me know if you need any additional information.

$ cat hello.cpp 
#include <iostream>

int main() {
std::cout << "hello";
}
$ g++ hello.cpp 
$ clang++ -v hello.cpp 
Debian clang version 3.4-1 (tags/RELEASE_34/rc1) (based on LLVM 3.4)
Target: i386-pc-linux-gnu
Thread model: posix
Found candidate GCC installation: /usr/bin/../lib/gcc/i486-linux-gnu/4.6
Found candidate GCC installation: /usr/bin/../lib/gcc/i486-linux-gnu/4.6.4
Found candidate GCC installation: /usr/bin/../lib/gcc/i486-linux-gnu/4.7
Found candidate GCC installation: /usr/bin/../lib/gcc/i486-linux-gnu/4.7.3
Found candidate GCC installation: /usr/bin/../lib/gcc/i486-linux-gnu/4.8
Found candidate GCC installation: /usr/bin/../lib/gcc/i486-linux-gnu/4.8.2
Found candidate GCC installation: /usr/lib/gcc/i486-linux-gnu/4.6
Found candidate GCC installation: /usr/lib/gcc/i486-linux-gnu/4.6.4
Found candidate GCC installation: /usr/lib/gcc/i486-linux-gnu/4.7
Found candidate GCC installation: /usr/lib/gcc/i486-linux-gnu/4.7.3
Found candidate GCC installation: /usr/lib/gcc/i486-linux-gnu/4.8
Found candidate GCC installation: /usr/lib/gcc/i486-linux-gnu/4.8.2
Selected GCC installation: /usr/bin/../lib/gcc/i486-linux-gnu/4.8
 "/usr/bin/clang" -cc1 -triple i386-pc-linux-gnu -emit-obj -mrelax-all -disable-free -disable-llvm-verifier -main-file-name hello.cpp -mrelocation-model static -mdisable-fp-elim -fmath-errno -masm-verbose -mconstructor-aliases -fuse-init-array -target-cpu pentium4 -target-linker-version 2.23.90.20131116 -v -resource-dir /usr/bin/../lib/clang/3.4 -internal-isystem /usr/bin/../lib/gcc/i486-linux-gnu/4.8/../../../../include/c++/4.8 -internal-isystem /usr/bin/../lib/gcc/i486-linux-gnu/4.8/../../../../include/c++/4.8/i486-linux-gnu -internal-isystem /usr/bin/../lib/gcc/i486-linux-gnu/4.8/../../../../include/c++/4.8/backward -internal-isystem /usr/bin/../lib/gcc/i486-linux-gnu/4.8/../../../../include/i486-linux-gnu/c++/4.8 -internal-isystem /usr/local/include -internal-isystem /usr/bin/../lib/clang/3.4/include -internal-isystem /usr/include/clang/3.4/include/ -internal-externc-isystem /usr/include/i386-linux-gnu -internal-externc-isystem /usr/include/i486-linux-gnu -internal-extern
c-isystem /usr/include -fdeprecated-macro -fdebug-compilation-dir /home/debian -ferror-limit 19 -fmessage-length 112 -mstackrealign -fobjc-runtime=gcc -fcxx-exceptions -fexceptions -fdiagnostics-show-option -fcolor-diagnostics -vectorize-slp -o /tmp/hello-46e71e.o -x c++ hello.cpp
clang -cc1 version 3.4 based upon LLVM 3.4 default target i386-pc-linux-gnu
ignoring nonexistent directory "/usr/bin/../lib/gcc/i486-linux-gnu/4.8/../../../../include/c++/4.8/i486-linux-gnu"
ignoring nonexistent directory "/usr/bin/../lib/gcc/i486-linux-gnu/4.8/../../../../include/i486-linux-gnu/c++/4.8"
ignoring nonexistent directory "/usr/bin/../lib/clang/3.4/include"
ignoring nonexistent directory "/usr/include/i486-linux-gnu"
#include "..." search starts here:
#include <...> search starts here:
 /usr/bin/../lib/gcc/i486-linux-gnu/4.8/../../../../include/c++/4.8
 /usr/bin/../lib/gcc/i486-linux-gnu/4.8/../../../../include/c++/4.8/backward
 /usr/local/include
 /usr/include/clang/3.4/include
 /usr/include/i386-linux-gnu
 /usr/include
End of search list.
In file included from hello.cpp:1:
/usr/bin/../lib/gcc/i486-linux-gnu/4.8/../../../../include/c++/4.8/iostream:38:10: fatal error: 
      'bits/c++config.h' file not found
#include <bits/c++config.h>
         ^
1 error generated.



-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 3.11-2-686-pae (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages clang-3.4 depends on:
ii  libc6                    2.17-96
ii  libclang-common-3.4-dev  1:3.4~+rc1-1
ii  libclang1-3.4            1:3.4~+rc1-1
ii  libffi6                  3.0.13-8
ii  libgcc-4.8-dev           4.8.2-5
ii  libgcc1                  1:4.8.2-5
ii  libllvm3.4               1:3.4~+rc1-1
ii  libobjc-4.8-dev          4.8.2-5
ii  libstdc++-4.8-dev        4.8.2-5
ii  libstdc++6               4.8.2-5
ii  libtinfo5                5.9+20130608-1

Versions of packages clang-3.4 recommends:
ii  llvm-3.4-dev  1:3.4~+rc1-1
ii  python        2.7.5-5

clang-3.4 suggests no packages.

-- no debconf information

-- 
mvh / best regards
Hans Joachim
http://desserud.org



More information about the Pkg-llvm-team mailing list