From owner-freebsd-questions@FreeBSD.ORG Tue Sep 25 19:51:52 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C52C16A418 for ; Tue, 25 Sep 2007 19:51:52 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.191]) by mx1.freebsd.org (Postfix) with ESMTP id D7F1313C458 for ; Tue, 25 Sep 2007 19:51:51 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so1538909nfb for ; Tue, 25 Sep 2007 12:51:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=nufbC0v1JZvNlJgCCPRzhCtGl2XsfTnImunTKBemKII=; b=Sj7lxlhrfxJuz1nJtfSQO6iifzonrqty02HRPxneu6A3et9si5c4QYtMA0IW0E8y+1hp9QvSE6raPpCgeHhqDZSfe/vlLaZgSYD8EmskrGuRdiNupa2NfF7CTfqcV2cO598vaGhqRXfRGS/WSMOt9YUJ3LTFIT+j0mh3Zcr3pTE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=RTddlbxC9I/UxzWNl963YOGr54LnF0sFZBdw7ZOJLEdedigYg2HjgpWq0AxsZYLjyCkeDaBb6nI166eqwh+PWX7jBhTTMShKIBXGoZ4uRAZziSzXeCVw4IutE4d4jgiM9IO6b77+4k2k7WHqr+q6kvXX93F5blgCJogHwTfKn+4= Received: by 10.86.77.5 with SMTP id z5mr685497fga.1190749910318; Tue, 25 Sep 2007 12:51:50 -0700 (PDT) Received: by 10.86.2.1 with HTTP; Tue, 25 Sep 2007 12:51:41 -0700 (PDT) Message-ID: <499c70c0709251251i57c5e286k114ba994b2247cef@mail.gmail.com> Date: Tue, 25 Sep 2007 22:51:41 +0300 From: "Abdullah Ibn Hamad Al-Marri" To: "Kevin Oberman" In-Reply-To: <20070925024722.B5F954500C@ptavv.es.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <499c70c0709241644j7aac06fh9f1a8cc41926bf36@mail.gmail.com> <20070925024722.B5F954500C@ptavv.es.net> Cc: Kris Kennaway , Mel , freebsd-questions@freebsd.org Subject: Re: Help I borke my 7.0 AMD64 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Sep 2007 19:51:52 -0000 On 9/25/07, Kevin Oberman wrote: > > Date: Tue, 25 Sep 2007 02:44:33 +0300 > > From: "Abdullah Ibn Hamad Al-Marri" > > > > On 9/25/07, Mel wrote: > > > On Monday 24 September 2007 22:47:59 Abdullah Ibn Hamad Al-Marri wrote: > > > > > > > Could you please put it somewhere where so that I could fetch it? > > > > > > Probably the safest way: > > > pkg_add -r gcc-4.2.2_20070905.tbz > > > > > > Then set CC and CXX in /etc/make.conf to point to the installed gcc > > > in /usr/local. This should get you through the build-tools stage. If it > > > creates issues later on, you should have a libgcc_* in /usr/obj. In fact, I > > > highly recommend pressing ctrl-c after gcc has been built and copy the > > > missing library from /usr/obj to /usr/lib then unset CC and CXX > > > in /etc/make.conf and re-run buildworld. > > > > > > I just looked on freebsd ftp servers, there's a package for amd64 arch and > > > 7-current dated Sep 15. > > > -- > > > Mel > > > > Hello, > > > > I installed that. > > > > And it did the trick. > > > > I just don't want to take the risk now. > > > > I did these steps > > > > rm -r /usr/obj/* > > cd /usr/src > > make cleandir > > make cleanworld > > make -j7 buildworld > > > > I'm too worried, I may get broken world now. > > > > Shall I recopy libgcc_* from /obj again and rebuild the world again? > > since current libgcc_* is made by the gcc42 latest port. > > If you use gcc 4.2.2 to buildworld, it does a two stage build. It starts > by building the base gcc (4.2.1) withe the default compiler and then > builds it again using the just built compiler. You should be fine if you > define CC as gcc422. It will only be used to build the gcc4.2.1 > compiler. Once that is done, the make system will use only the newly > built version. > > If you have removed /usr/obj/*, you can speed the build with -DNO_CLEAN. > (There is nothing to clean, but make will still try.) Since there is > nothing to clean, making cleandir and cleanworld looks unnecessary, > too. > > Unless you have a 6 core system, -j7 is probably excessive. Both my own > tests and those of others show that having one more build thread than > there are processors seems to be the sweet spot. (I don't recall if > anyone has tested at over 6 cores, though.) > > I think I understand the build system, but I am far from a make(1) guru, > so. if I misunderstand any of it, hopefully those who are will chime in > with the right information. > -- > R. Kevin Oberman, Network Engineer > Energy Sciences Network (ESnet) > Ernest O. Lawrence Berkeley National Laboratory (Berkeley Lab) > E-mail: oberman@es.net Phone: +1 510 486-8634 > Key fingerprint:059B 2DDF 031C 9BA3 14A4 EADA 927D EBB3 987B 3751 Thanks I fixed by coping it from obj -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/