Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing Gentoo 2004.3: Stage 1 NPTL on a Stage 3 Tarball
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3 ... 10, 11, 12 ... 16, 17, 18  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Mon Feb 14, 2005 9:59 pm    Post subject: Reply with quote

nightmorph wrote:
Oh, and I think revising an earlier part of your guide might be worth consideration in this regard. When it comes time to enable the use of a ~testing gcc, you rightfully point out that adding ~x86 to accept_keywords is unnecessary. You instead offer this solution, an update to package.keywords:
Code:
# cat /etc/portage/package.keywords

sys-devel/gcc ~x86
sys-devel/gcc-config ~x86
sys-libs/libstdc++-v3 ~x86
sys-libs/glibc ~x86


However, wouldn't the next emerge --update --deep world (or system; I can't remember which off the top of my head) actually force an upgrade to the highest version of an unstable gcc? i.e., users would find themselves with 3.4.3.20050110 in their toolchain instead of 3.4.3 or 3.4.3-r1.


well, yes. if you read backward into the thread (page 4), i had thought about addressing the topic of package masking, but i had decided not to publish the tutorial i had written about it. the Stage 1/3 Guide had already become a n00b magnet, and by writing it i had already fallen victim to continuous onslaught of requests for assistance from people who were so inexperienced that they really didn't understand the basis for rebuilding the toolkit and shouldn't have followed this advanced installation method. it appeared that because so many people were having problems understanding the concepts in the guide, i thought it best to avoid opening the can of worms related to package masking and the maintenance of toolkit upgrades. although i had already written a tutorial both in BBS code and as a PDF, i decided not to publish it, for fear of the support requests that would follow.

the subject of package masking and proper toolkit upgrades is something that i decided to leave out of the guide intentionally. my idea on this was that people with the sophistication to master the subject could handle these issues on their own, and that people who couldn't handle package masking on their own shouldn't be spoon fed to the point that they are encouraged to follow a method that takes them in over their heads.

much to my delight, heilvc chose to address this topic by developing on his emerge wrapper for upgrading the toolkit. that project is truly outstanding and i would recommend taking a look at it if you haven't done so already. the project has taken on a life of its own, and compliments this guide very well. in the big scheme of things, this guide is about installing gentoo, and heil's wrapper is about maintaining it.

nightmorph wrote:
At first glance, though, by not specifying a particular version, it seems like that opens the door to unexpected and unwanted upgrades.

yes and no. it all depends upon what the user decides to type at his keyboard. IMHO, the commands like "emerge -uD system" and "emerge -uD world" amount to playing russian roulette. only developers (who have to continually test everything) and n00bs (who are f00lish enough to upgrade everything) would consider using such an apporoach. a rational approach to rebuilding/updating your system involves looking at the contents of the proposed emerge and making intelligent decisions. portage is actually quite stupid in this regard, and doesn't do anything to help you. heil's wrapper is deisgned assist in that regard, automating the process that an intelligent/experienced gentoo user would follow.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
djpharoah
Apprentice
Apprentice


Joined: 24 Nov 2004
Posts: 186
Location: Irvine, California USA

PostPosted: Mon Feb 14, 2005 10:06 pm    Post subject: Reply with quote

i cant wait for this setup to work..its being going on for the past 2 days on my P3M-700 in my ibm laptop..

wow..from what im hearring this setup is definitely the fastest...

good work bob

btw how do i get the html link in my signature pointing to this thread like everyone has?


Last edited by djpharoah on Mon Feb 14, 2005 10:07 pm; edited 1 time in total
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Mon Feb 14, 2005 10:07 pm    Post subject: Reply with quote

--

Last edited by 96140 on Fri Sep 13, 2013 9:39 am; edited 2 times in total
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Mon Feb 14, 2005 10:23 pm    Post subject: Reply with quote

Lucifeer wrote:
Thats a better explanation. I just didn't understand it the way he put it wich is why I had to ask what he meant, instead of him getting angry for no reason at all.

this guide is written in english. i have written it under the assumption that anyone who decides to use it has sufficient command of the english language to be able to use it effectively. i don't think that such an assumption is too presumptive to make, but i guess i could be wrong on that. :oops:

in your posts on this topic, you have not specified where you live, and the location field in your user profile is blank. in addition, you have not bothered to tell anyone that you do not speak english as your first language. it is impossible for anyone to know that a language barrier may exist if you do not tell anyone.

if a language barrier has caused a problem, i apologize for it. i was assuming that because you had chosen to follow a guide written in english, that you knew enough english to follow it. if you don't know enough english to follow it, maybe it would be helpful to either: 1) have someone else who understands english a bit better help you along, or 2) tell us about the lanugage barrier.

regardless of the "language barrier," it is evident that you read english well enough to have gotten through the entire installation guide and to be conversational in this forum. this implies that you also understood the repeated warnings about posting support requests in this forum. if you speak english well enough to get as far as you did in performing the installation, playing the language card won't cut it as an excuse for posting support requests here. i got angry with you for the same reason that i get angry with everyone else who acts as if they are exempt from the rules that everyone else is good enough to follow.

i hate to have to play the role of the bad guy, but i have to do it to keep this thread under control. if i weren't such a hardass about support requests, this thread would be two or three times as long as it is now, with no difference in the total amount of relevant content.

when a user bloats this thread with an entire page of irrelevant material, i always ask that they remove their off-topic posts as a courtesty to the other users who are trying to follow the guide. if you would be good enough to delete your off-topic posts, nightmorph and i could follow in doing so. this would make the thread easier to follow for everyone else.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Lucifeer
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2004
Posts: 110
Location: Sweden

PostPosted: Mon Feb 14, 2005 10:37 pm    Post subject: Reply with quote

Bob P wrote:
this guide is written in english. i have written it under the assumption that anyone who decides to use it has sufficient command of the english language to be able to use it effectively. i don't think that such an assumption is too presumptive to make, but i guess i could be wrong on that. :oops:
Bah please do give up, I understood the guide. I did not however understand the reason why you complained about what I wrote.
I did ask about the thing I did not understand but then you had to go into bastard-mode forcing me to defend myself instead

Instead of trying to act as an elitist bastard you could have avoided this by simply explaining what you meant in the first message or simply ignored complaining at all as you had no reason for it and I had no intention of writing anymore in this thread. I only wrote in the first place to make it as a comment about this guide and how it went for me. I thought that was the reason for this forum being open for discussion and not closed
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Mon Feb 14, 2005 11:08 pm    Post subject: Reply with quote

Lucifeer wrote:
Bob P wrote:
this guide is written in english. i have written it under the assumption that anyone who decides to use it has sufficient command of the english language to be able to use it effectively. i don't think that such an assumption is too presumptive to make, but i guess i could be wrong on that. :oops:
Bah please do give up, I understood the guide. I did not however understand the reason why you complained about what I wrote.
I did ask about the thing I did not understand but then you had to go into bastard-mode forcing me to defend myself instead

Instead of trying to act as an elitist bastard you could have avoided this by simply explaining what you meant in the first message or simply ignored complaining at all as you had no reason for it and I had no intention of writing anymore in this thread. I only wrote in the first place to make it as a comment about this guide and how it went for me. I thought that was the reason for this forum being open for discussion and not closed

if you do not appreciate my efforts in writing this guide, please send your flames to me via private messages. they're not helpful to anyone else when you post them here.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 790
Location: under a car or on top of a keyboard

PostPosted: Mon Feb 14, 2005 11:35 pm    Post subject: on CFLAGS Reply with quote

I never use O3. It is slower than O2 in terms of interactivity because it makes things too BIG. O3 is only good on systems with TONS of RAM (1GB or more).

Recently, I have been using Os and enabling everything else manually and there are issues. When I replaced the massive string of flags that should = O2, the problems go away.

This means a lot of developers are simple looking for Ox and replacing it. if you want to build the system on edge, try individual package.cflags and enabling them individually. This also gives you some extra granularity when troubleshooting a problem. some cflags are commonly repeat offenders and should be avoided at all costs if you like your hair. -ffast-math for example.
Back to top
View user's profile Send private message
zbindere
Guru
Guru


Joined: 27 May 2004
Posts: 356
Location: Switzerland

PostPosted: Thu Feb 17, 2005 7:39 am    Post subject: Reply with quote

GREAT!!!!
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Thu Feb 17, 2005 10:03 am    Post subject: Reply with quote

--

Last edited by 96140 on Fri Sep 13, 2013 9:40 am; edited 1 time in total
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Thu Feb 17, 2005 10:18 am    Post subject: Reply with quote

nightmorph wrote:
I have two questions for you, though, just to ease my peace of mind. First, in step 9.4.3, I'm supposed to download a .xpm image for grub. That's all well and good (I'm a big fan of grub/bootsplash), but once the file is downloaded, I'm at a loss as to what to do with it. The only time I've ever had to manually untar &/or move a file is during an initial install process; after that, I use the automation of Gnome's File-Roller. I don't know what directory (or what the commands are) to put it in so that I can use it.

Just make sure the file is in /boot/grub/ and then insert the "splashimage" line into grub.conf according to the example.
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Thu Feb 17, 2005 11:17 am    Post subject: Reply with quote

--

Last edited by 96140 on Fri Sep 13, 2013 9:40 am; edited 1 time in total
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 2915
Location: Singapore

PostPosted: Thu Feb 17, 2005 11:36 am    Post subject: Reply with quote

nightmorph wrote:
Ahhh, the light dawns. I just took another look at the directions: in step 9.4.1 i cd to /boot/grub, where I stay for quite awhile. I take it then that using wget automatically downloads the file to the directory I'm currently working in? And am I further right in assuming that grubsplash automatically takes care of the .gz at boot? And that I don't need to gunzip it or whatever; it only has to be in the /boot/grub directory.

Yes to all 3 questions. :-)
_________________
Murphy's Law of Gentoo installation: If a compile can fail, it will.

MacGillicuddy's Corollary: At the most inopportune time.

Please search and read the FAQs before posting.
Back to top
View user's profile Send private message
zbindere
Guru
Guru


Joined: 27 May 2004
Posts: 356
Location: Switzerland

PostPosted: Thu Feb 17, 2005 12:17 pm    Post subject: Reply with quote

Again I have to say this tutorial is great.

About the CFLAGS. I think they are OK. I only changed O3 to O2. Everything compiled flawlessly.

About performance: That stuff gives really an immense performance boost. Why buy new hardware :) I am really thrillled. Because you can read in the forums
a lot about performance improvement. Only a few result in a performace boost that you can feel.
From my experience I can say the following things give a big performance improvement:
1. Your guide: CFLAGS and NPTL
2. Reiserfs (at least for the portage tree, rsync is at least 20-30% faster than with ext3)

Now I am looking for a good hdparm tuning guide. Disk is right now the only bottleneck I have.
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Thu Feb 17, 2005 8:11 pm    Post subject: Reply with quote

nightmorph wrote:
First, in step 9.4.3, I'm supposed to download a .xpm image for grub. That's all well and good (I'm a big fan of grub/bootsplash), but once the file is downloaded, I'm at a loss as to what to do with it.

that file should get downloaded to /boot/grub/gentoo.xpm.gz. once its there you don't have to do anything with it, other than to use the following line in your grub.conf file. example from the guide:

Code:
# Use Gentoo Splash Image
splashimage=(hd0,0)/grub/gentoo.xpm.gz


if you had decided not to update to our customized Grub Splash Image, you could use the default splash image that comes with Gentoo. in that case, you's use the following line in grub.conf:

Code:
# Use default Grub Splash Image
splashimage=(hd0,0)/grub/splash.xpm.gz


i thought that i had updated the guide to clarify this information -- it turns out that i actually did rewrite the grub.conf section in mid-January, but I didn't upload the PDF to the web. :oops: thanks for pointing this out. as soon as i have time i'll have to clarify this section of the guide and upload the revised PDF.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Thu Feb 17, 2005 8:31 pm    Post subject: Reply with quote

nightmorph wrote:
am I correct in assuming that I only throw in the rest of my USE list after I've rebooted into my new Gentoo environment? I think this would be the case, since otherwise anything other than the basic USE flags you've suggested would probably start pulling in package dependencies when I emerge programs.


no! the answer to this question is so imporant that i'm going to colorize it so that it stands out in the thread.

it is imperative that you follow ALL of the steps in the guide and that you perform them in exactly the order given, without making any changes. this means that you must update your make.conf entries before you rebuild the system toolkit, otherwise you won't gain any of the benefits that come from the new flags and your time spent recompiling will be wasted!

any updates that you make to make.conf will become active as soon as you issue the emerge command. to demonstrate this, look at the output of "emerge info" before and after you edit the contents of make.conf. the contents of make.conf get checked every time that emerge is executed, and there's no need to reboot in order to benefit from the updates. stop thinking like a Windows user! :wink:

in regard to pulling in other package dependencies -- if your new set of use flags require additional package dependencies, then you want those package dependencies to get pulled in after you rebuild your toolkit, and before you rebuild your system. :idea:

i had anticipated that some people might lose sight of the forest for the trees by spreading out this information across sections 7.2.1, 7.2.2, 7.2.3, and 7.2.4, so i reviewed and summarized these steps in section 7.2.5 in attempt to make the BIG PICTURE more clear.

to gain a better insight of the big scheme of things, review section at 7.2.5. it is absolutely critical that Steps 1, 2, and 3 be performed in the exact order shown, with no modifications.

_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Thu Feb 17, 2005 11:45 pm    Post subject: Tip: Styles can be applied quickly to selected text. Reply with quote

Bob P wrote:
it is imperative that you follow ALL of the steps in the guide and that you perform them in exactly the order given, without making any changes. this means that you must update your make.conf entries[/color] before you rebuild the system toolkit, otherwise you won't gain any of the benefits that come from the new flags and your time spent recompiling will be wasted!


Uh oh. Right now I'm in the middle of the first "emerge -e system", but I've only used the basic USE flags that you provided in the beginning of the HOWTO. I noticed earlier that the first time I tried this method, I had some problems with the USE flags I had intended to use. While they've been fine for my previous system (wtih nptl and nptl only), they seemed to cause some problems. I'm talking about USE flags here, not the CFLAGS; I've fixed the problem there as I mentioned in an earlier post. I thought I only had to add in the rest of the USE flags (not just the minimal set presented at the start of this guide for initial installation) AFTER doing "emerge -e system". So I think I'm going to halt the emerge -e system right now, go back, add in the new USE flags, then do "emerge --newuse glibc binutils gcc portage" for step 7.2.4. Maybe it's not the right thing to do, but that's what experimentation is for, and it might save me a lot of compile time later. Maybe I'll keep in the --newuse flag for both toolchain rebuilding and emerge -e system.

(by the way, just an aside: I've noticed that when compiling gcc 3.4.3.x with a 3.4.3.x compiler, as well as my other toolchain bits, -O3 pretty much gets stripped out. Most annoying; the damn ebuild uses -O2 just about without fail, so I know that I've lost some of the optimizations I wanted.)
Back to top
View user's profile Send private message
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Fri Feb 18, 2005 12:47 am    Post subject: Re: Tip: Styles can be applied quickly to selected text. Reply with quote

nightmorph wrote:
Bob P wrote:
it is imperative that you follow ALL of the steps in the guide and that you perform them in exactly the order given, without making any changes. this means that you must update your make.conf entries[/color] before you rebuild the system toolkit, otherwise you won't gain any of the benefits that come from the new flags and your time spent recompiling will be wasted!


Uh oh. Right now I'm in the middle of the first "emerge -e system", but I've only used the basic USE flags that you provided in the beginning of the HOWTO. I noticed earlier that the first time I tried this method, I had some problems with the USE flags I had intended to use. While they've been fine for my previous system (wtih nptl and nptl only), they seemed to cause some problems. I'm talking about USE flags here, not the CFLAGS; I've fixed the problem there as I mentioned in an earlier post. I thought I only had to add in the rest of the USE flags (not just the minimal set presented at the start of this guide for initial installation) AFTER doing "emerge -e system". So I think I'm going to halt the emerge -e system right now, go back, add in the new USE flags, then do "emerge --newuse glibc binutils gcc portage" for step 7.2.4. Maybe it's not the right thing to do, but that's what experimentation is for, and it might save me a lot of compile time later. Maybe I'll keep in the --newuse flag for both toolchain rebuilding and emerge -e system.

(by the way, just an aside: I've noticed that when compiling gcc 3.4.3.x with a 3.4.3.x compiler, as well as my other toolchain bits, -O3 pretty much gets stripped out. Most annoying; the damn ebuild uses -O2 just about without fail, so I know that I've lost some of the optimizations I wanted.)


Actually, that's GCC devs saving you some headaches. GCC itself probably wouldn't compile with all those flags. It's better to have a stable, robust compile of that.
_________________
I'm not a Guru, I just ask a lot of questions.
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Fri Feb 18, 2005 2:04 am    Post subject: Reply with quote

USE FLAGS?

the Guide mentions the initial modification of USE flags in section 6.5. beyond that, the Guide remains mute on the subject of USE flags on purpose. if the user has specific applications that require the modification of the sample USE flags, he's expected to be capable of making those changes on his own, insofar as it is impossible for the Guide to predict what USE flags would be appropriate for a customized Gentoo installation.

even if USE flags weren't mentioned in section 6.5, it would make sense to change the USE flags sooner, rather than later, and definitely before recompiling the entire system, not after you finish the installation. that is, unless you just like to watch your machine compile...

regarding your idea of stopping emerge -e system and restarting the emerge with the --newuse parameter, you really need to reivew the man page for emerge if you're seriously considering doing something like that. you might also want to post any additional support questions in the support forums.
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Fri Feb 18, 2005 2:14 am    Post subject: Tip: Styles can be applied quickly to selected text. Reply with quote

DrWoland wrote:
Actually, that's GCC devs saving you some headaches. GCC itself probably wouldn't compile with all those flags. It's better to have a stable, robust compile of that.


Actually, as I've referenced earlier in this thread, it's not a bad idea to add back in some of the optimizations that are inherent to specifying "-O3", or at least the ones that the user KNOWS are perfectly safe (in theory, everything that's part of -O3, but YMMV). I thought about including EVERY optimization specified by -O3, but that would have been time-consuming. I was right; it looks like developers only look for the -O3 flag, not the individual flags that are part of it. So I am still getting some of the benefits of my preferred optimization level. As Bob P and others have pointed out, Pentium IIIs seem to be immune to a lot of architecture-specific bugs that are part of other processors. I just wish that -O3 wasn't removed. It seems like a waste of a good thing.

Here we have this excellent tune-up install method by Bob, and then the very toolchain we are trying to build can't be optimized as much as it needs to be. All I see in almost every compile output line is a substitution of -O2 for -O3. Maybe I could have just used "nptl nptlonly" USE flags the way I did in my first Gentoo system, but I'm not willing to break the "bulletproof" method offered here, despite the definite speed boost I would obtain. I'm not all that cagey, but I recognize that there needs to be a certain level of safety. I just wish the gcc developers wouldn't remove all possibilities from the start; that makes me have less confidence in their abilities as programmers. Reading the GNU gcc online manual seems to indicate that the optimizations gained from judicious CFLAGS use are perfectly safe. But, I don't want this to degenerate into a discussion of CFLAGS; there are plenty of other threads on that. I do still maintain that it's not a bad idea to specifiy redundant CFLAGS for this install method, in step 7.2.1. Hasn't hurt so far, and if you read Bob P's thread In Praise of gcc 3.4.3.20050110, it would seem that this method can indeed be completed with the use of -O3 CFLAGS, and with great results. On a Pentium III, that is.
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Fri Feb 18, 2005 3:59 am    Post subject: Re: Tip: Styles can be applied quickly to selected text. Reply with quote

nightmorph wrote:
Actually, as I've referenced earlier in this thread, it's not a bad idea to add back in some of the optimizations that are inherent to specifying "-O3", or at least the ones that the user KNOWS are perfectly safe (in theory, everything that's part of -O3, but YMMV). I thought about including EVERY optimization specified by -O3, but that would have been time-consuming. I was right; it looks like developers only look for the -O3 flag, not the individual flags that are part of it.

aargh. it would be a real PITA to sift through the gcc man pages, but if the devs are going to insist on deciding what's good for us by replacing -O3 with -O2, we may have no choice other than to do exactly that. :x

personally, i find it unconscionable that gentoo developers would usurp the end user's decision on how to optimize their system because the devs are trying to hide from bug reports. ciaranm is pretty outspoken on this. :roll:

Quote:
I just wish that -O3 wasn't removed. It seems like a waste of a good thing.

Here we have this excellent tune-up install method by Bob, and then the very toolchain we are trying to build can't be optimized as much as it needs to be

you know, i have always been to lazy to edit ebuilds, based on the principle that it isn't worth my time. but if we're going to have people like ciaranm acting like Big Brother and deciding what's good for us, i may change my mind on that. maybe the toolkit edbuilds would be worthy of an edit. :idea: this, of course, would only result in an underground version of Gentoo for ricers.

Quote:
All I see in almost every compile output line is a substitution of -O2 for -O3.

i have to admit, i haven't downloaded a recent toolkit in at least a month. i'm still using 3.4.3-r1 and 3.4.3.20050110 -- the original versions that came along before all of the hardmasking/unmasking took place -- and i am not seeing -O3 dumbed down to -O2 on my screen output. i am watching kde compile right now, and i see -O3 in the screen output. about a month ago ciaranm was quite vocal about filtering in ebuilds to force them to not perform -O3 optimizations. i wonder if they've started to dumb down all of the ebuilds. if that's the case, then Gentoo only provides us the the illusion of choice -- while limiting the user to the choices that Big Brother deems safe for us to make. :twisted:
_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 790
Location: under a car or on top of a keyboard

PostPosted: Fri Feb 18, 2005 5:41 am    Post subject: Re: Tip: Styles can be applied quickly to selected text. Reply with quote

DrWoland wrote:
nightmorph wrote:
Bob P wrote:
it is imperative that you follow ALL of the steps in the guide and that you perform them in exactly the order given, without making any changes. this means that you must update your make.conf entries[/color] before you rebuild the system toolkit, otherwise you won't gain any of the benefits that come from the new flags and your time spent recompiling will be wasted!


Uh oh. Right now I'm in the middle of the first "emerge -e system", but I've only used the basic USE flags that you provided in the beginning of the HOWTO. I noticed earlier that the first time I tried this method, I had some problems with the USE flags I had intended to use. While they've been fine for my previous system (wtih nptl and nptl only), they seemed to cause some problems. I'm talking about USE flags here, not the CFLAGS; I've fixed the problem there as I mentioned in an earlier post. I thought I only had to add in the rest of the USE flags (not just the minimal set presented at the start of this guide for initial installation) AFTER doing "emerge -e system". So I think I'm going to halt the emerge -e system right now, go back, add in the new USE flags, then do "emerge --newuse glibc binutils gcc portage" for step 7.2.4. Maybe it's not the right thing to do, but that's what experimentation is for, and it might save me a lot of compile time later. Maybe I'll keep in the --newuse flag for both toolchain rebuilding and emerge -e system.

(by the way, just an aside: I've noticed that when compiling gcc 3.4.3.x with a 3.4.3.x compiler, as well as my other toolchain bits, -O3 pretty much gets stripped out. Most annoying; the damn ebuild uses -O2 just about without fail, so I know that I've lost some of the optimizations I wanted.)


Actually, that's GCC devs saving you some headaches. GCC itself probably wouldn't compile with all those flags. It's better to have a stable, robust compile of that.


man gcc and put the equivilent flags in make.conf and then it won't get filtered :). It'll probably break, tho
Back to top
View user's profile Send private message
DrWoland
l33t
l33t


Joined: 13 Nov 2004
Posts: 603

PostPosted: Fri Feb 18, 2005 6:09 am    Post subject: Re: Tip: Styles can be applied quickly to selected text. Reply with quote

Bob P wrote:
nightmorph wrote:
Actually, as I've referenced earlier in this thread, it's not a bad idea to add back in some of the optimizations that are inherent to specifying "-O3", or at least the ones that the user KNOWS are perfectly safe (in theory, everything that's part of -O3, but YMMV). I thought about including EVERY optimization specified by -O3, but that would have been time-consuming. I was right; it looks like developers only look for the -O3 flag, not the individual flags that are part of it.

aargh. it would be a real PITA to sift through the gcc man pages, but if the devs are going to insist on deciding what's good for us by replacing -O3 with -O2, we may have no choice other than to do exactly that. :x

personally, i find it unconscionable that gentoo developers would usurp the end user's decision on how to optimize their system because the devs are trying to hide from bug reports. ciaranm is pretty outspoken on this. :roll:

Quote:
I just wish that -O3 wasn't removed. It seems like a waste of a good thing.

Here we have this excellent tune-up install method by Bob, and then the very toolchain we are trying to build can't be optimized as much as it needs to be

you know, i have always been to lazy to edit ebuilds, based on the principle that it isn't worth my time. but if we're going to have people like ciaranm acting like Big Brother and deciding what's good for us, i may change my mind on that. maybe the toolkit edbuilds would be worthy of an edit. :idea: this, of course, would only result in an underground version of Gentoo for ricers.

Quote:
All I see in almost every compile output line is a substitution of -O2 for -O3.

i have to admit, i haven't downloaded a recent toolkit in at least a month. i'm still using 3.4.3-r1 and 3.4.3.20050110 -- the original versions that came along before all of the hardmasking/unmasking took place -- and i am not seeing -O3 dumbed down to -O2 on my screen output. i am watching kde compile right now, and i see -O3 in the screen output. about a month ago ciaranm was quite vocal about filtering in ebuilds to force them to not perform -O3 optimizations. i wonder if they've started to dumb down all of the ebuilds. if that's the case, then Gentoo only provides us the the illusion of choice -- while limiting the user to the choices that Big Brother deems safe for us to make. :twisted:


I think he was talking about emerging gcc itself. I haven't seen any flag substitution in anything but toolkit compiles.
_________________
I'm not a Guru, I just ask a lot of questions.
Back to top
View user's profile Send private message
thebigslide
l33t
l33t


Joined: 23 Dec 2004
Posts: 790
Location: under a car or on top of a keyboard

PostPosted: Fri Feb 18, 2005 6:18 am    Post subject: Reply with quote

One can always just add
CFLAGS+=" -fforce-mem -foptimize-sibling-calls -fstrength-reduce -fcse-follow-jumps -fcse-skip-blocks -frerun-cse-after-loop -frerun-loop-opt -fgcse -fgcse-lm -fgcse-sm -fgcse-las -fdelete-null-pointer-checks -fexpensive-optimizations -fregmove -fschedule-insns -fschedule-insns2 -fsched-interblock -fsched-spec -fcaller-saves -fpeephole2 -freorder-blocks -freorder-functions -fstrict-aliasing -funit-at-a-time -falign-functions -falign-jumps -falign-loops -falign-labels -fcrossjumping -finline-functions, -fweb and -frename-registers"
to make.conf...
Back to top
View user's profile Send private message
96140
Retired Dev
Retired Dev


Joined: 23 Jan 2005
Posts: 1324

PostPosted: Fri Feb 18, 2005 6:31 am    Post subject: Reply with quote

--

Last edited by 96140 on Fri Sep 13, 2013 9:44 am; edited 1 time in total
Back to top
View user's profile Send private message
Bob P
Advocate
Advocate


Joined: 20 Oct 2004
Posts: 3355
Location: Jackass! Development Labs

PostPosted: Fri Feb 18, 2005 7:41 am    Post subject: Reply with quote

this is the point where i play the broken record that keeps on saying:

Quote:
it is unfair to everyone who is reading this thread to waste space talking about problems that have cropped-up as a result of deviating from the recommended installation method. if you have deviated from the guide in any way and you have encountered a problem, then please do not post about your problems in this thread. give your problem its own thread in the support forums and take your troubleshooting coversation there. it just isn't fair to bloat this thread with material that is 100% relevant to you, and 100% irrelevant to everyone else. that's what the support forums are for.

_________________
.
Stage 1/3 | Jackass! | Rockhopper! | Thanks | Google Sucks
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page Previous  1, 2, 3 ... 10, 11, 12 ... 16, 17, 18  Next
Page 11 of 18

 
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