Re: hacks for cc (GCC) 14.2.1 20240912 + glibc-2.39
Andrew Cagney <[email protected]> Tue, 15 Oct 2024 12:36:11 -0400
| Newsgroups | gmane.os.netbsd.devel.toolchain |
|---|---|
| Message-ID | <CAJeAr6vULM5vKsDeUVi9=AGjd68+Z0OWWx3d1MWO+-HNO0WzRg@mail.gmail.com> |
I've got further, looks like this needs <arap/inet.h>
# compile mkubootimage/mkubootimage.lo
cc -fcommon -Wno-error -Wno-literal-suffix -Wno-expansion-to-defined
-Wno-implicit-fallthrough -I/home/netbsd/10/src/tools/mkubootimage
-D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64
-I/home/netbsd/10/tools/include/compat
-I/home/netbsd/10/src/tools/compat -DHAVE_NBTOOL_CONFIG_H=1
-D_FILE_OFFSET_BITS=64 -c -o mkubootimage.lo.o
/home/netbsd/10/src/tools/mkubootimage/../../usr.bin/mkubootimage/mkubootimage.c
cc1: warning: command-line option '-Wno-literal-suffix' is valid for
C++/ObjC++ but not for C
/home/netbsd/10/src/tools/mkubootimage/../../usr.bin/mkubootimage/mkubootimage.c:
In function 'dump_header_uimg':
/home/netbsd/10/src/tools/mkubootimage/../../usr.bin/mkubootimage/mkubootimage.c:280:21:
error: implicit declaration of function 'ntohl'
[-Wimplicit-function-declaration]
280 | time_t tm = ntohl(hdr->ih_time);
| ^~~~~
/home/netbsd/10/src/tools/mkubootimage/../../usr.bin/mkubootimage/mkubootimage.c:
In function 'generate_header_uimg':
/home/netbsd/10/src/tools/mkubootimage/../../usr.bin/mkubootimage/mkubootimage.c:327:31:
error: implicit declaration of function 'htonl'
[-Wimplicit-function-declaration]
327 | size_buf[0] = htonl(st.st_size);
| ^~~~~
On Tue, 15 Oct 2024 at 09:09, Martin Husemann <[email protected]> wrote:
>
> On Tue, Oct 15, 2024 at 09:08:04AM -0400, Andrew Cagney wrote:
> > thanks,
> > I'll wait for the pullups to come through.
>
> They should be in -10 now.
>
> Martin