Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Other Things Gentoo
  • Search

-march=pentium4 issue

Still need help with Gentoo, and your question doesn't fit in the above forums? Here is your last bastion of hope.
Post Reply
Advanced search
39 posts
  • Previous
  • 1
  • 2
Author
Message
mapr
n00b
n00b
User avatar
Posts: 22
Joined: Thu Dec 05, 2002 12:05 pm
Location: Germany

  • Quote

Post by mapr » Tue May 20, 2003 8:14 am

Could it be enough to simply compile the glibc without optimization (' -O ') ? Or does that simply include a ' -mno-sse2 ' in addition to some other -mno*some-terrific-instruction-set* ??
Thanks
Mario
Top
bsolar
Bodhisattva
Bodhisattva
User avatar
Posts: 2764
Joined: Sun Jan 12, 2003 5:14 pm

  • Quote

Post by bsolar » Tue May 20, 2003 9:33 am

mapr wrote:Could it be enough to simply compile the glibc without optimization (' -O ') ? Or does that simply include a ' -mno-sse2 ' in addition to some other -mno*some-terrific-instruction-set* ??
Thanks
Mario
The culprit was -march=pentium4.

-mno-sse2 disables sse2, thus solving the problem but you have to pay attention since the flag-o-matic might remove it from the CFLAGS for some packages.

If you don't have the corrected gcc yet I suggest you to use -march=pentium3 -mcpu=pentium4. Then you can use the options you want but -msse2.
I may not agree with what you say, but I'll defend to the death your right to say it.
Top
jo_vermeulen
n00b
n00b
User avatar
Posts: 64
Joined: Thu Aug 21, 2003 8:30 pm

  • Quote

Post by jo_vermeulen » Mon Sep 01, 2003 11:47 am

subodh wrote:Yes this bug has been resolved in gcc-3.2.3 and gcc-3.3. gcc-3.3 is available in portage (hard masked).
Can you tell me where you found that information?
A reference to the gcc Changelog would be great. I have compiled my entire system using -march=pentium4 and would like to know if I have to recompile some packages.

The only thing I saw in the gcc 3.2.3 Changelog concerning -march=pentium4 was this:
IA-32

* Fixed a number of bugs in SSE and MMX intrinsics.
* Fixed common compiler crashes with SSE instruction set enabled
(implied by -march=pentium3, pentium4, athlon-xp)
By the way, I passed the python test.

Thanks in advance,

Jo Vermeulen[/quote]
Top
m0sk
n00b
n00b
User avatar
Posts: 39
Joined: Fri Apr 18, 2003 11:45 pm
Location: Belgium

  • Quote

Post by m0sk » Mon Sep 01, 2003 2:19 pm

jo_vermeulen wrote:
subodh wrote:Yes this bug has been resolved in gcc-3.2.3 and gcc-3.3
Can you tell me where you found that information?
It is mentioned in bugzilla, check here and here.
Top
Paule
n00b
n00b
User avatar
Posts: 10
Joined: Wed Jun 11, 2003 11:01 am

  • Quote

Post by Paule » Mon Sep 01, 2003 2:36 pm

I also had the same problem untill I upgraded to gcc 3.3.1 using these flags....

CFLAGS="-march=pentium4 -O3 -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe"

I recompiled my whole system with "emerge -e world". Since I have recompiled, My system is noticably faster and EVERYTHING works perfectly. Hope this helps.


Paul

__________________________________________________________________________

- Man is not judged by his problems, but by the way in which he solves them.
Top
wishkah
Guru
Guru
User avatar
Posts: 441
Joined: Fri May 09, 2003 6:54 am
Location: de

  • Quote

Post by wishkah » Mon Sep 01, 2003 3:31 pm

Compiled my whole system with --ffast-math -march=pentium4 -O3 and the above python-int-cast line works (doesn't give an error). But with 3.2.3 it's expected I guess...

BTW, give --ffast-math a try, it really increases performance (compiled the whole sys with it, no prob, but it MIGHT cause probs when used with apps that rely on very precise calculations)
if only I could fill my heart with love...
Top
jo_vermeulen
n00b
n00b
User avatar
Posts: 64
Joined: Thu Aug 21, 2003 8:30 pm

  • Quote

Post by jo_vermeulen » Mon Sep 01, 2003 5:08 pm

Paule wrote:I also had the same problem untill I upgraded to gcc 3.3.1 using these flags....

CFLAGS="-march=pentium4 -O3 -mmmx -msse -msse2 -mfpmath=sse -funroll-loops -fprefetch-loop-arrays -pipe"

I recompiled my whole system with "emerge -e world". Since I have recompiled, My system is noticably faster and EVERYTHING works perfectly. Hope this helps.
But how did you upgrade to gcc 3.3.1?

First set the CFLAGS to pentium3, emerged gcc 3.3.1, re-emerged gcc 3.3.1 and compiled it with the pentium4 settings on the new gcc 3.3.1?

And then recompiled your entire system?

Thanks,

Jo Vermeulen
Top
Paule
n00b
n00b
User avatar
Posts: 10
Joined: Wed Jun 11, 2003 11:01 am

  • Quote

Post by Paule » Tue Sep 02, 2003 1:36 am

jo_vermeulen

"But how did you upgrade to gcc 3.3.1?

First set the CFLAGS to pentium3, emerged gcc 3.3.1, re-emerged gcc 3.3.1 and compiled it with the pentium4 settings on the new gcc 3.3.1?

And then recompiled your entire system?"
Yes.. That's exactly how I did it. Just let it run overnight.
Top
Beetle B.
Guru
Guru
Posts: 530
Joined: Sat Mar 01, 2003 7:09 am
Contact:
Contact Beetle B.
Website

  • Quote

Post by Beetle B. » Tue Sep 02, 2003 7:39 pm

I'll be getting DSL in a few days, so I'll give this a go (virtually all my software was compiled with -march=pentium4, except some of the basic system ones).

I'm worried that this may create plenty of configuration files that "need updating" - does it? It would be a grand pain if it does.

Since most of my software was compiled with -march=pentium4, would it be the same if I just recompiled those programs that were compiled with -march=pentium3?

TIA,
Beetle B.

Please update the table of equivalents.
A Firefox guide.
Top
mexicangeek
n00b
n00b
Posts: 10
Joined: Fri May 09, 2003 7:19 pm
Contact:
Contact mexicangeek
Website

why wasn't the warning about the pentum4 in make.conf?

  • Quote

Post by mexicangeek » Wed Sep 03, 2003 4:34 am

I installed my entire system with the PENTIUM4 setting, because there wasn't a warning in /etc/make.conf anymore. (As opposed to the previous RC_3 or 4 install). It wasn't until today when I upgraded protage that I noticed the addition to the make.conf warning of this problem. I think it would be nice to get a recomended solution and explaination from the gentoo team. Please don't misunderstand, I'm not upset about any mishap about the warning no longer being present in make.conf, but I would just like a recomended solution. I have seen posts in this thread about doing "emerge -e world". I have also seen posts state that there is no problem at all with using pentium4. I would like to know what to do, before I go through the process of re-installing my OS again.

P.S. Hey gentoo team...you guys rock! :)
Top
jo_vermeulen
n00b
n00b
User avatar
Posts: 64
Joined: Thu Aug 21, 2003 8:30 pm

Re: why wasn't the warning about the pentum4 in make.conf?

  • Quote

Post by jo_vermeulen » Wed Sep 03, 2003 7:28 am

mexicangeek wrote:Please don't misunderstand, I'm not upset about any mishap about the warning no longer being present in make.conf, but I would just like a recomended solution. I have seen posts in this thread about doing "emerge -e world". I have also seen posts state that there is no problem at all with using pentium4. I would like to know what to do, before I go through the process of re-installing my OS again.
I completely agree with you!

Kind regards,

Jo Vermeulen
Top
totopo
n00b
n00b
User avatar
Posts: 73
Joined: Wed Sep 29, 2004 8:43 pm
Location: Austria

Experience with this?

  • Quote

Post by totopo » Wed Sep 29, 2004 8:45 pm

Does someone have expirience with these settings?

http://www.freehackers.org/gentoo/gccfl ... _gcc3.html


Regards
Top
virtual
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 132
Joined: Thu Aug 12, 2004 10:47 am
Location: Bergen

  • Quote

Post by virtual » Wed Sep 29, 2004 11:21 pm

:D Hi,
totopo

Yes those flags seem fine on my pentium 4 3.2GHz HT

But I switch between -Os and -O3 depending on what I compile. I compiled my system (emerge system) with -O3 settings to get the fastest code, accepting an increase in memory usage.

Then I switched to -Os when compiling the various kde packages and openoffice, here I want the executable to be as small as possible and I still get most of the -O2 optimizations, but not the ones that would increase my memory usage at runtime. I do this because kde apps. and openoffice are usualy just waiting for me to type something in a edit box or waiting for me to push a button (of course if I have long and complex fourmulas to calculate in the spreadsheet of openoffice this may change). My main concern here is startup time, I have also prelinked my whole system.

I am uncertain though if "-fomit-frame-pointer" is nessecary as it is implied by the -O flags anyway, but this may be a way to force it on even if the compiler disagrees when only using a -O flag.
The roots of education are bitter but it's fruit is sweet.
Top
totopo
n00b
n00b
User avatar
Posts: 73
Joined: Wed Sep 29, 2004 8:43 pm
Location: Austria

Sempron

  • Quote

Post by totopo » Tue Apr 19, 2005 7:27 pm

Hello, an AMD Sempron processor uses the same flags as AMD XP processor?

or which one should I use?

CHOST="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=athlon-xp -O3 -pipe -fomit-frame-pointer"


Regards

totopo
Top
Post Reply

39 posts
  • Previous
  • 1
  • 2

Return to “Other Things Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic