http://llvm.org/bugs/show_bug.cgi?id=14696
Bug #: 14696
Summary: Clang 3.2 Binaries for Ubuntu-12.04/x86 build 64-bit
executables by default
Product: new-bugs
Version: 3.2
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: new bugs
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Classification: Unclassified
I'm having trouble with the Clang 3.2 binaries for Ubuntu 12.04/x86 from here:
http://llvm.org/releases/download.html#3.2. It looks like Clang is trying to
build for 64-bit even though I'm on a 32-bit system. Passing the -m32 flag
shouldn't be necessary, surely?
I'm running Ubuntu 12.04 32-bit.
$ cat hello.c
#include <stdio.h>
int main(int argc, const char *argv[]) {
printf("hello world\n");
}
$ uname -i
i386
$ clang -v
clang version 3.2 (tags/RELEASE_32/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
$ file $(which clang)
/usr/bin/clang: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV),
dynamically linked (uses shared libs), for GNU/Linux 2.6.24,
BuildID[sha1]=0xbf8f578631d2183e699186690101e0adbe579d58, stripped
$ clang hello.c
In file included from hello.c:1:
In file included from /usr/include/stdio.h:28:
/usr/include/features.h:324:10: fatal error: 'bits/predefs.h' file not
found
#include <bits/predefs.h>
^
1 error generated.
$ clang -m32 hello.c # no error
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs