public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] trying tx49 ref4955 design
@ 2006-02-15 17:32 e.stiebler
  2006-02-15 17:45 ` Andrew Lunn
  0 siblings, 1 reply; 3+ messages in thread
From: e.stiebler @ 2006-02-15 17:32 UTC (permalink / raw)
  To: ecos-discuss

Hi all,
tried my first steps with ecos on a Toshiba TX49 (MIPS).
According to "building a toolchain" I built:
binutils-1.16.1,
gcc-3.4.4,
and got the ecos version from the AnonCVS.

When I try to compile it with make I get during the compiles something 
like :
mips-tx49-elf-gcc -g -mips2 -EB -mabi=eabi -nostdlib -Wl,--gc-sections 
-Wl,-static -L/AD1/SHARED/ECOS/test/install/lib -Ttarget.ld -o 
/AD1/SHARED/ECOS/test/install/bin/gdb_module.img src/stubrom/gdb_module.o
/AD1/SHARED/ECOS/gnutools/mips-tx49-elf/lib/gcc/mips-tx49-elf/3.4.4/../../../../
mips-tx49-elf/bin/ld: 
/AD1/SHARED/ECOS/gnutools/mips-tx49-elf/lib/gcc/mips-tx49-
elf/3.4.4/libgcc.a(_udivdi3.o): ABI mismatch: linking O32 module with 
previous EABI32 modules

Any idea, what I did wrong ?

Cheers & Thanks

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] trying tx49 ref4955 design
  2006-02-15 17:32 [ECOS] trying tx49 ref4955 design e.stiebler
@ 2006-02-15 17:45 ` Andrew Lunn
  2006-02-15 18:00   ` e.stiebler
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Lunn @ 2006-02-15 17:45 UTC (permalink / raw)
  To: e.stiebler; +Cc: ecos-discuss

On Wed, Feb 15, 2006 at 10:32:41AM -0700, e.stiebler wrote:
> Hi all,
> tried my first steps with ecos on a Toshiba TX49 (MIPS).
> According to "building a toolchain" I built:
> binutils-1.16.1,
> gcc-3.4.4,
> and got the ecos version from the AnonCVS.
> 
> When I try to compile it with make I get during the compiles something 
> like :
> mips-tx49-elf-gcc -g -mips2 -EB -mabi=eabi -nostdlib -Wl,--gc-sections 
> -Wl,-static -L/AD1/SHARED/ECOS/test/install/lib -Ttarget.ld -o 
> /AD1/SHARED/ECOS/test/install/bin/gdb_module.img src/stubrom/gdb_module.o
> /AD1/SHARED/ECOS/gnutools/mips-tx49-elf/lib/gcc/mips-tx49-elf/3.4.4/../../../../
> mips-tx49-elf/bin/ld: 
> /AD1/SHARED/ECOS/gnutools/mips-tx49-elf/lib/gcc/mips-tx49-
> elf/3.4.4/libgcc.a(_udivdi3.o): ABI mismatch: linking O32 module with 
> previous EABI32 modules
> 
> Any idea, what I did wrong ?

libgcc.a is provided by the compiler. It looks like libgcc.a is
compiled using a different Application Binary Interface than what eCos
was compiled with.

Try looking at the options you can pass to the configure script when
you build the tool chain. Is there anything to control the ABI it
uses?

        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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [ECOS] trying tx49 ref4955 design
  2006-02-15 17:45 ` Andrew Lunn
@ 2006-02-15 18:00   ` e.stiebler
  0 siblings, 0 replies; 3+ messages in thread
From: e.stiebler @ 2006-02-15 18:00 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: ecos-discuss

Andrew Lunn wrote:
> libgcc.a is provided by the compiler. It looks like libgcc.a is
> compiled using a different Application Binary Interface than what eCos
> was compiled with.
> 
> Try looking at the options you can pass to the configure script when
> you build the tool chain. Is there anything to control the ABI it
> uses?

I used pretty much what's on the "building toolchain" webpage.

So setting :

ECOS_REPOSITORY=/AD1/MIRRORS/Mirror.Linux/ECOS/ecos/packages ; export 
ECOS_REPOSITORY
ECOS_GNUTOOLS=/AD1/SHARED/ECOS/gnutools ; export ECOS_GNUTOOLS
ECOS_TARGET=mips-tx49-elf ; export ECOS_TARGET

I compile binutils with :

#!/bin/sh
../binutils-2.16.1/configure \
--target=$ECOS_TARGET \
--prefix=$ECOS_GNUTOOLS/$ECOS_TARGET
make all
make info
make install

and gcc with:

#!/bin/sh
../gcc-3.4.4/configure \
--target=$ECOS_TARGET \
--with-gnu-as \
--with-gnu-ld \
--with-newlib \
--enable-languages="c,c++" \
--prefix=$ECOS_GNUTOOLS/$ECOS_TARGET \
--with-gxx-include-dir=$ECOS_GNUTOOLS/$ECOS_TARGET/include

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-02-15 18:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-02-15 17:32 [ECOS] trying tx49 ref4955 design e.stiebler
2006-02-15 17:45 ` Andrew Lunn
2006-02-15 18:00   ` e.stiebler

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).