Re: cannot make gcc report undeclared builtins

Simon Josefsson via Bug reports for autoconf <[email protected]>
Newsgroups gmane.comp.sysutils.autoconf.bugs
Message-ID <[email protected]>
ons 2024-01-31 klockan 16:46 -0800 skrev Paul Eggert:
> On 1/31/24 03:23, Simon Josefsson via Bug reports for autoconf wrote:
> 
> > https://buildd.debian.org/status/fetch.php?pkg=libidn2&arch=loong64&ver=2.3.7-1&stamp=1706360630&raw=0
> 
> 
> Here's the crucial part of that log:
> 
> > configure:15961: checking for size_t
> > configure:15961: gcc -c -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=.
> > -fstack-protector-strong -Wformat -Werror=format-security -Wdate-
> > time -D_FORTIFY_SOURCE=2 conftest.c >&5
> > In file included from /usr/include/linux/stat.h:5,
> >                  from /usr/include/loongarch64-linux-
> > gnu/bits/statx.h:31,
> >                  from /usr/include/loongarch64-linux-
> > gnu/sys/stat.h:465,
> >                  from conftest.c:72:
> > /usr/include/linux/types.h:5:10: fatal error: asm/types.h: No such
> > file or directory
> >     5 | #include <asm/types.h>
> >       |          ^~~~~~~~~~~~~
> > compilation terminated.
> 
> 
> It appears that '#include <sys/stat.h>' doesn't work in some cases,
> and 
> I suggest looking into why that is.

Thanks -- given some other information, I now realize it does affect
other packages too.  So I'm less certain it has anything to do with
autoconf.   The way things fail is surprising though, and a better
failure mode would have been nice; it seems this particular autoconf
test has some other assumptions.

/Simon
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQSjzJyHC50xCrrUzy9RcisI/kdFogUCZbt4WAAKCRBRcisI/kdF
orXdAQCUy51Lom8JTnsmg0bXnBJXuOIEqUDkbwRrKS7nLEjtWgEA9/MaPvShjLXN
JxGSCISXB3U1OaqK1MXR8PBQdkJ/PAs=
=yYxw
-----END PGP SIGNATURE-----
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.