From owner-freebsd-questions@FreeBSD.ORG Mon Sep 24 20:48:02 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 B501E16A478 for ; Mon, 24 Sep 2007 20:48:02 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.freebsd.org (Postfix) with ESMTP id 2E14313C478 for ; Mon, 24 Sep 2007 20:48:01 +0000 (UTC) (envelope-from almarrie@gmail.com) Received: by nf-out-0910.google.com with SMTP id b2so1275811nfb for ; Mon, 24 Sep 2007 13:48:00 -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=rJ3aYNCF9ZQEyh4ANn2XchRm3H08+xiHjCERXqzVubc=; b=kM2ImX5J7+GHoNcTLc1mfv9vz/DczjP+bT1Je2fJtutMQEPPbdMftY4YI+C2p9KLwEFaN6JQZy8zI6sz4sc+l68zUr+rdvDS1PeD0OCmBBmzxVDsJymhWaMk9/q8RUXi8zRaswu+5oBzvvQsz3FNvBkO6CLr1n7SN6HT0dg9BnU= 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=dv5FsdMMpeU/nqWD7WwPxH+eI+XcszT+/E5vvMkNnvmIdzI8KsSwANgBqI9yP9Lx5klq1xuORzQvnM2veeXYJZWc+7CZGpv6Rs/tQRh+tqrrQVqbbUMf1LGG59x44oclW0+t4xDWn9Ur9ChuoDPf9J8N+OTk9cAwoW0M6TlXe/A= Received: by 10.86.73.17 with SMTP id v17mr5032168fga.1190666879873; Mon, 24 Sep 2007 13:47:59 -0700 (PDT) Received: by 10.86.2.1 with HTTP; Mon, 24 Sep 2007 13:47:59 -0700 (PDT) Message-ID: <499c70c0709241347g1a8a4129i54aeec084242f96f@mail.gmail.com> Date: Mon, 24 Sep 2007 23:47:59 +0300 From: "Abdullah Ibn Hamad Al-Marri" To: "Kevin Oberman" In-Reply-To: <20070924204109.6E38545012@ptavv.es.net> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <499c70c0709241249m5845e582p752ee52582531a38@mail.gmail.com> <20070924204109.6E38545012@ptavv.es.net> Cc: Kris Kennaway , FreeBSD Current , FreeBSD Questions 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: Mon, 24 Sep 2007 20:48:02 -0000 On 9/24/07, Kevin Oberman wrote: > > Date: Mon, 24 Sep 2007 22:49:12 +0300 > > From: "Abdullah Ibn Hamad Al-Marri" > > > > On 9/24/07, Kevin Oberman wrote: > > > > Date: Mon, 24 Sep 2007 22:36:57 +0300 > > > > From: "Abdullah Ibn Hamad Al-Marri" > > > > Sender: owner-freebsd-current@freebsd.org > > > > > > > > On 9/24/07, Kris Kennaway wrote: > > > > > Abdullah Ibn Hamad Al-Marri wrote: > > > > > > On 9/24/07, Kris Kennaway wrote: > > > > > >> Abdullah Ibn Hamad Al-Marri wrote: > > > > > >>> Hello, > > > > > >>> > > > > > >>> I used potsclean, and it broke my GCC enviroment. > > > > > >> What is potsclean? > > > > > >> > > > > > >>> I can't make buildworld anymore. > > > > > >>> > > > > > >>>>>> stage 2.3: build tools > > > > > >>> -------------------------------------------------------------- > > > > > >>> cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj INSTALL="sh > > > > > >>> /usr/src/tools/install.sh" > > > > > >>> PATH=/usr/obj/usr/src/tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/legacy/usr/games:/sbin:/bin:/usr/sbin:/usr/bin > > > > > >>> WORLDTMP=/usr/obj/usr/src/tmp MAKEFLAGS="-m /usr/src/tools/build/mk > > > > > >>> -m /usr/src/share/mk" /usr/obj/usr/src/make.amd64/make -f > > > > > >>> Makefile.inc1 TARGET=amd64 TARGET_ARCH=amd64 DESTDIR= > > > > > >>> BOOTSTRAPPING=700052 -DNO_LINT -DNO_CPU_CFLAGS -DNO_WARNS build-tools > > > > > >>> ===> bin/csh (obj,build-tools) > > > > > >>> grep 'ERR_' /usr/src/bin/csh/../../contrib/tcsh/sh.err.c | grep > > > > > >>> '^#define' >> sh.err.h > > > > > >>> cc -E -O2 -fno-strict-aliasing -pipe -I. -I/usr/src/bin/csh > > > > > >>> -I/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL='"/bin/csh"' > > > > > >>> -DHAVE_ICONV -I/usr/obj/usr/src/tmp/legacy/usr/include > > > > > >>> /usr/src/bin/csh/../../contrib/tcsh/tc.const.c > > > > > >>> /usr/src/bin/csh/../../contrib/tcsh/sh.char.h > > > > > >>> /usr/src/bin/csh/config.h > > > > > >>> /usr/src/bin/csh/../../contrib/tcsh/config_f.h > > > > > >>> /usr/src/bin/csh/../../contrib/tcsh/sh.types.h sh.err.h -D_h_tc_const > > > > > >>> | grep 'Char STR' | sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern > > > > > >>> Char \1[];/' | sort >> tc.const.h > > > > > >>> cc -o gethost -L/usr/obj/usr/src/tmp/legacy/usr/lib -O2 > > > > > >>> -fno-strict-aliasing -pipe -I. -I/usr/src/bin/csh > > > > > >>> -I/usr/src/bin/csh/../../contrib/tcsh -D_PATH_TCSHELL='"/bin/csh"' > > > > > >>> -DHAVE_ICONV -I/usr/obj/usr/src/tmp/legacy/usr/include > > > > > >>> /usr/src/bin/csh/../../contrib/tcsh/gethost.c > > > > > >>> /usr/bin/ld: cannot find -lgcc_s > > > > > >> You will need to obtain another copy of this library. Either you could > > > > > >> download a 7.0 snapshot and extract it from that, or maybe just > > > > > >> reinstall if that is more trouble than you want to deal with. > > > > > >> > > > > > >> Kris > > > > > > > > > > > > Sorry Kris, I meant portsclean, and it deleted stuff it shouldn't for > > > > > > the native GCC environment. > > > > > > > > > > That sounds pretty odd, are you sure you hadn't made changes to your > > > > > /lib (e.g. symlinking libgcc_s to a port version)? It should not be > > > > > touching anything under /lib at all. > > > > > > > > > > Kris > > > > > > > > Yes, I didn't do anything else. > > > > > > > > ls > > > > geom libalias_smedia.so libcrypto.so.5 > > > > libmd.so.4 libufs.so.4 > > > > libalias.so.6 libatm.so.5 libdevstat.so.6 > > > > libncurses.so.7 libumem.so.1 > > > > libalias_cuseeme.so libavl.so.1 libedit.so.6 > > > > libncursesw.so.7 libutil.so.7 > > > > libalias_dummy.so libbegemot.so.3 libgeom.so.4 > > > > libnvpair.so.1 libuutil.so.1 > > > > libalias_ftp.so libbsdxml.so.3 libipsec.so.3 > > > > libpcap.so.5 libz.so.4 > > > > libalias_irc.so libbsnmp.so.4 libipx.so.4 > > > > libreadline.so.7 libzfs.so.1 > > > > libalias_nbt.so libc.so.7 libkiconv.so.3 > > > > libsbuf.so.4 libzpool.so.1 > > > > libalias_pptp.so libcam.so.4 libkvm.so.4 > > > > libssp.so.0 > > > > libalias_skinny.so libcrypt.so.4 libm.so.5 > > > > libthr.so.3 > > > > > > What arguments did you give to portsclean? Specifically, did you tell it > > > to clean libraries (_L or --libclean)? Sounds like you yanked a library > > > out from under gcc. I tend to stick to -DC to avoid the possibility of > > > foot shooting. (I manage to do that too often, in any case.) > > > -- > > > 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 > > > > I forced portsclean -L but why on the earth it did remove the gcc lib > > since it's not installed by the ports? > > > > Is there away to recover it now? > > portsclean should never touch anything out of /usr/local/and base gcc > should not depend on anything in /usr/local. I'd suspect that setting an > environmental variable such as PORTSDIR might cause this, but that seem > unlikely to have happened without a serious intent. > > Is it possible that you are not running the base gcc? ('which gcc' and 'gcc > -v') It should be in /usr/bin and the version for a recent current > should be 4.2.1 20070719. > > Is it possible that the portsclean was merely coincidental? Could > something else have happened at about the same time? > > As far as recovery goes, what does 'locate libgcc_s.so show? You should > have it in /lib, but there might be another copy around. If that fails, > you can try finding a copy on some other system; a current system of > about the same age as yours so that it will have the same gcc. > > Good luck! > -- > 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 Thank you Kevin! gcc -v Using built-in specs. Target: amd64-undermydesk-freebsd Configured with: FreeBSD/amd64 system compiler Thread model: posix gcc version 4.2.1 20070719 [FreeBSD] locate libgcc_s.so returns nothing, and not in /lib :( Could you please put it somewhere where so that I could fetch it? -- Regards, -Abdullah Ibn Hamad Al-Marri Arab Portal http://www.WeArab.Net/