Toolchain fails with Blackfin and newlib
Michael Ambrus
ambrmi09@gmail.com
Fri Feb 16 17:04:00 GMT 2007
Edo,
Try adding this to your gcc config:
--disable-libssp
libssp is for stack smashing protection and seems either broken or not
fully implemented for blackfin.
WKR
/Michael
On 2/16/07, Franzi Edo. <edo.franzi@ukos.ch> wrote:
> Hi Newlib specialists,
> I am trying to build a tool chain for the Blackfin using the newlib.
> The gcc build phase give me this error. Can someone help me?
>
> /var/tmp//ccP6szm3.s: Assembler messages:
> /var/tmp//ccP6szm3.s:10: Error: syntax error. Input text was @.
> /var/tmp//ccP6szm3.s:10: Error:
> /var/tmp//ccP6szm3.s:12: Error: syntax error. Input text was @.
> /var/tmp//ccP6szm3.s:12: Error:
> make[3]: *** [libssp_nonshared_la-ssp-local.lo] Error 1
> make[2]: *** [all] Error 2
> make[1]: *** [all-target-libssp] Error 2
> make: *** [all] Error 2
>
> This is part of my toolchain:
>
> TARGET=bfin-elf
> BINUTILS_VER=2.16.94
> GCC_VER=4.1.2
> NEWLIB_VER=1.15.0
> GDB_VER=6.6
> TARGET_DIR=/Users/Shared
>
> echo " - Create an alias of the library"
> cd $TARGET_DIR/GCC/gcc-$GCC_VER
> ln -s ../newlib-$NEWLIB_VER/newlib .
> ln -s ../newlib-$NEWLIB_VER/libgloss .
>
> export target=$TARGET
> export prefix=$TARGET_DIR/cross/$TARGET
> export i=$prefix/bin
>
> echo " Build the tools"
> mkdir -p $TARGET_DIR/builds/$TARGET/binutils-$BINUTILS_VER
> cd $TARGET_DIR/builds/$TARGET/binutils-$BINUTILS_VER
> ../../../GCC/binutils-$BINUTILS_VER/configure --target=$target --
> prefix=$prefix
> make
> make install
> make clean
>
> echo " - Build the compiler"
> cd $TARGET_DIR/builds/$TARGET
> mkdir gcc-$GCC_VER
> cd gcc-$GCC_VER
> ../../../GCC/gcc-$GCC_VER/configure --target=$target --prefix=$prefix
> --enable-languages=c --with-newlib --with-gnu-as --with-gnu-ld
> make "CFLAGS = -DREENTRANT_SYSCALLS_PROVIDED"
> make install
> make clean
>
> I use OSX 10.4.8 as a target
> gcc 4.1.2
> binutils 2.16.94
> newlib 1.15.0
>
> Has someone a solution to build a correct toolchain with the newlib?
> Thank's
> Edo
>
>
>
More information about the Newlib
mailing list