3 ms·
It looks like the Clang binaries for 32-bit Ubuntu try to produce 64-bit executables by default: # clang -v clang version 3.2 (tags/RELEASE_32/final)
by nhutchinson 14y ago
It looks like the Clang binaries for 32-bit Ubuntu try to produce 64-bit executables by default:
# clang -v
clang version 3.2 (tags/RELEASE_32/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
# clang hello_world.c
/usr/include/features.h:324:10: fatal error: 'bits/predefs.h' file not found
# clang -m32 hello_world.c # (No error)
That's not right, surely?
- azakai 14y agoSure you didn't download the 64-bit binaries? The 32-bit ones look fine to me. If you see that on 32-bit ones, file a bug.
- marshray 14y agoThis is what bit me when compiling g++ on Ubuntu: http://wiki.debian.org/Multiarch http://wiki.debian.org/Multiarch There seemed to be some special magic in the gcc build for Debian-derived distros. It wasn't all controllable with command-line options. You and Clang may be encountering similar fun.
- nhutchinson 14y agoThis has now been fixed.