This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc 4.5.3 failed to build a arm cross compiler
On 09/02/2011 02:45 AM, junfeng dong wrote:
> I am trying to build a arm toolchain on i586. Gcc 4.5.3 is configured
> as follows:
>
> "../configure --build=i586-meego-linux --host=i586-meego-linux
> --target=armv7l-meego-linux-
> gnueabi --disable-checking --enable-lto --enable-languages=c,c++
> --with-sysroot=/opt/cross/armv7l-meego-linux-gnueabi/sys-root"
>
> Make all
>
> Then I got the error:
>
> /opt/cross/bin/armv7l-meego-linux-gnueabi-ld: error:
> ./libgcc_s.so.1.tmp uses VFP register arguments, emutls_s.o does not
>
> /opt/cross/bin/armv7l-meego-linux-gnueabi-ld: failed to merge target
> specific data of file emutls_s.o
>
> …
>
> I have tried adding “--with-float-soft” to gcc’s configure option. It
> doesn’t work.
>
> Any idea about the error? What do I miss?
Your target is not the same as the target in your sysroot. Can you
find out what configure arguments were used to build the gcc that built
the sysroot?
Andrew.