-
Notifications
You must be signed in to change notification settings - Fork 12.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clang fails to find 32-bit C++ system headers on Ubuntu 13.10 #19663
Comments
Try to solve this bug as a fresh man to LLVM/Clang. |
change the status to assigned. |
Can not reproduce your problem. $ llvm-config --version $ llvm-config --build-mode $ llvm-config --cxxflags $ llvm-config --targets-built Did your Ubuntu have multilib installed? |
I think I might have installed some :i386 packages which brought /usr/include/i386-linux-gnu headers with them, and that confused the clang driver. I can't reproduce it on another 13.10 machine. I'll get access to the first machine later today and update the bug. |
So, I do have multilib installed, but I also have an :i386 gcc toolchain. $ cat /etc/issue $ dpkg -l | grep -E "(stdc++|gcc|g++|multilib)" $ ./bin/clang++ -c ../1.cc -m32 -v $ find /usr/include/ /usr/lib -name c++config.h |
This was pretty terrible. The code trying to support the multiarch setup was... very strange. I may have written or reviewed it, but it was quite wrong. I've fixed this (and possibly other issues) in r216528. Sorry for the trouble. Re-open if it still is busted. |
That should have been r216531. Sorry. |
Extended Description
Again, C++ system header path has changed.
Ubuntu 13.10 x86_64 has:
/usr/include/i386-linux-gnu
/usr/include/x86_64-linux-gnu
/usr/lib/i386-linux-gnu
/usr/lib/x86_64-linux-gnu
but
/usr/lib/gcc/i686-linux-gnu
/usr/lib/gcc/x86_64-linux-gnu
clang++ -m32 test.cc fails to find bits/c++config.h
The text was updated successfully, but these errors were encountered: