On Tue, Apr 24, 2012 at 08:43:43PM +0100, Ken Moffat wrote: > For i?86, when we force it to build for m486 we also add -O3. I've > been using -O3 for glibc on x86_64 in case it turns out to be > beneficial. On my old single processor machines, I doubt that it > helped, but my suspicions about it are actually raised by results on > my phonon which definitely has enough horsepower. [...] > > Now I'm doing my first test build of current svn, mainly to iron > out the bugs in my scripts, and then to sort out the changes for the > first part of my desktop scripts. Here, glibc bombs out very > quickly (internal compiler error, segmentation fault in vfscanf.c) > . > Did it twice, so at that point I dropped back to -O2 and it was ok. > Perhaps I should mention that everything else using my own CFLAGS > uses -O2, it's only glibc where I've tried -O3. > > Has anyone seen similar problems with -O3 in glibc (or, converesely, > has anyone used -O3 without any problems) ? I can see that I'll have > to have a go at recompiling glibc when the LFS packages have finished, > and then (if it still crashes), have to work out how to get the > preprocessed source. I'm hoping its just a problem with the > temporary version of gcc in /tools. > Still doing this after chapter 6 is complete, but at a differnet line in the same file. Oddly, if I try 'make' *after* the error it looks as if it is going to complete (this is early enough in the compile of gcc that I'm not leaving it running to confirm that it does then complete).
Still trying to persuade it to ICE when I invoke gcc manually (to pass -save-temps), haven't yet managed it, it seems to compile that file ok. Will try again tomorrow, but at the moment it looks unlikely that I can get the info to raise a bug report. But, since the command includes -O2 -O3 I agree with Matt that -O2 looks to be the way to go here. ĸen -- das eine Mal als Tragödie, das andere Mal als Farce -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.linuxfromscratch.org/faq/ Unsubscribe: See the above information page