Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.kernel > #85062 > unrolled thread
| Started by | Ilya Leoshkevich <iii@linux.ibm.com> |
|---|---|
| First post | 2025-01-09 10:10 +0100 |
| Last post | 2025-01-17 17:40 +0100 |
| Articles | 4 — 3 participants |
Back to article view | Back to linux.debian.kernel
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
Bug#1092576: marked as done (linux-libc-dev: Multilib GCC bootstrap on Debian 12 fails due to missing asm/errno.h) "Debian Bug Tracking System" <owner@bugs.debian.org> - 2025-01-17 17:40 +0100
| From | Ilya Leoshkevich <iii@linux.ibm.com> |
|---|---|
| Date | 2025-01-09 10:10 +0100 |
| Subject | Bug#1092576: linux-libc-dev: Multilib GCC bootstrap on Debian 12 fails due to missing asm/errno.h |
| Message-ID | <K2WI9-6Qru-1@gated-at.bofh.it> |
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
[toc] | [next] | [standalone]
| From | Bastian Blank <waldi@debian.org> |
|---|---|
| Date | 2025-01-15 21:20 +0100 |
| Message-ID | <K5i1P-9cj6-1@gated-at.bofh.it> |
| In reply to | #85062 |
On Thu, Jan 09, 2025 at 08:58:38AM +0000, Ilya Leoshkevich wrote: > 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. How do you configure GCC to support the Debian multi-arch include layout? Also direct support requires Debian 13, due to linux-libc-dev only supporting a single arch before. For everything else, please refer to gcc packages on how to build it. Bastian -- "What terrible way to die." "There are no good ways." -- Sulu and Kirk, "That Which Survives", stardate unknown
[toc] | [prev] | [next] | [standalone]
| From | Ilya Leoshkevich <iii@linux.ibm.com> |
|---|---|
| Date | 2025-01-16 00:20 +0100 |
| Message-ID | <K5kQ1-9e95-9@gated-at.bofh.it> |
| In reply to | #85148 |
On Wed, 2025-01-15 at 21:12 +0100, Bastian Blank wrote: > On Thu, Jan 09, 2025 at 08:58:38AM +0000, Ilya Leoshkevich wrote: > > 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. > > How do you configure GCC to support the Debian multi-arch include > layout? Also direct support requires Debian 13, due to linux-libc- > dev > only supporting a single arch before. > > For everything else, please refer to gcc packages on how to build it. > > Bastian Hi Bastian, thanks for having a look! In the upstream ticket Matthias has figured out that the root cause is the lack of the gcc-multilib package, which conflicts with the cross-compilers, which are installed on the affected systems. I believe that this, in turn, is a very old issue, which is not going to go away anytime soon. I tried to upgrade to debian 13, and with it I get better diagnostics from the gcc's configure: configure: error: I suspect your system does not have 32-bit development libraries (libc and headers). If you have them, rerun configure with --enable-multilib. If you do not have them, and want to build a 64-bit-only compiler, rerun configure with --disable-multilib. So we can close this bug. Best regards, Ilya
[toc] | [prev] | [next] | [standalone]
| From | "Debian Bug Tracking System" <owner@bugs.debian.org> |
|---|---|
| Date | 2025-01-17 17:40 +0100 |
| Subject | Bug#1092576: marked as done (linux-libc-dev: Multilib GCC bootstrap on Debian 12 fails due to missing asm/errno.h) |
| Message-ID | <K5Xy1-9G0V-11@gated-at.bofh.it> |
| In reply to | #85062 |
[Multipart message — attachments visible in raw view] — view raw
Your message dated Fri, 17 Jan 2025 17:33:19 +0100 with message-id <20250117163319.qq7c6yp4zefvnvly@shell.thinkmo.de> and subject line Re: Bug#1092576: linux-libc-dev: Multilib GCC bootstrap on Debian 12 fails due to missing asm/errno.h has caused the Debian Bug report #1092576, regarding linux-libc-dev: Multilib GCC bootstrap on Debian 12 fails due to missing asm/errno.h 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.) -- 1092576: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1092576 Debian Bug Tracking System Contact owner@bugs.debian.org with problems
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.kernel
csiph-web