From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-14) on finch.gentoo.org X-Spam-Level: X-Spam-Status: No, score=0.3 required=5.0 tests=DMARC_MISSING, MAILING_LIST_MULTI,RDNS_NONE autolearn=no autolearn_force=no version=4.0.0 Received: from mail.iitk.ac.in (unknown [203.200.95.130]) by chiba.3jane.net (Postfix) with ESMTP id 7429CABD65 for ; Sun, 2 Jun 2002 12:43:22 -0500 (CDT) Received: from antivirus.cc.iitk.ac.in (antivirus.cc.iitk.ac.in [172.31.1.102]) by mail.iitk.ac.in (8.9.3+Sun/8.9.3) with SMTP id XAA28511 for ; Sun, 2 Jun 2002 23:13:48 +0530 (IST) Received: (from bhaskar [172.31.1.7]) by antivirus.cc.iitk.ac.in (NAVGW 2.5.2.9) with SMTP id M2002060223403702536 for ; Sun, 02 Jun 2002 23:40:37 +0530 Date: Sun, 2 Jun 2002 23:12:15 +0530 (IST) From: Prashanth Aditya Susarla X-Sender: aditya@bhaskar.cc.iitk.ac.in To: gentoo-dev@gentoo.org In-Reply-To: <20020602170104.750B0AC465@chiba.3jane.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [gentoo-dev] Re: GCC3.1 bootstrap fails Sender: gentoo-dev-admin@gentoo.org Errors-To: gentoo-dev-admin@gentoo.org X-BeenThere: gentoo-dev@gentoo.org X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: gentoo-dev@gentoo.org List-Help: List-Post: List-Subscribe: , List-Id: Gentoo Linux developer list List-Unsubscribe: , List-Archive: X-Archives-Salt: b41a90b7-6bc8-467d-b5ce-52a7c1ff199a X-Archives-Hash: 88dd24c37e0083a17a3124fcf95fe43e >do -not- use -fomit-frame-pointer during bootstrap! (can anyone who >actually got this to -work- using omit-frame-pointer speak up??) > >This causes breakage in glibc. That's interesting. When I used default-1.0, I used all the flags which one particular FAQ on gentoo.org mentioned (-fforce-addr -fomit-frame-pointer -funroll-loops blah blah blah along with -march=i686 -O3 of course) and everything worked fine (atleast compiled fine though I was not truly happy with the performance (lots of memory leaks and subsequent crashes of kswapd primarily). So maybe this is an issue only with gcc-3.x and/or binutils-2.12.x. But I toned down the optimizations and the bootstrap worked fine. >this is due to a broken glibc (omit frame pointer and -O3. I think glibc >strips out -O3 but not the -f flags. ) gcc does this. glibc retains whatever you specify. Anyway, that's beside the point - only for the sake of information ;-). >> problem is that most binaries segfault soon after glibc is built. >Try again with -O2 -pipe and you will get a working system :) Infact, I finally used the default options for Athlon systems (-march=i686 -pipe -O3.... not -O2 but -O3) and glibc didn't break. As I said earlier, this is strange because all those crazy optimizations worked in the case of the default-1.0 profile. >emerge system >/(watch it break down and cry in xfree because you overoptimized) So you're saying that if I use -march=athlon-tbird -fomit-frame-pointer -O3 [-pipe] -mmmx -m3dnow (the latter only for the sake of multimedia apps like xmms, mplayer etc.) the xfree ebuild b0rks out? That's too bad, really. And the thing with xfree is that experimenting stops being an option if the very first emerge itself doesn't work :-(. Not all of us have all the time in the world... Regards, Prashanth Aditya Susarla