On 10/04/2023 19:05, Pádraig Brady wrote:
On 10/04/2023 18:46, Bruno Haible wrote:
Hi Pádraig,
+/* Declare abort(), without including <stdlib.h>. */
+extern
+# if defined __cplusplus
+"C"
+# endif
+_Noreturn
The above _Noreturn is causing a build failure on Solaris 10 on Sparc.
A build failure of which package, which version?
Can you please show the tail of the output of "make V=1"? I need to
see whether it's a warning or an error (since I guess that you often
compile with -Werror).
From config.log:
$ gcc --version
$ gcc (GCC) 3.4.3 (csl-sol210-3_4-branch+sol_rpath)
Is this on a publicly accessible machine (e.g. in the GCC compile farm)?
If so, that would speed up my reproduction.
Commenting out that _Noreturn allows the build to complete.
Thanks for the hint; I'll consider this after analyzing.
Sorry for the terse info.
This is for the latest coreutils snapshot on a Solaris 10 machine only I have
access to.
So a dist tarball, so an error not a warning.
https://www.pixelbeat.org/cu/coreutils-ss.tar.xz
End of build output is:
CC src/cksum-crctab.o
In file included from ./lib/time.h:50,
from /usr/include/sys/time.h:421,
from ./lib/sys/time.h:39,
from /usr/include/sys/select.h:23,
from ./lib/sys/select.h:36,
from
/usr/sfw/lib/gcc/sparc-sun-solaris2.10/3.4.3/include/sys/types.h:631,
from ./lib/sys/types.h:39,
from ./lib/stdint.h:105,
from src/crctab.c:1:
./lib/stddef.h:175: error: syntax error before "void"
Ah, this isn't a gnulib issue.
crctab.c in coreutils didn't include <config.h>
Sorry for the noise.
Pádraig