Subject: RE: Correct build method? Binary Upgrade!!
To: 'NetBSD Help' <current-users@NetBSD.org>
From: Conrad T. Pino <Conrad@Pino.com>
List: current-users
Date: 12/26/2002 19:27:51
I may have spoken to soon.  This applies to pre 1.6 releases only.
I apologize in advance to venting my frustrations inappropriately.
The energy comes from the frustration built up trying to compile
the 1.5 source tree on a 1.5.2 installation.

-----Original Message-----
From: netbsd-help-owner@netbsd.org
[mailto:netbsd-help-owner@netbsd.org]On Behalf Of Conrad T. Pino
Sent: Thursday, December 26, 2002 19:23
To: NetBSD Help
Subject: RE: Correct build method? Binary Upgrade!!

Hi Greg,

Hooo weee!!! Another sucker bites the dust the big whatever!!!
I'm a newbie and tried the same thing. It doesn't work.

I finally found the definitive documentation:

ftp://iso.netbsd.org/pub/NetBSD/NetBSD-1.6/i386/INSTALL.html

Look for "Upgrading a previously installed...".  But why wait?

I'll quote right here, "The upgrade to NetBSD 1.6 is a binary
upgrade; it can be quite difficult to update the system from
an earlier version by recompiling from source, primarily due
to interdependencies in the various components."

Now don't get me wrong, I really, really, really like NetBSD
but it's not trivial for newbie professionals like me new to
open source and I dread for the amateur hacker.

The current NetBSD WWW site show too much knowledge that's
"intuitively obvious but only if it's known".  Remember the
first time you used a mouse or a GUI?

Conrad

-----Original Message-----
From: netbsd-help-owner@netbsd.org
[mailto:netbsd-help-owner@netbsd.org]On Behalf Of Greg 'groggy' Lehey
Sent: Thursday, December 26, 2002 18:53
To: NetBSD-help@NetBSD.org
Cc: current-users@NetBSD.org
Subject: Correct build method?


I'm copying current-users@ on this message, since it may be related to
CURRENT.

Once upon a time, upgrading a system seemed simple.  You unpacked the
source code and ran a 'make build'.  That doesn't seem to work any
more.

Yesterday I installed a fresh 1.6-RELEASE system and checked out the
latest -CURRENT sources, then tried 'make build'.  It died with the
following message:

  cleandir ===> gnu/usr.bin/grep
  rm -f grep.o dfa.o kwset.o obstack.o savedir.o getopt.o getopt1.o search.o
stpcpy.o regex.o grepmat.o  grep.ln dfa.ln kwset.ln obstack.ln savedir.ln
getopt.ln getopt1.ln search.ln stpcpy.ln regex.ln grepmat.ln
  rm -f grep.1 grep.info grep.cat1
  rm -f a.out [Ee]rrs mklog core *.core .gdbinit grep
  rm: grep: is a directory
  *** Error code 1

I find this puzzling, since the files are all straight from the repo
with no changes.  Anyway, I RTFMd (well, RTFFAQd at
http://www.netbsd.org/Documentation/current/#why-track), and did:

    * Build the toolchain.
      From the root of the source tree, run './build.sh -t'. This will
      build a toolchain in tools/obj/tools.<hostplatform>/bin.
    * Build and install the kernel.
          o cd sys/arch/ARCH/conf
          o .../tools/obj/tools.<hostplatform>/bin/nbconfig GENERIC
          o cd ../compile/GENERIC
          o .../tools/obj/tools.<hostplatform>/bin/nbmake-ARCH
    o make install (this will rename /netbsd to /onetbsd and install
      the new kernel as /netbsd).
  * Reboot into the new kernel

This all worked well.  Next step is:

  * Run ./build.sh

Without any arguments, this dies on me with the message

  ERROR: DESTDIR must be set to a non-root path for non -E (expert) builds
  *** BUILD ABORTED ***

OK, so I tried with -E and -d foo.  In each case, see number 1:

  rm: grep: is a directory
  *** Error code 1

Questions:

1.  What am I doing wrong?
2.  Why am I getting this message?
3.  Does 'make build' no longer work?

Greg
--
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers