View previous topic :: View next topic |
Author |
Message |
Chewi Developer
Joined: 01 Sep 2003 Posts: 886 Location: Edinburgh, Scotland
|
Posted: Sun Jun 20, 2004 9:24 pm Post subject: Compiling for i586 on i686 |
|
|
I need to compile some stuff for my Pentium 120 MMX on my Pentium III 750. I tried this before but it came back with "illegal instruction". I then compiled the same thing on the machine itself and it ran fine. I believe this is because gcc on the faster machine is using i686-pc-linux-gnu and not i586-pc-linux-gnu. I think it's possible to have and use both (in the same way that it's possible to cross compile for Windows) but how can I do this safely? Do you think temporarily changing my CHOST in Portage to i586-pc-linux-gnu and emerge gcc would do it? Problem is that all the stuff in i686-pc-linux-gnu would be deleted at the end of the merge. Any ideas? |
|
Back to top |
|
|
Banjer n00b
Joined: 15 May 2004 Posts: 31
|
Posted: Sun Jun 20, 2004 9:37 pm Post subject: |
|
|
If your goal is to reduce the compile-time and your machines are networked together you could take a look at distributed compiling. I use it to compile stuff for my P3 notebook. Two P4 desktops help, and they reduce the time it takes to compile.
http://www.gentoo.org/doc/en/distcc.xml |
|
Back to top |
|
|
Chewi Developer
Joined: 01 Sep 2003 Posts: 886 Location: Edinburgh, Scotland
|
Posted: Sun Jun 20, 2004 9:40 pm Post subject: |
|
|
Nah I know all about distcc. I have gcc on the host machine but I'm kinda shifting between distributions and kernels and stuff. A long story. But I'm afraid I might find myself without gcc on the host machine and need to compile something in order to get any further. It's a weird beast. No floppy drive. No CD-ROM drive. No USB ports. PCMCIA network card. Heh. |
|
Back to top |
|
|
|