FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Embedded

 
 
LinkBack Thread Tools
 
Old 04-27-2008, 04:25 PM
Aleksei Krasnoperov
 
Default crossdev: incompatible libgcc.a when searching for -lgcc

Hello!

I'm new in embedded Gentoo, but i have some experience in embedded
linux. And now I'm want study embedded Gentoo!


At first I'm trying to build cross toolchain with crossdev.
Current architecture is not matter. I'm trying build for
mipsel-unknown-linux-gnu, arm-unknown-linux-gnu,
powerpc-unknown-linux-gnu, powerpc-405ep-linux-gnu and some other, with
different versions of binutils, gcc, libc... (according to google)
And, if other errors was resolved, I get "incompatible libgcc.a when
searching for -lgcc". It's most common error for me.



alv@origami ~ $ sudo crossdev -S -t powerpc-405ep-linux-gnu
-----------------------------------------------------------------------------------------------------------------------------------------
* Host Portage ARCH: x86
* Target Portage ARCH: ppc
* Target System: powerpc-405ep-linux-gnu
* Stage: 4 (C/C++ compiler)

* binutils: binutils-[stable]
* gcc: gcc-[stable]
* headers: linux-headers-[stable]
* libc: glibc-[stable]

* PORTDIR_OVERLAY: /usr/cross-portage
* PORT_LOGDIR: /var/log/portage
* PKGDIR:
/usr/portage/packages/cross/powerpc-405ep-linux-gnu

* PORTAGE_TMPDIR: /var/tmp/cross/powerpc-405ep-linux-gnu
_ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ - _ - ~ -
* Forcing the latest versions of {binutils,gcc}-config/gnuconfig ...


* Log: /var/log/portage/cross-powerpc-405ep-linux-gnu-binutils.log
* Emerging cross-binutils ...


* Log: /var/log/portage/cross-powerpc-405ep-linux-gnu-gcc-stage1.log
* Emerging cross-gcc-stage1 ...
* Log: /var/log/portage/cross-powerpc-405ep-linux-gnu-linux-headers.log
* Emerging cross-linux-headers ...


* Log: /var/log/portage/cross-powerpc-405ep-linux-gnu-glibc.log
* Emerging cross-glibc ...

* glibc failed
* If you file a bug, please attach the following logfiles:
* /var/log/portage/cross-powerpc-405ep-linux-gnu-info.log
* /var/log/portage/cross-powerpc-405ep-linux-gnu-glibc.log

/var/log/portage/cross-powerpc-405ep-linux-gnu-glibc.log:

...

powerpc-405ep-linux-gnu-gcc -nostdlib -nostartfiles -r -o
/var/tmp/cross/powerpc-405ep-linux-gnu/portage/cross-powerpc-405ep-linux-gnu/
glibc-2.6.1/work/build-default-powerpc-405ep-linux-gnu-nptl/elf/librtld.map.o
'-Wl,-('
/var/tmp/cross/powerpc-405ep-linux-gnu/portage/cross-powerpc-405ep-linux-gnu/

glibc-2.6.1/work/build-default-powerpc-405ep-linux-gnu-nptl/elf/dl-allobjs.os
/var/tmp/cross/powerpc-405ep-linux-gnu/portage/cross-powerpc-405ep-linux-gnu/
glibc-2.6.1/work/build-default-powerpc-405ep-linux-gnu-nptl/libc_pic.a
-lgcc '-Wl,-)'
-Wl,-Map,/var/tmp/cross/powerpc-405ep-linux-gnu/portage/cross-powerpc-405ep-linux-gnu/

glibc-2.6.1/work/build-default-powerpc-405ep-linux-gnu-nptl/elf/librtld.mapT

/usr/libexec/gcc/powerpc-405ep-linux-gnu/ld: skipping incompatible
/usr/lib/gcc/powerpc-405ep-linux-gnu/4.1.2/libgcc.a when searching for
-lgcc
/usr/libexec/gcc/powerpc-405ep-linux-gnu/ld: skipping incompatible
/usr/lib/gcc/powerpc-405ep-linux-gnu/4.1.2/libgcc.a when searching for
-lgcc
/usr/libexec/gcc/powerpc-405ep-linux-gnu/ld: cannot find -lgcc
collect2: ld returned 1 exit status

...

Any ideas are welcome!

P.S.
/usr/libexec/gcc/powerpc-405ep-linux-gnu/objdump -f
/usr/lib/gcc/powerpc-405ep-linux-gnu/4.1.2/libgcc.a > objdump



P.P.S. Sorry for my English.

Aleksei.
 

Thread Tools




All times are GMT. The time now is 09:32 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org