Bug#643639: libc6-dev: #include <errno.h> in C cannot compile with -m32 on x86_64
Package: libc6-dev
Version: 2.13-21
Severity: important
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (700, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.0.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages libc6-dev depends on:
ii libc-dev-bin 2.13-21
ii libc6 2.13-21
ii linux-libc-dev 3.0.0-3
Versions of packages libc6-dev recommends:
ii gcc [c-compiler] 4:4.6.1-2
ii gcc-4.4 [c-compiler] 4.4.6-8
ii gcc-4.5 [c-compiler] 4.5.3-9
ii gcc-4.6 [c-compiler] 4.6.1-4
Versions of packages libc6-dev suggests:
ii glibc-doc <none>
ii manpages-dev 3.32-0.2
-- no debconf information
With a simple program as the following:
#include <errno.h>
int main()
{
return 0;
}
Compiling to 32 bits target with:
gcc -m32 test.c
results in the following error:
In file included from /usr/include/bits/errno.h:25:0,
from /usr/include/errno.h:36,
from test-errno.c:1:
/usr/include/linux/errno.h:4:23: fatal error: asm/errno.h: No such file or directory
compilation terminated.
Reply to: