Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Sep 2007 12:42:19 -0700
From:      "Kevin Oberman" <oberman@es.net>
To:        "Abdullah Ibn Hamad Al-Marri" <almarrie@gmail.com>
Cc:        Kris Kennaway <kris@freebsd.org>, FreeBSD Current <freebsd-current@freebsd.org>, FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Help I borke my 7.0 AMD64 
Message-ID:  <20070924194219.988EC45012@ptavv.es.net>
In-Reply-To: Your message of "Mon, 24 Sep 2007 22:36:57 %2B0300." <499c70c0709241236q58ee1215ie38f3fb6968d71d2@mail.gmail.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
--==_Exmh_1190662939_32699P
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

> Date: Mon, 24 Sep 2007 22:36:57 +0300
> From: "Abdullah Ibn Hamad Al-Marri" <almarrie@gmail.com>
> Sender: owner-freebsd-current@freebsd.org
> 
> On 9/24/07, Kris Kennaway <kris@freebsd.org> wrote:
> > Abdullah Ibn Hamad Al-Marri wrote:
> > > On 9/24/07, Kris Kennaway <kris@freebsd.org> 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
Key fingerprint:059B 2DDF 031C 9BA3 14A4  EADA 927D EBB3 987B 3751

--==_Exmh_1190662939_32699P
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
Comment: Exmh version 2.5 06/03/2002

iD8DBQFG+BMbkn3rs5h7N1ERAh7NAKC4Gj4pcHyShtuqQ2uS7FY/mpMzCwCeKA71
E4sloR3QvUrVpAizFhIbpzg=
=41nY
-----END PGP SIGNATURE-----

--==_Exmh_1190662939_32699P--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070924194219.988EC45012>