From owner-freebsd-questions@FreeBSD.ORG Mon Sep 24 19:27:05 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 B161016A418; Mon, 24 Sep 2007 19:27:05 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from weak.local (hub.freebsd.org [IPv6:2001:4f8:fff6::36]) by mx1.freebsd.org (Postfix) with ESMTP id D564813C45A; Mon, 24 Sep 2007 19:27:04 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <46F80F89.70703@FreeBSD.org> Date: Mon, 24 Sep 2007 21:27:05 +0200 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.6 (Macintosh/20070728) MIME-Version: 1.0 To: Abdullah Ibn Hamad Al-Marri References: <499c70c0709241203g1e1dae49r4f51f0cd9086492b@mail.gmail.com> <46F80C6C.2030002@FreeBSD.org> <499c70c0709241216v2315e4c4pdee0f5375b353864@mail.gmail.com> In-Reply-To: <499c70c0709241216v2315e4c4pdee0f5375b353864@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Cc: 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 19:27:05 -0000 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