From owner-freebsd-bugs Tue Jan 8 7:50:30 2002 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D09DE37B423 for ; Tue, 8 Jan 2002 07:50:05 -0800 (PST) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g08Fo5w16583; Tue, 8 Jan 2002 07:50:05 -0800 (PST) (envelope-from gnats) Date: Tue, 8 Jan 2002 07:50:05 -0800 (PST) Message-Id: <200201081550.g08Fo5w16583@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Peter Pentchev Subject: Re: misc/33595: libc breaking in -STABLE Reply-To: Peter Pentchev Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR misc/33595; it has been noted by GNATS. From: Peter Pentchev To: "f.johan.beisser" Cc: freebsd-gnats-submit@FreeBSD.org Subject: Re: misc/33595: libc breaking in -STABLE Date: Tue, 8 Jan 2002 17:47:44 +0200 On Tue, Jan 08, 2002 at 07:40:07AM -0800, f.johan.beisser wrote: > The following reply was made to PR misc/33595; it has been noted by GNATS. > > From: "f.johan.beisser" > To: Sheldon Hearn > Cc: freebsd-gnats-submit@FreeBSD.org > Subject: Re: misc/33595: libc breaking in -STABLE > Date: Tue, 8 Jan 2002 07:36:32 -0800 (PST) > > On Tue, 8 Jan 2002, Sheldon Hearn wrote: > > > On Tue, 08 Jan 2002 05:40:28 PST, "f.johan.beisser" wrote: > > > > > i know this, but recently having patched gcc with the "stack-protector" > > > made me wish to test a build on *part* of the base system, without > > > rebuilding all of the userland or kernel. libc was one of the recommended > > > pieces to rebuild. > > > > You _can_ rebuild just libc, but you must use sources synchronized with > > the installed base. In other words, use the same sources used to build > > world. > > so, tracking RELENG_4_4 would work, but RELENG_4 would not? Even then it is not really guaranteed to work. In practice I really expect that it should work, because RELENG_4_4 sees no changes of this magnitude. The problem is with the tracking itself - when you updated your source tree, you updated pieces outside of libc along with those in libc. In this particular case, the ones in libc depend on the correct 'bootstrap' and the other phases that a buildworld does before rebuilding libraries. In this particular case, rebuilding libc without having the proper header files already in a place where the compiler can see them is doomed to failure. > > > granted, doing a buildworld to rebuild the entire base system is a bit > > > better of a habit (it's what i ususally do), rebuilding everything to test > > > a "modified" compiler is a bit excessive. > > > > The "mistake" you made was to update your sources to do this, instead of > > just using the sources used for the last upgrade (or the sources > > installed with the binary upgrade / installation). > > upgraded source tree that i tend to keep up to date, even if i don't build > from it. that was my mistake. tracking the wrong branch. Not really. Your mistake was rebuilding only a part of the source tree *after upgrading the whole of it* and *before building the whole of it*. Once you have completed a buildworld, you can change and rebuild any of the libraries all you like. > anyhow, now i know, despite several years of working on this stuff. i like > things that keep the OS interesting. I can relate to that :) G'luck, Peter -- .siht ekil ti gnidaer eb d'uoy ,werbeH ni erew ecnetnes siht fI To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message