Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1227550

Bug#1092576: linux-libc-dev: Multilib GCC bootstrap on Debian 12 fails due to missing asm/errno.h

From Ilya Leoshkevich <iii@linux.ibm.com>
Newsgroups linux.debian.bugs.dist, linux.debian.kernel
Subject Bug#1092576: linux-libc-dev: Multilib GCC bootstrap on Debian 12 fails due to missing asm/errno.h
Date 2025-01-09 10:10 +0100
Message-ID <K2WI9-6Qru-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Cross-posted to 2 groups.

Show all headers | View raw


Package: linux-libc-dev
Version: 6.12.5-1+ppl1
Severity: normal
X-Debbugs-Cc: iii@linux.ibm.com

Dear Maintainer,

I'm trying to bootstrap gcc from git master with multilib on debian 12.
As far as I can see all the necessary cross packages are installed.

./configure && make fails with:

In file included from /usr/include/bits/errno.h:26,
                 from /usr/include/errno.h:28,
                 from ../../../../libgcc/../gcc/tsystem.h:101,
                 from ../../../../libgcc/libgcc2.c:27:
/usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: No such file or directory
    1 | #include <asm/errno.h>
      |          ^~~~~~~~~~~~~

However, running ./configure with the same flags as the distro-built
GCC succeeds.

The minimal set of working options appears to be: --prefix=/usr
--build=x86_64-linux-gnu. This ultimately adds
-isystem /usr/x86_64-linux-gnu/include to the problematic GCC
invocation, which makes the issue go away.

I filed this upstream [1] and Andrew Pinski replied:

```
Looks like they changed how they handle mutli-lib with respect to multi-arch.

Before they required you to install the multiarch i386-linux-gnu too.

Now it seems like 32bit is multilibed in with the x86_64-linux-gnu.
BUT x32 is still multi-arch.

I would raise this issue with debian really because they made some changes which are break how multiarch work.
```

Best regards,
Ilya

[1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118369

-- System Information:
Debian Release: 12.8
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-27-amd64 (SMP w/128 CPU threads; PREEMPT)
Kernel taint flags: TAINT_SOFTLOCKUP
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information

Back to linux.debian.bugs.dist | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

Bug#1092576: linux-libc-dev: Multilib GCC bootstrap on Debian 12 fails due to missing asm/errno.h Ilya Leoshkevich <iii@linux.ibm.com> - 2025-01-09 10:10 +0100
  Bug#1092576: linux-libc-dev: Multilib GCC bootstrap on Debian 12 fails due to missing asm/errno.h Bastian Blank <waldi@debian.org> - 2025-01-15 21:20 +0100
    Bug#1092576: linux-libc-dev: Multilib GCC bootstrap on Debian 12 fails due to missing asm/errno.h Ilya Leoshkevich <iii@linux.ibm.com> - 2025-01-16 00:20 +0100

csiph-web