This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re[2]: Newlib cross-compiling issue


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]