Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
crossdev has issues with host ppc target mipsel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sun Dec 02, 2007 1:17 am    Post subject: crossdev has issues with host ppc target mipsel Reply with quote

hi,
with host=ppc, has somebody had successfully crossdeved targeting to mipsel ?
i had no success these 2 ways

(1) crossdev --stable --target mipsel-linux-uclibc
(2) crossdev --stage3 --stable --target mipsel-unknown-linux-gnu

*** used
host gcc=4.1.2, binutils 2.17
target gcc=4.1.1, binutils 2.17, uclibc 0.9.27

i know somebody had success targeting the whole gentoo stage3 to mipsel
the use x86 as host. But from rumors on irc it seems somebody has success with ppc as host

so if somebody has success, could report what he did ?
what compiler/binutils/uclibc/glibc version he used ?
what he modified/hacked ?


thank you a lot
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sun Dec 02, 2007 1:19 am    Post subject: Reply with quote

i'm trying again, i will report detailed error logs as soon as the crossdev ends
also i'm filling a bug
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Sun Dec 02, 2007 2:52 pm    Post subject: Reply with quote

Code:

uclibc_endian() {
   # XXX: this wont work for a toolchain which is bi-endian, but we
   #      dont have any such thing at the moment, so not a big deal
   #touch "${T}"/endian.s
   #$(tc-getAS) "${T}"/endian.s -o "${T}"/endian.o
   #case $(file "${T}"/endian.o) in
   #   *" MSB "*) echo "big";;
   #   *" LSB "*) echo "little";;
   #   *)         echo "NFC";;
   #esac
   #rm -f "${T}"/endian.{s,o}

        # modified for targeting to mipsel that is little endian
        echo "little"
}



i modified uclibc-0.9.28.3.ebuild this way: it has been forced to little endian
i wander if there is any intelligent patch to make the ebuild able to understand the endianess of the target ....


any idea ?
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Mon Dec 03, 2007 10:37 am    Post subject: Reply with quote

this fails(at the gcc stage, or at the libc stage)
Code:
crossdev --stable --target mipsel-unknown-linux-gnu

this has success
Code:
crossdev -t mipsel-linux-gnu


i wander why

using the lastone version of uclibc, and patching the uclibc 0.9.28.3.ebuild makes crossdev able to report success, but, if tested in cross compiling a real application, it reports failure

success: mipsel-linux-gnu-gcc -static hello.c -o hello
fails: mipsel-linux-uclibc-gcc -static hello.c -o hello
Quote:
/usr/libexec/gcc/mipsel-linux-uclibc/ld: crt1.o: No such file: No such file or directory
collect2: ld returned 1 exit status


i wander where the crt1.o (the C RunTime object) has this issue ...
Back to top
View user's profile Send private message
ddc
Guru
Guru


Joined: 29 Aug 2006
Posts: 527

PostPosted: Tue Dec 04, 2007 9:26 am    Post subject: Reply with quote

using --gcc 3.4.6 has no success, the emerge stops reporting error about the "not understood EL flags"

this means the compiler crosscompilered is not able to understood little endian

the issue happens on x86 box and on a ppc box

any idea ?

is anybody using crossdev with success ?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum