Bug#1144189: c-t-b-ports fails to building glibc for arc-linux-gnu

Bastian Blank <[email protected]>
Newsgroups gmane.linux.debian.devel.glibc
Message-ID <mox7kli4keheshhpllvdz63ufybzjsgcevwgoz2mea33mxpsci__15882.5743988686$1786504531$gmane$org@w45mlle2clzn>
Control: reassign -1 src:cross-toolchain-base-ports

On Wed, Aug 12, 2026 at 04:18:25AM +0200, Matthias Klose wrote:
> In file included from ../sysdeps/unix/sysv/linux/bits/errno.h:26,
>                  from ../stdlib/errno.h:28,
>                  from ../include/errno.h:2,
>                  from ../sysdeps/unix/sysdep.h:28,
>                  from ../sysdeps/unix/sysv/linux/arc/sysdep.h:24,
>                  from ../sysdeps/arc/nptl/tls.h:33,
>                  from ../include/link.h:51,
>                  from <stdin>:1:
> /usr/include/linux/errno.h:1:10: fatal error: asm/errno.h: No such file or

This is the wrong include path.  This needs to use use sysroot, aka
/usr/arc-linux-gnu.  The failing gcc call uses -nostdinc, so why does
gcc fall back to /usr/include?

To be exact, it uses:
| -nostdinc
| -isystem /build/reproducible-path/cross-toolchain-base-ports-77/debian/tmp.arc/usr/bin/../lib/gcc-cross/arc-linux-gnu/15/include 
| -isystem /build/reproducible-path/cross-toolchain-base-ports-77/debian/tmp.arc/usr/bin/../lib/gcc-cross/arc-linux-gnu/15/include-fixed 
| -isystem /build/reproducible-path/cross-toolchain-base-ports-77/glibc-2.43/debian/include 

Aka it is configured to use the gcc fixed up headers, not even the ones
from the package.

Bastian
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.