Cross compiling Newlib for ARM in Cygwin

Mike Frysinger vapier@gentoo.org
Tue Mar 22 17:28:00 GMT 2016


On 22 Mar 2016 10:47, Yaakov Selkowitz wrote:
> On 2016-03-22 09:33, Schwarz, Konrad wrote:
> > pardon my obtuseness: I'd like to build newlib for the arm-none-eabi target on a Cygwin host.
> >
> > I have a arm-none-eabi GCC and Binutils which was built for native Windows.
> 
> Cygwin != native Windows.  If you want to use a Cygwin shell for 
> cross-compiling, then you'll want Cygwin-hosted cross-compilers.
> 
> > I have downloaded newlib-cygwin in directory ./newlib-cygwin .  I create a directory ./newlib-cygwin-arm, and
> >
> > $ export CC=arm-none-eabi-gcc
> > $ cd newlib-cygwin-arm
> > $ ../newlib-cygwin/configure
> 
> That is not how cross-compiling works.  Cross-compiler toolchains 
> (binutils/gcc/gdb/newlib) are built by configuring with the desired 
> --target.

i think you mean --host
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://sourceware.org/pipermail/newlib/attachments/20160322/9377e8a2/attachment.sig>


More information about the Newlib mailing list