Building newlib-2.1.0 for m68k fails
Jeff Johnston
jjohnstn@redhat.com
Mon Aug 18 16:44:00 GMT 2014
Patch has been applied.
-- Jeff J.
----- Original Message -----
From: "Keith Clifford" <kclifford@tranaptic.ca>
To: "Jeff Johnston" <jjohnstn@redhat.com>, "Newlib Mailing List" <newlib@sourceware.org>
Cc: "Anders Montonen" <Anders.Montonen@iki.fi>
Sent: Saturday, August 16, 2014 10:38:40 AM
Subject: RE: Building newlib-2.1.0 for m68k fails
Hi Jeff, Anders,
I applied the patch and ran the build. Everything worked great.
Thanks,
Keith
-----Original Message-----
From: Jeff Johnston [mailto:jjohnstn@redhat.com]
Sent: August 15, 2014 12:35 PM
To: Newlib Mailing List (newlib@sourceware.org)
Cc: Anders Montonen; kclifford@tranaptic.ca
Subject: Re: Building newlib-2.1.0 for m68k fails
Hi Anders/Keith,
The patch should instead be setting _READ_WRITE_RETURN_TYPE in newlib/libc/include/sys/config.h to ssize_t for m68k since the io-read.c code has been specifying ssize_t for quite a while now.
Please try the attached patch for newlib and let me know if there are any issues.
-- Jeff J.
----- Original Message -----
From: "Anders Montonen" <Anders.Montonen@iki.fi>
To: newlib@sourceware.org
Sent: Thursday, August 14, 2014 1:17:59 PM
Subject: Re: Building newlib-2.1.0 for m68k fails
On Aug 7, 2014, at 2:09, Keith Clifford wrote:
> 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.
FWIW, this patch fixed my build problems.
Regards,
Anders Montonen
More information about the Newlib
mailing list