[ECOS] Using a different toolchain

Andrew Lunn andrew@lunn.ch
Thu Apr 6 06:39:00 GMT 2006


On Wed, Apr 05, 2006 at 11:11:17PM -0400, John R. Dunning wrote:
>     From: "John R. Dunning" <jrd@jrd.org>
>     Date: Tue, 4 Apr 2006 10:11:53 -0400
>     
>         From: Andrew Lunn <andrew@lunn.ch>
>         Date: Tue, 4 Apr 2006 15:16:47 +0200
>     							       i would of
>         thought target.ld would work.
> 
> Further info, I went back and started over from scratch.  When I use
> an out-of-the box config, using one of the mips targets, everything
> builds correctly.  I then changed toolchains, by fixing the tool
> prefix so as to invoke my 64bit-plus-special-sauce toolchain.
> 
> Here's some basic info on the toolchain:
> 
>     jrd@test ~/sw/ecos/devo/hack $ xxgcc --version
>     mips64el-unknown-linux-gnu-gcc (GCC) 3.4.5 (Gentoo 3.4.5-r1, ssp-3.4.5-1.0, pie-8.7.9)
>     Copyright (C) 2004 Free Software Foundation, Inc.
>     This is free software; see the source for copying conditions.  There is NO
>     warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
> 
> Cleaned, and compiled everything.  That works ok, but when I get to
> the link step, trying to build one of the test executables, I get the
> following:
> 
>     xxgcc -c  -I/net/home/jrd/sw/ecos/devo/hack/install/include -I/home/jrd/sw/ecos/dist/ecos-2.0/packages/hal/common/v2_0 -I/home/jrd/sw/ecos/dist/ecos-2.0/packages/hal/common/v2_0/src -I/home/jrd/sw/ecos/dist/ecos-2.0/packages/hal/common/v2_0/tests -I. -I/home/jrd/sw/ecos/dist/ecos-2.0/packages/hal/common/v2_0/tests/ -mips64 -EL -msoft-float -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Woverloaded-virtual -g -O2 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -G0 -Wp,-MD,tests/context.tmp -o tests/context.o /home/jrd/sw/ecos/dist/ecos-2.0/packages/hal/common/v2_0/tests/context.c
>     cc1: warning: command line option "-Woverloaded-virtual" is valid for C++/ObjC++ but not for C
>     cc1: warning: command line option "-fno-rtti" is valid for C++/ObjC++ but not for C
>     cc1: warning: command line option "-fvtable-gc" is valid for C++/ObjC++ but not for C
>     xxgcc -EL -msoft-float -g -nostdlib -Wl,--gc-sections -Wl,-static -L/net/home/jrd/sw/ecos/devo/hack/install/lib -Ttarget.ld -o /net/home/jrd/sw/ecos/devo/hack/install/tests/hal/common/v2_0/tests/context tests/context.o
>     /usr/lib/gcc/mips64el-unknown-linux-gnu/3.4.5/../../../../mips64el-unknown-linux-gnu/bin/ld: target elf32-littlemips not found

Try -V so we can see what is being passed from gcc to ld. 

Have you been able to compile and link anything with the toolchain?
Are there any build in self tests? 

        Andrew

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss



More information about the Ecos-discuss mailing list