tech-toolchain archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Host requirements to build the Tools binaries



On Fri, 2024-08-16 at 04:31 +0900, Izumi Tsutsui wrote:
> 
> 
> Newer GCC14 no longer allows implicit function declarations.

Thanks. That information made it much easier for me to work out that
this problem is more than just strptime(3) used by date(1).

> 
> Linux requires _XOPEN_SOURCE to pull strptime(3) in <time.h>.

A quick check shows that strptime(3) used by date(1) in the host tools
is not the only implicit function declaration that gets shot down.

I suspect that the tools build will need to add -D_XOPEN_SOURCE to the
gcc HOST_CFLAGS on Linux systems (only). 

POSIX conforming platforms aren't going to change the way their
_XOPEN_SOURCE definition works, and neither will GNU libc. Luckily
Linux appears to be the only special case in this regard. (Yes, I have
strong opinions. No, we don't need to waste electrons discussing them.)

Ngā mihi,
Lloyd



Home | Main Index | Thread Index | Old Index