Re: Host requirements to build the Tools binaries
Lloyd Parkes <[email protected]> Fri, 16 Aug 2024 10:35:22 +1200
| Newsgroups | gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <02416f3ff4e7c723a2de8189767c2bb99550b53f.camel@must-have-coffee.gen.nz> |
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