public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user]  USE flags for amd64 (running in 32 bit)
@ 2006-05-16 17:47 Harry Putnam
  2006-05-16 19:30 ` John Jolet
  0 siblings, 1 reply; 9+ messages in thread
From: Harry Putnam @ 2006-05-16 17:47 UTC (permalink / raw
  To: gentoo-user

I'm running 32bit gentoo on an amd athlon64 would the architeture USE
flag still be ~x86? or something else?

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user]  Re: USE flags for amd64 (running in 32 bit)
  2006-05-16 19:30 ` John Jolet
@ 2006-05-16 19:18   ` Harry Putnam
  2006-05-16 21:18     ` John Jolet
  0 siblings, 1 reply; 9+ messages in thread
From: Harry Putnam @ 2006-05-16 19:18 UTC (permalink / raw
  To: gentoo-user

John Jolet <john@jolet.net> writes:

> Harry Putnam wrote:
> 
> >I'm running 32bit gentoo on an amd athlon64 would the architeture USE
> >flag still be ~x86? or something else?
> >
> >
> k8
> -- 

Sorry to be a pest on this, but I was unable to verify this
information on a google of  "site:gentoo.org ACCEPT_KEYWORDS k8"

In fact there seems to be a fair bit of confusion on this.
I suspect my /etc/make.conf is wrong in several ways.

First let me explain:  I switched computers due to my main linux box
giving up the ghost.  I grabbed an athlon64 +3400 running winxp and
pirated it for my main gentoo desktop.

I switched over lots of stuff from the salvaged HDDs to the athlon.
Not sure now what I may have edited into /etc/make.conf.  Somehow I
still got some amd stuff in it.  probably from a 'from scratch
install' using a stage.

Anyway cutting to the chase I have this in there, I added everthing
below ALSA_CARDS I think:
==============
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-Os -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
ALSA_CARDS="via82xx"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.cs.lewisu.edu/gentoo/"
ACCEPT_KEYWORDS="~x86"
USE="samba smb mysql symlinks kde qt dvd alsa cdr emacs 
    xinerama mbox apache2 hal logrotate objc gcj sasl 
    vmmouse wacom radeon tga vesa vga via vmware nptl 
    nptlonly -ipv6 -imap -maildir  -gnome"

===============

Note that I am NOT running 64bit gentoo but 32bit gentoo on this
athlon64.

It shows architecture as athlon xp which it is not.  That is also 64
bit but from what I understand is still different than athlon64.
The xp mobos etc are cheaper, and not socket 754 I don't think.

Mine is socket 754 with K8V mobo chipset K8T800.  I'm guessing that is
where the `k8' comes from.

I've been running with above make.conf with no (noticed) problems for
about 2 mnths.  But now updating so would like to get it right.

So do you know if:
  CFLAGS="-Os -march=athlon-xp -pipe"  
is wrong?

And if I wanted to run ACCEPT_KEYWORDS="~XXX" keeping in mind I'm not
running 64bit gentoo, what would the `XXX' be?

/proc/cpuinfo below:

processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 4
model name      : AMD Athlon(tm) 64 Processor 3400+
stepping        : 8
cpu MHz         : 2255.376
cache size      : 1024 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 1
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow
bogomips        : 4516.25


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user]  USE flags for amd64 (running in 32 bit)
  2006-05-16 17:47 [gentoo-user] USE flags for amd64 (running in 32 bit) Harry Putnam
@ 2006-05-16 19:30 ` John Jolet
  2006-05-16 19:18   ` [gentoo-user] " Harry Putnam
  0 siblings, 1 reply; 9+ messages in thread
From: John Jolet @ 2006-05-16 19:30 UTC (permalink / raw
  To: gentoo-user

Harry Putnam wrote:

>I'm running 32bit gentoo on an amd athlon64 would the architeture USE
>flag still be ~x86? or something else?
>
>  
>
k8
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Re: USE flags for amd64 (running in 32 bit)
  2006-05-16 21:18     ` John Jolet
@ 2006-05-16 20:05       ` James Ausmus
  2006-05-16 20:42         ` Harry Putnam
  2006-05-16 21:14         ` Eddie Mihalow Jr
  2006-05-17  7:42       ` Boyd Stephen Smith Jr.
  1 sibling, 2 replies; 9+ messages in thread
From: James Ausmus @ 2006-05-16 20:05 UTC (permalink / raw
  To: gentoo-user

> maybe that was my misunderstading..on a brand-new opteron 64-bit...the
> architecture use flag i use is k8.  I see no real reason to run 32-bit
> gentoo on a 64-bit box...64-bit support in gentoo was why we switched
> distros when we switched to 64-bit servers.  my -march is k8 for those
> boxes.  again, that's with a 64-bit opteron...if you're running
> something else, you might need a different flag.  i believe, to your
> last question, it would still be i386.

OK, to cut short the confusion, Harry, your march setting in your
CFLAGS should be k8, and the ACCEPT_KEYWORDS should be either x86, or
~x86, depending on if you want to run stable.

HTH-

James

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* [gentoo-user]  Re: USE flags for amd64 (running in 32 bit)
  2006-05-16 20:05       ` James Ausmus
@ 2006-05-16 20:42         ` Harry Putnam
  2006-05-17  0:02           ` James Ausmus
  2006-05-16 21:14         ` Eddie Mihalow Jr
  1 sibling, 1 reply; 9+ messages in thread
From: Harry Putnam @ 2006-05-16 20:42 UTC (permalink / raw
  To: gentoo-user

"James Ausmus" <james.ausmus@gmail.com> writes:

> OK, to cut short the confusion, Harry, your march setting in your
> CFLAGS should be k8, and the ACCEPT_KEYWORDS should be either x86, or
> ~x86, depending on if you want to run stable.

Thank you James.

I was beginning to wonder if those settings were involved in the glibc
problem you were helping with in another thread.

Do you mind pointing me to the source of that answer?

Also, I'm wondering if when I change the march setting to k8 in the
mindle of an update world what that might do.

It may be a good time to do it but I wonder if I need to do anything
to already compiled updates.

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Re: USE flags for amd64 (running in 32 bit)
  2006-05-16 20:05       ` James Ausmus
  2006-05-16 20:42         ` Harry Putnam
@ 2006-05-16 21:14         ` Eddie Mihalow Jr
  1 sibling, 0 replies; 9+ messages in thread
From: Eddie Mihalow Jr @ 2006-05-16 21:14 UTC (permalink / raw
  To: gentoo-user

James Ausmus wrote:
>> maybe that was my misunderstading..on a brand-new opteron 64-bit...the
>> architecture use flag i use is k8.  I see no real reason to run 32-bit
>> gentoo on a 64-bit box...64-bit support in gentoo was why we switched
>> distros when we switched to 64-bit servers.  my -march is k8 for those
>> boxes.  again, that's with a 64-bit opteron...if you're running
>> something else, you might need a different flag.  i believe, to your
>> last question, it would still be i386.
> 
> OK, to cut short the confusion, Harry, your march setting in your
> CFLAGS should be k8, and the ACCEPT_KEYWORDS should be either x86, or
> ~x86, depending on if you want to run stable.
> 
> HTH-
> 
> James
> 
I am of the same type of question although I'm running a new Pentium D 
940 dual core with EM64T. Looking through the gcc options it said I 
should run as a nocona. Is this true? Any help will be appreciated.

Regards,

-- 
Edward A Mihalow Jr
Gentoo! Linux
Registered Linux User#225662
New Orleans,LA
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user]  Re: USE flags for amd64 (running in 32 bit)
  2006-05-16 19:18   ` [gentoo-user] " Harry Putnam
@ 2006-05-16 21:18     ` John Jolet
  2006-05-16 20:05       ` James Ausmus
  2006-05-17  7:42       ` Boyd Stephen Smith Jr.
  0 siblings, 2 replies; 9+ messages in thread
From: John Jolet @ 2006-05-16 21:18 UTC (permalink / raw
  To: gentoo-user

Harry Putnam wrote:

>John Jolet <john@jolet.net> writes:
>
>  
>
>>Harry Putnam wrote:
>>
>>    
>>
>>>I'm running 32bit gentoo on an amd athlon64 would the architeture USE
>>>flag still be ~x86? or something else?
>>>
>>>
>>>      
>>>
>>k8
>>-- 
>>    
>>
>
>Sorry to be a pest on this, but I was unable to verify this
>information on a google of  "site:gentoo.org ACCEPT_KEYWORDS k8"
>
>In fact there seems to be a fair bit of confusion on this.
>I suspect my /etc/make.conf is wrong in several ways.
>
>First let me explain:  I switched computers due to my main linux box
>giving up the ghost.  I grabbed an athlon64 +3400 running winxp and
>pirated it for my main gentoo desktop.
>
>I switched over lots of stuff from the salvaged HDDs to the athlon.
>Not sure now what I may have edited into /etc/make.conf.  Somehow I
>still got some amd stuff in it.  probably from a 'from scratch
>install' using a stage.
>
>Anyway cutting to the chase I have this in there, I added everthing
>below ALSA_CARDS I think:
>==============
># These settings were set by the catalyst build script that automatically built this stage
># Please consult /etc/make.conf.example for a more detailed example
>CFLAGS="-Os -march=athlon-xp -pipe"
>CHOST="i686-pc-linux-gnu"
>CXXFLAGS="${CFLAGS}"
>ALSA_CARDS="via82xx"
>GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.cs.lewisu.edu/gentoo/"
>ACCEPT_KEYWORDS="~x86"
>USE="samba smb mysql symlinks kde qt dvd alsa cdr emacs 
>    xinerama mbox apache2 hal logrotate objc gcj sasl 
>    vmmouse wacom radeon tga vesa vga via vmware nptl 
>    nptlonly -ipv6 -imap -maildir  -gnome"
>
>===============
>
>Note that I am NOT running 64bit gentoo but 32bit gentoo on this
>athlon64.
>
>It shows architecture as athlon xp which it is not.  That is also 64
>bit but from what I understand is still different than athlon64.
>The xp mobos etc are cheaper, and not socket 754 I don't think.
>
>Mine is socket 754 with K8V mobo chipset K8T800.  I'm guessing that is
>where the `k8' comes from.
>
>I've been running with above make.conf with no (noticed) problems for
>about 2 mnths.  But now updating so would like to get it right.
>
>So do you know if:
>  CFLAGS="-Os -march=athlon-xp -pipe"  
>is wrong?
>
>And if I wanted to run ACCEPT_KEYWORDS="~XXX" keeping in mind I'm not
>running 64bit gentoo, what would the `XXX' be?
>
>  
>
maybe that was my misunderstading..on a brand-new opteron 64-bit...the 
architecture use flag i use is k8.  I see no real reason to run 32-bit 
gentoo on a 64-bit box...64-bit support in gentoo was why we switched 
distros when we switched to 64-bit servers.  my -march is k8 for those 
boxes.  again, that's with a 64-bit opteron...if you're running 
something else, you might need a different flag.  i believe, to your 
last question, it would still be i386.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user] Re: USE flags for amd64 (running in 32 bit)
  2006-05-16 20:42         ` Harry Putnam
@ 2006-05-17  0:02           ` James Ausmus
  0 siblings, 0 replies; 9+ messages in thread
From: James Ausmus @ 2006-05-17  0:02 UTC (permalink / raw
  To: gentoo-user

On 16 May 2006 15:42:40 -0500, Harry Putnam <reader@newsguy.com> wrote:
> "James Ausmus" <james.ausmus@gmail.com> writes:
>
> > OK, to cut short the confusion, Harry, your march setting in your
> > CFLAGS should be k8, and the ACCEPT_KEYWORDS should be either x86, or
> > ~x86, depending on if you want to run stable.
>
> Thank you James.
>
> I was beginning to wonder if those settings were involved in the glibc
> problem you were helping with in another thread.
>
> Do you mind pointing me to the source of that answer?
http://gentoo-wiki.com/Safe_Cflags#Opteron.2FAthlon64_.28AMD.29
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html

The Safe_Cflags page says that march=athlon64 is the correct one,
however, athlon64 and k8 are identical as far as gcc is concerned, and
it seems to me to be more accepted to use march=k8. (And please, if
I'm wrong about (k8==athlon64), someone please let me know, 'cause I'm
also running AMD64. :)  )

Another handy gentoo-wiki.com page:
http://gentoo-wiki.com/CFLAGS


>
> Also, I'm wondering if when I change the march setting to k8 in the
> mindle of an update world what that might do.
>
I don't know - you might want to set it to k8, then do an emerge -e
system && emerge -e world, but it also might be safe to let it just
change packages over to march=k8 as you upgrade them - anyone else
know if it's ok to run "mixed" march's?


> It may be a good time to do it but I wonder if I need to do anything
> to already compiled updates.
>
> --
> gentoo-user@gentoo.org mailing list
>
>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [gentoo-user]  Re: USE flags for amd64 (running in 32 bit)
  2006-05-16 21:18     ` John Jolet
  2006-05-16 20:05       ` James Ausmus
@ 2006-05-17  7:42       ` Boyd Stephen Smith Jr.
  1 sibling, 0 replies; 9+ messages in thread
From: Boyd Stephen Smith Jr. @ 2006-05-17  7:42 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1038 bytes --]

On Tuesday 16 May 2006 16:18, John Jolet <john@jolet.net> wrote about 'Re: 
[gentoo-user]  Re: USE flags for amd64 (running in 32 bit)':
> maybe that was my misunderstading..on a brand-new opteron 64-bit...the
> architecture use flag i use is k8.  I see no real reason to run 32-bit
> gentoo on a 64-bit box...64-bit support in gentoo was why we switched
> distros when we switched to 64-bit servers.  my -march is k8 for those
> boxes.

If you are using an honest-to-goodness Opteron, and a relatively recent 
gcc, you should be using -march=opteron, as I am, unless you build binary 
packages to install on non-Opteron systems.

Opteron = MMX, MMX2, SSE, SSE2, SSE3, 3dNow!, 3dNow! <something else>, plus 
scheduling optimizations for Opteron and maybe some other things I'm not 
remembering. 

-- 
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2006-05-17  7:59 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-16 17:47 [gentoo-user] USE flags for amd64 (running in 32 bit) Harry Putnam
2006-05-16 19:30 ` John Jolet
2006-05-16 19:18   ` [gentoo-user] " Harry Putnam
2006-05-16 21:18     ` John Jolet
2006-05-16 20:05       ` James Ausmus
2006-05-16 20:42         ` Harry Putnam
2006-05-17  0:02           ` James Ausmus
2006-05-16 21:14         ` Eddie Mihalow Jr
2006-05-17  7:42       ` Boyd Stephen Smith Jr.

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox