[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#871946: marked as done (libc6-dev-x32: The package libc6-dev-x32 lacks required include files)



Your message dated Sun, 13 Aug 2017 19:42:55 +0200
with message-id <20170813174255.4qadkvhflarabvyx@aurel32.net>
and subject line Re: Bug#871946: libc6-dev-x32: The package libc6-dev-x32 lacks required include files
has caused the Debian Bug report #871946,
regarding libc6-dev-x32: The package libc6-dev-x32 lacks required include files
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
871946: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=871946
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: libc6-dev-x32
Version: 2.24-11+deb9u1
Severity: important

Dear Maintainer,

*** 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
     ineffective)?

Create a program test-errno.c:
#include <stdio.h>
#include <errno.h>

int main(void)
{
        printf("Hello World: %d\n", errno);
        return 0;
}

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,
                 from /usr/include/errno.h:35,
                 from test-errno.c:2:
/usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: Adresář nebo soubor
neexistuje
 #include <asm/errno.h>
                       ^
compilation terminated.

   * 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
succeeds.



-- 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), LANGUAGE=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

--- End Message ---
--- Begin Message ---
On 2017-08-12 22:57, Mikulas Patocka wrote:
> Package: libc6-dev-x32
> Version: 2.24-11+deb9u1
> Severity: important
> 
> Dear Maintainer,
> 
> *** 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
>      ineffective)?
> 
> Create a program test-errno.c:
> #include <stdio.h>
> #include <errno.h>
> 
> int main(void)
> {
>         printf("Hello World: %d\n", errno);
>         return 0;
> }
> 
> 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,
>                  from /usr/include/errno.h:35,
>                  from test-errno.c:2:
> /usr/include/linux/errno.h:1:23: fatal error: asm/errno.h: Adresář nebo soubor
> neexistuje
>  #include <asm/errno.h>
>                        ^
> compilation terminated.
> 
>    * 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
> succeeds.

The problem is that you also need to install support for the x32 ABI on
the gcc side. You should install gcc-multilib for that, it would provide
the /usr/include/linux/asm symlink.

Aurelien

-- 
Aurelien Jarno                          GPG: 4096R/1DDD8C9B
aurelien@aurel32.net                 http://www.aurel32.net

--- End Message ---

Reply to: