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

See the CrossGCC FAQ for lots more information.


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

sprintf causes a procesoor crash when I use %f


Hi all,

I was creating a m68k-elf GNU toolchain with binutils 2.15, gcc3.4.6 and
newlib 1.15.0. 
When I compile my coldfire project (m5307), everything works fine, expect
the sprintf function.
When I use sprintf with a %f in its argument it causes a processor crash.
Can I solve the error by using an other newlib version, or did I something
wrong when I was creating my toolchain?

tar xjfv binutils-2.15.tar.bz2
mkdir build-binutils
cd build-binutils
../binutils-2.15/configure --target=$TARGET --prefix=$PREFIX
make all
make install
 

tar xjfv gcc-core-3.4.6.tar.bz2
mkdir build-gcc
cd build-gcc
../gcc-3.4.6/configure --target=$TARGET --prefix=$PREFIX --without-headers
--with-newlib  --with-gnu-as --with-gnu-ld --nfp
make all-gcc 
make install-gcc


tar xzfv newlib-1.13.0.tar.gz 
mkdir build-newlib
cd build-newlib
../newlib-1.13.0/configure --target=$TARGET --prefix=$PREFIX
-enable-newlib-hw-fp
make all
make install

 
cd build-gcc
../gcc-3.4.4/configure --target=$TARGET --prefix=$PREFIX --with-newlib
--with-gnu-as --with-gnu-ld --nfp
make all
make install

Thanks in advance

Koen

Thanks


--
For unsubscribe information see http://sourceware.org/lists.html#faq


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