Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] x86 on amd64
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
OtonVM
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2005
Posts: 103
Location: Slovenia

PostPosted: Thu Jun 08, 2006 6:02 pm    Post subject: [SOLVED] x86 on amd64 Reply with quote

Hello!

A really quick yes/no question: Can I install a pure 32bit system with the amd64 livecd?

Thank you!


Last edited by OtonVM on Thu Jun 08, 2006 6:25 pm; edited 1 time in total
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Thu Jun 08, 2006 6:05 pm    Post subject: Reply with quote

yes! do as if you had an athlon-xp.
Back to top
View user's profile Send private message
ksp7498
Apprentice
Apprentice


Joined: 08 Jun 2006
Posts: 225
Location: North Carolina - US

PostPosted: Thu Jun 08, 2006 6:12 pm    Post subject: Reply with quote

^ yeah just do it as an athlon xp and add on sse2 support. -march=athlon-xp -msse2 would work great.
_________________
“Isn’t it enough to see that a garden is beautiful without having to believe that there are fairies at the bottom of it too?”
– Douglas Adams
Back to top
View user's profile Send private message
OtonVM
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2005
Posts: 103
Location: Slovenia

PostPosted: Thu Jun 08, 2006 6:24 pm    Post subject: Reply with quote

Ok, thank you both! It's just that the i686 livecd fails to detect stuff whareas amd64 works...
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Fri Jun 09, 2006 9:06 am    Post subject: Reply with quote

ksp7498 wrote:
^ yeah just do it as an athlon xp and add on sse2 support. -march=athlon-xp -msse2 would work great.


and -msse3 if you have the pni flag in /proc/cpuinfo
Back to top
View user's profile Send private message
LinuxMan
Tux's lil' helper
Tux's lil' helper


Joined: 18 Sep 2004
Posts: 83
Location: Ukraine / Ternopil

PostPosted: Fri Jun 09, 2006 10:44 am    Post subject: Reply with quote

No. Need -march=athlon64 -msse3 . With these CFLAGS build 32bit executable but with optimizations for athlon64
_________________
SORRY FOR MY VERY VERY VERY VERY BAD ENGLISH
Back to top
View user's profile Send private message
Enlight
Advocate
Advocate


Joined: 28 Oct 2004
Posts: 3519
Location: Alsace (France)

PostPosted: Fri Jun 09, 2006 11:49 am    Post subject: Reply with quote

LinuxMan wrote:
No. Need -march=athlon64 -msse3 . With these CFLAGS build 32bit executable but with optimizations for athlon64


you're right as "-march=athlon64" is like -"mtune=athlon64 -mmmx msse{,2,3} -m3dnow{,ext}"

Now I fscking wonder if "-mtune={athlon-xp,athlon64}" are similar or if alignements variables changes, and in this case, wich one works best for a 32 bit install (or multilib with -m32).
Back to top
View user's profile Send private message
OtonVM
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2005
Posts: 103
Location: Slovenia

PostPosted: Fri Jun 09, 2006 1:41 pm    Post subject: Reply with quote

For now I put CFLAGS="-O2 -march=athlon-xp -pipe -msse2 -msse3" and I'm pretty happy with them. I have no need for all the optimization on this world. This should be enough and stable. I found many things that didn't compile with athlon64 and I was getting sick of it. That's why I'm doing this in the first place.
Back to top
View user's profile Send private message
CaptainDangeax
n00b
n00b


Joined: 15 Mar 2006
Posts: 21
Location: Rennes, France

PostPosted: Sun Jun 11, 2006 5:57 pm    Post subject: Reply with quote

If you're using a 32bits kernel, DON'T set march=k8 or march=athlon64, you will generate 64bits progs and they won't run. As said before, the best is -march=athlon-xp with the corrects switches.
_________________
the map is not the territory.
Military plans are at best 50% reliable; if more, war would only have winners.
Athlon64 X2 4200+, Gigabyte s969 NForce3 Mainboard, 1GB Ram, NVidia 6600 GT 128MB graphic card, Gentoo 2005.1 for X86_64


Last edited by CaptainDangeax on Sun Jun 11, 2006 6:30 pm; edited 1 time in total
Back to top
View user's profile Send private message
OtonVM
Tux's lil' helper
Tux's lil' helper


Joined: 30 Dec 2005
Posts: 103
Location: Slovenia

PostPosted: Sun Jun 11, 2006 6:04 pm    Post subject: Reply with quote

Exactly! :D
Back to top
View user's profile Send private message
htranou
Tux's lil' helper
Tux's lil' helper


Joined: 08 May 2006
Posts: 96

PostPosted: Sun Jun 11, 2006 7:34 pm    Post subject: Reply with quote

CaptainDangeax wrote:
If you're using a 32bits kernel, DON'T set march=k8 or march=athlon64, you will generate 64bits progs and they won't run. As said before, the best is -march=athlon-xp with the corrects switches.


Actually, you can. If GCC was built to build for i686 (or whatever x86 you put), it will only build those. I have a 32bit system with march=athlon64, and it works fine.

Though, athlon64 was only introduced in GCC 3.4, but since 3.4 is now in the stable tree...
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo 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