Build error for m68k using 4.4.0.20231231 and master

Marc <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
Hello,

while preparing the GCC 14 builds for cross compilers on Compiler
Explorer, I'm having several issues. The easiest issue comes from new
warnings that I can silence with (not ideal, but I can get a toolchain):

 -Wno-error=implicit-function-declaration -Wno-implicit-in

That "fixes" builds for msp430 and sh.

The m68k is still failing with:

[ERROR]    /mnt/barryallen/dkm/git/crosstool-ng/.build/m68k-unknown-elf/src/newlib/libgloss/m68k/../read.c:24:1: error: conflicting types for 'read'; have 'int(int,  void *, size_t)' {aka 'int(int,  void *, long unsigned int)'}
[ERROR]    make[5]: *** [Makefile:528: read.o] Error 1
[ERROR]    make[5]: *** Waiting for unfinished jobs....
[ERROR]    /mnt/barryallen/dkm/git/crosstool-ng/.build/m68k-unknown-elf/src/newlib/libgloss/m68k/../write.c:25:1: error: conflicting types for 'write'; have 'int(int,  const void *, size_t)' {aka 'int(int,  const void *, long unsigned int)'}

I've tried both 4.4.0 release and current master.

Do you already have a fix? If not, I'll probably try to fix this myself
and send a followup email with the fix.

Best regards,
Marc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.