Building newlib-2.1.0 for m68k fails

Keith Clifford kclifford@tranaptic.ca
Wed Aug 6 23:09:00 GMT 2014


Hi,
On Cygwin I'm building gcc-4.91 along with newlib-2.1.0 for a mingw host and
an m68k ELF target. Building newlib failed when trying to compile io-read.c
because the return type of read is a ssize_t but the prototype uses
_READ_WRITE_RETURN_TYPE which in my configuration was defined to int. The
attached patch fixed the problem.

Cheers, 
Keith Clifford



-------------- next part --------------
A non-text attachment was scrubbed...
Name: newlib-2.1.0.patch
Type: application/octet-stream
Size: 908 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20140806/2f54df9c/attachment.obj>


More information about the Newlib mailing list