Hi Collin,

> I ran into this issue recently compiling GNU Guile which does not yet
> support C23 compilers which is the default since GCC 15. My solution was
> to run './configure CFLAGS='-std=c99''.

Why not CFLAGS='-std=gnu99' ? [1]

Compiler options like -std=c99 (compilation for ISO C without extensions)
or -D_POSIX_C_SOURCE or -D_XOPEN_SOURCE=500 (enable older POSIX functions,
but not newer ones) are fine when you compile highly portable programs,
like TeX or MetaFont or a Pascal to C converter. But for a package like
Guile, that includes a garbage collector and a JIT compiler and therefore
needs to access a lot of system facilities, it is just not a reasonable choice.

> Wouldn't it be better to use '__asm__' here and in the other functions
> using inline assembly?

IIRC, I tried that, and one of the compilers understood only 'asm', not
'__asm__'.

Bruno

[1] https://gcc.gnu.org/onlinedocs/gcc-15.1.0/gcc/C-Dialect-Options.html




Reply via email to