This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: Re[2]: Newlib cross-compiling issue
- From: Freddie Chopin <freddie_chopin at op dot pl>
- To: newlib at sourceware dot org
- Date: Mon, 19 Dec 2016 12:11:56 +0100
- Subject: Re: Re[2]: Newlib cross-compiling issue
- Authentication-results: sourceware.org; auth=none
- References: <1481490734.103346399@f226.i.mail.ru> <221861229.4241353.1481842367211.JavaMail.zimbra@redhat.com> <1482060976.124148806@f105.i.mail.ru>
On Sun, 2016-12-18 at 14:36 +0300, Alexander Kurakin via newlib wrote:
> Hi, Jeff! Thanks for reply!
>
> Have looked now, but even with:
>
> ./configure \
> --target=arm-none-eabi \
> --with-cpu=cortex-m4 \
> --with-fpu=fpv4-sp-d16 \
> --with-float=hard \
> --with-mode=thumb \
> ...
>
> I don't see something about cpu, arch, etc. in build log.
>
> Typical call to compiler is:
> arm-none-eabi-gcc -B./arm-none-eabi/newlib/ -isystem ./arm-none-
> eabi/newlib/targ-include -isystem /home/sasha/1/newlib-
> 2.1.0/newlib/libc/include -B./arm-none-eabi/libgloss/arm -L./arm-
> none-eabi/libgloss/libnosys -L/home/sasha/1/newlib-2.1.0/libgloss/arm
> -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
> -DPACKAGE_VERSION=\"2.1.0\" -DPACKAGE_STRING=\"newlib\ 2.1.0\"
> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
> -I../../../../../../newlib-2.1.0/newlib/libm/machine/arm -I
> ../../../../../../newlib-
> 2.1.0/newlib/libm/machine/arm/../../../../newlib/libm/common
> -D__SINGLE_THREAD__ -D__NO_SYSCALLS__ -DNO_FLOATING_POINT -fno-
> builtin -g -O2 -c -o lib_a-s_floor.o `test -f 's_floor.c' || echo
> '../../../../../../newlib-2.1.0/newlib/libm/machine/arm/'`s_floor.c
>
> Thanks!
You can check my script to build a complete toolchain, including newlib
in "standard" and "nano" variants.
https://github.com/FreddieChopin/bleeding-edge-toolchain
It works on Ubuntu if you install the packages mentioned in README.md.
If you have any issues using / understanding it - please let me know.
Regards,
FCh