This is the mail archive of the crossgcc@sources.redhat.com 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]

Re: Problems with arm-elf with soft-float


Øyvind Harboe wrote:
> 
> I'm trying to configure an arm-elf toolchain for AT91 (using the EB40a
> evaluation board).
> 
> Hopefully I'm at the last obstacle:
> 
> I've configured and compiled the compiler/newlib with the scripts below, but
> when I try to link an example application, I get a linker error since libgcc.a is
> hard floating point and my code is soft-floating point.
> 
> I tried to modify gcc/config/t-arm-elf to compile a permutation of
> libgcc.a with and without hardware floating point, but to no avail. t-arm-elf
> is modified to produce the interwork/thumb permutations.
> 
> My latest attempt was to configure gcc + newlib w/--nfp
> 

> # for some reason we need to build and install the runtime
> # libraries before we compile the real compiler
> cd build-gcc-bare
> $GCCSRC/gcc/configure --enable-multilib --enable-interwork --target=$TARGET --prefix=$PREFIX --with-headers=$NEWLIBPATH/newlib/libc/include --with-gnu-as --with-gnu-ld --disable-shared --enable-languages=c --nfp
> make all-gcc 2>&1 | tee ../gcc-bare-make.log
> make install-gcc 2>&1 | tee ../gcc-bare-install.log
> cd ..
> cd build-newlib
> $NEWLIBPATH/configure --nfp --enable-multilib --target=$TARGET --prefix=$PREFIX
> make all install 2>&1 | tee ../newlib.log
> cd ..

just try to do a (from the BUILD directory):
../gcc-3.2.x/configure --prefix=target-dir --target=arm-elf
--disable-shared --enable-languages=c --nfp --with-newlib &&
make all-gcc &&
make install-gcc &&
rm -rf * &&
../newlib-x.x.x/configure --prefix=target-dir
--target=arm-elf &&
make &&
make install

That's what I did, and I got no errors

Regards,

Jan

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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