*** Reporter, please consider answering these questions, where appropriate ***
* What led up to the situation?
I was trying to compile a program for the x32 ABI.
* What exactly did you do (or not do) that was effective (or
Create a program test-errno.c:
printf("Hello World: %d\n", errno);
Compile it with "gcc-6 -mx32 test-errno.c"
* What was the outcome of this action?
I get this error:
In file included from /usr/include/bits/errno.h:24:0,
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: Adresář nebo soubor
* What outcome did you expect instead?
The package libc6-dev-x32 should contain all the include files needed to build
programs for the x32 ABI.
The package seems to be missing the directory /usr/include/x86_64-linux-gnux32.
When I create this directory and copy include files to it, the compilation
-- System Information:
Debian Release: 9.1
APT prefers stable
APT policy: (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, arm64, armel, armhf, mips, mips64el, ppc64el, s390x
Kernel: Linux 4.4.80 (SMP w/12 CPU cores; PREEMPT)
Locale: LANG=cs_CZ.utf8, LC_CTYPE=cs_CZ.utf8 (charmap=UTF-8),
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)
Versions of packages libc6-dev-x32 depends on:
ii libc6-dev 2.24-11+deb9u1
ii libc6-dev-i386 2.24-11+deb9u1
ii libc6-x32 2.24-11+deb9u1
libc6-dev-x32 recommends no packages.
libc6-dev-x32 suggests no packages.
-- no debconf information