On 14/01/2025 21:42, Paul Eggert wrote:
On 2025-01-14 11:46, Pádraig Brady wrote:
Testing https://www.pixelbeat.org/co/coreutils-ss.tar.xz on solaris 11
(cfarm216.cfarm.net)
I get a build failure (with gcc 14) due to an already known issue on
solaris where it
defines a two param static_assert() macro.

    CC       lib/libcoreutils_a-xfts.o
./lib/dirent.h:100:36: error: macro "static_assert" requires 2
arguments, but only 1 given
/usr/include/assert.h:25:9: note: macro "static_assert" defined here
        | #if (__STDC_VERSION__ - 0 >= 201112L) && !defined(__cplusplus)
     25 | #define static_assert(a, b) _Static_assert(a, b)
        |         ^~~~~~~~~~~~~
        | #endif

Odd, I'm not seeing this on cfarm216.cfarm.net. I did a plain
'configure'. The compiler is /usr/bin/gcc, which says it is GCC 14.2.0.
I used coreutils commit 75e2224ae27f0c6078bddcd194a77f4ee0c8594a.

Strange indeed. For completeness, I just repro'd again with:

wget https://www.pixelbeat.org/cu/coreutils-ss.tar.xz
xz -dc coreutils-ss.tar.xz | tar -xf -
cd coreutils-9.5.239-a836/
./configure --quiet && gmake -j32

Note Bruno's fix avoids the problem now.

cheers,
Pádraig

Reply via email to