Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Cross compile PPC -> x86
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
LordManta
n00b
n00b


Joined: 23 Aug 2006
Posts: 18
Location: Paris

PostPosted: Sat Nov 04, 2006 12:00 am    Post subject: Cross compile PPC -> x86 Reply with quote

Hi,

I'm looking for a way to emerge gcc targeting x86 arch on gentoo-ppc.
My idea is that I'm using qemu-i386 (which works great for me) to be able to use a code processor which is only built for x86 processor. The produced C code can be easily compiled on PPC and works well. But for some testing purpose I need to link that code with a library which is also x86 only. so I need gcc for x86 target.
Looking at the portage tree, I see cross-compilers for alpha, mips, arm, .. but nothing for x86.
Could someone tell me how to get it form portage (I don't want to recompile gcc by hand).

Thanks for help.
Back to top
View user's profile Send private message
iTux
Guru
Guru


Joined: 07 Sep 2004
Posts: 586
Location: Toronto

PostPosted: Sat Nov 04, 2006 3:41 am    Post subject: Reply with quote

You can do it with emerge:
http://dev.gentoo.org/~vapier/CROSS-COMPILE-HOWTO

But I always had to do some additional changes. You might want to look at
my guide. It might be somewhat old, never got the time to play much with
that in the last few years.
http://www.sable.mcgill.ca/~dbelan2/crossdev/crossdev-powerpc-i686.html

iTux
Back to top
View user's profile Send private message
LordManta
n00b
n00b


Joined: 23 Aug 2006
Posts: 18
Location: Paris

PostPosted: Sat Nov 04, 2006 9:43 pm    Post subject: Reply with quote

Thanks a lot for your answer. I haven't seen those links before.

In fact for me the crossdev tool has worked perfectly well for my needs. And so I was able to use tools for x86 only env with qemu and they work very well. Perhaps this could be used for many other x86 only softs. At least the performances are pretty descent a lot of better rather than full system emulation.

Thanks again !

Linux rocks !

Gentoo-Linux + MOL/OSX 10.4 + qemu, the dream team ?
If we could get wine ....
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