Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Distcc:cross-compiling necessary between nocona and pentium?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gentoome
Tux's lil' helper
Tux's lil' helper


Joined: 18 Jul 2005
Posts: 78

PostPosted: Fri Oct 26, 2007 10:22 am    Post subject: Distcc:cross-compiling necessary between nocona and pentium? Reply with quote

I have a quick distcc question, I am getting a bit confused as to what is considered cross-compiling. On one machine I have a Core 2 Duo, so that make.conf is configured with --march=nocona. I want that computer to help an old PII-450 emerge its system, which is --march=pentium2. Do I need to follow instructions as if those computers were as different as x86 and ppc, or is the fact that they are both x86 sufficient to ensure compatibility regardless of --march ? Both computers are using gcc-4

Thanks in advance,

John
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9895
Location: almost Mile High in the USA

PostPosted: Mon Oct 29, 2007 7:42 pm    Post subject: Reply with quote

for the most part it seems gcc that's compiled with nocona support will also build other x86 binaries just fine, as long as you supply the right -marchitecture when building (and for the most part, em64t procs can run i686 binaries just fine without modification).

I did notice that the standard 32-bit gcc build does not, however, build 64-bit binaries (I was trying to get my 32-bit c2d install to distcc-help build for my Prescott em64t-build.)

Technically, cross-compiling is whenever the machine compiling is building binaries for another system of a different architecture. While using your P2 to build em64t is clearly crosscompiling, the other way around is gray area since the em64t can run p2 binaries :o

hmm...

http://gentoo-wiki.com/HOWTO_Cross_Compile
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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