Re: GCC4 Util-linux sed [Was: Re: r6800]

2005-09-02 Thread Jürg Billeter
On Fre, 2005-09-02 at 20:04 -0400, Jeremy Huntwork wrote: > [EMAIL PROTECTED] wrote: > > Author: matthew > > Date: 2005-09-02 16:01:00 -0600 (Fri, 02 Sep 2005) > > New Revision: 6800 > > > > Modified: > >branches/gcc4/BOOK/chapter01/changelog.xml > >branches/gcc4/BOOK/chapter06/util-linux.

Re: GCC4 Util-linux sed [Was: Re: r6800]

2005-09-02 Thread Jürg Billeter
On Sam, 2005-09-03 at 10:35 +1000, Greg Schafer wrote: > Better still, we should just find the bug and fix it. Why pessimize the > whole of Util-linux just because of an intermittent bug in cfdisk? It's a > bad workaround IMHO. Surely someone who is able to reproduce the crash can > obtain a backtr

Re: GCC4 Util-linux sed [Was: Re: r6800]

2005-09-02 Thread Chris Staub
Greg Schafer wrote: Jeremy Huntwork wrote: I'm only guessing here, but.. read(3, "\353H\220\320\274\0|\373P\7P\37\374\276\33|\277\33\6PW"..., 512) = 512 ioctl(3, 0x301, 0xbfd12110) = 0 It seems the above is a read of the 1st 512 bytes of /dev/hda ie: the MBR. The next few reads

Re: GCC4 Util-linux sed [Was: Re: r6800]

2005-09-02 Thread Greg Schafer
Greg Schafer wrote: >> _llseek(3, 1028225536, [1028225536], SEEK_SET) = 0 >> read(3, "ReIsEr4\0\0\0\0\0\0\0\0\0\0\0\0\20\2725\3511\237\246M\204"..., >> 1024) = 1024 Here is a completely untested patch. Someone wanna try it? It's based on previous problems we had with sfdisk and GCC-3.4.x It's a

Re: GCC4 Util-linux sed [Was: Re: r6800]

2005-09-02 Thread Greg Schafer
Jeremy Huntwork wrote: I'm only guessing here, but.. > read(3, "\353H\220\320\274\0|\373P\7P\37\374\276\33|\277\33\6PW"..., 512) = > 512 > ioctl(3, 0x301, 0xbfd12110) = 0 It seems the above is a read of the 1st 512 bytes of /dev/hda ie: the MBR. The next few reads appears to be the

RE: GCC4 Util-linux sed [Was: Re: r6800]

2005-09-02 Thread David Fix
> Jeremy Huntwork wrote: > > Indeed. I don't have a lot of time (or even any debugging tools > > installed atm) so I haven't had a chance to do that yet. > But it does > > seem a better course to take if we can spot the exact problem. > > Hrm. Does this spark anything with anyone? Yeah, but da

Re: GCC4 Util-linux sed [Was: Re: r6800]

2005-09-02 Thread Jeremy Huntwork
Jeremy Huntwork wrote: Indeed. I don't have a lot of time (or even any debugging tools installed atm) so I haven't had a chance to do that yet. But it does seem a better course to take if we can spot the exact problem. Hrm. Does this spark anything with anyone? -- JH execve("./fdisk/cfdisk",

SQLite

2005-09-02 Thread Randy McMurchy
Hi all, Should SQLite be added to BLFS? It is a small, compact, very fast, widely-supported, award-winning damn-good SQL engine. Installation is clean, even with GCC-4, though there are some things that deserve mention. 1. It doesn't like to be built in the source tree (think GCC or Glibc). 2. I

Re: GCC4 Util-linux sed [Was: Re: r6800]

2005-09-02 Thread Jeremy Huntwork
Greg Schafer wrote: Last one wins. In other words, on the GCC command line, switches that come after override any that come before. The above will achieve the desired result. I'm sure this is documented somewhere but I cannot find the reference right now :-/ Thanks, that's what I thought but wa

Re: GCC4 Util-linux sed [Was: Re: r6800]

2005-09-02 Thread Greg Schafer
Jeremy Huntwork wrote: > [EMAIL PROTECTED] wrote: >> -sed -i 's/-O2/-O/' MCONFIG >> +sed -i 's/-O2/-O/' configure > > Just for the sake of thoroughness, here... Please note that the above > sed does *not* remove the use of '-O2' from the compile arguments. > > Here's a sample line from one of

GCC4 Util-linux sed [Was: Re: r6800]

2005-09-02 Thread Jeremy Huntwork
[EMAIL PROTECTED] wrote: Author: matthew Date: 2005-09-02 16:01:00 -0600 (Fri, 02 Sep 2005) New Revision: 6800 Modified: branches/gcc4/BOOK/chapter01/changelog.xml branches/gcc4/BOOK/chapter06/util-linux.xml Log: Correct the util-linux segfault fix -sed -i 's/-O2/-O/' MCONFIG +sed -i 's

Re: GCC-4 (more nagging) :-)

2005-09-02 Thread Jeremy Huntwork
Chris Staub wrote: I already sent a message about this, yesterday. :) Anyway, it will work if only configure is modified Obviously I missed it too. :) Sorry, Chris. Nice to see the confirmation, though, thanks. -- JH -- http://linuxfromscratch.org/mailman/listinfo/lfs-dev FAQ: http://www.lin

Successful First Install - GCC-4.0.1

2005-09-02 Thread Dex
Went pretty smoothly and completed in less than 24 hours despite recompiling gcc a number of times to play with different C/CXX flag settings. No matter what I tried I got errors on the math tests and ended up with -march=ahtIon-xp -O2 -pipe. I did note that a couple of packages were in *.bz2 form

Re: GCC-4 (more nagging) :-)

2005-09-02 Thread Matthew Burgess
Chris Staub wrote: Jeremy Huntwork wrote: The fix you added to the gcc 4 branch for this doesn't quite cut it, I'm still getting Seg faults. The problem is that the configure file specifies -O2 as a CFLAG, so the sed needs to be extended, like so: sed -i 's/-O2/-O/' MCONFIG configure > I al

optimization for lfs-book (6.5 Creating Directories)

2005-09-02 Thread Tobias Stoeckmann
Just a little change that is easier to type and also shows a new feature in bash-3.0 (so I think it would be nice to use it): In "6.5. Creating Directories": Instead of typing "install -d /usr/share/man/man{1,2,3,4,5,6,7,8}" the same thing could be done with

Re: GCC-4 (more nagging) :-)

2005-09-02 Thread Chris Staub
Jeremy Huntwork wrote: Matthew Burgess wrote: I reported the `cfdisk' problem upstream but haven't heard anything back from the maintainer yet. As was mentioned in the thread (and the bugzilla entry), simply dropping the optimisation down from '-O2' to '-O' stops the bug from being tickled s

Re: GCC-4 (more nagging) :-)

2005-09-02 Thread Jeremy Huntwork
Matthew Burgess wrote: I reported the `cfdisk' problem upstream but haven't heard anything back from the maintainer yet. As was mentioned in the thread (and the bugzilla entry), simply dropping the optimisation down from '-O2' to '-O' stops the bug from being tickled so that looks like the mos

Re: GCC-4 (more nagging) :-)

2005-09-02 Thread Randy McMurchy
DJ Lucas wrote these words on 08/28/05 23:57 CST: > Basically, the symptom is that text consoles are screwed up after > starting X, and in some cases (Trident Cyber*) a completely white x > display. To reproduce, 'startx' and then 'Ctrl+Alt+F1' and see if the > usual text shows up, of if you get