From nobody@FreeBSD.org  Mon Apr 15 21:54:28 2002
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id 6E26037B404
	for <freebsd-gnats-submit@FreeBSD.org>; Mon, 15 Apr 2002 21:54:28 -0700 (PDT)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.6/8.11.6) id g3G4sSE56822;
	Mon, 15 Apr 2002 21:54:28 -0700 (PDT)
	(envelope-from nobody)
Message-Id: <200204160454.g3G4sSE56822@freefall.freebsd.org>
Date: Mon, 15 Apr 2002 21:54:28 -0700 (PDT)
From: Peter Marrinon <peterm@telstra.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: make in /sys/boot/i386/boot2 and in /sys/boot/i386/loader fail
X-Send-Pr-Version: www-1.0

>Number:         37127
>Category:       kern
>Synopsis:       make in /sys/boot/i386/boot2 and in /sys/boot/i386/loader fail
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    keramida
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 15 22:00:03 PDT 2002
>Closed-Date:    Mon Jul 01 20:48:46 PDT 2002
>Last-Modified:  Mon Jul 01 20:48:46 PDT 2002
>Originator:     Peter Marrinon
>Release:        4.5
>Organization:
Telstra Internet Development
>Environment:
FreeBSD tmp5.telstra.net 4.5-RELEASE FreeBSD 4.5-RELEASE #0: Thu Apr 11 16:34:47 GMT 2002     root@tmp.telstra.net:/usr/src/sys/compile/BOOTDISK  i386
>Description:
When following 15.6.4.2 in the handbook, running make in
/sys/boot/i386/boot2 and /sys/boot/i386/loader have errors.

> cd /sys/boot/i386/boot2
> make

SNIP
/usr/libexec/elf/ld: cannot open /usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o: No such file or directory
*** Error code 1

AFTER FIXING ABOVE

> make
SNIP
make: don't know how to make /usr/src/sys/boot/i386/boot2/../btx/btx/btx

AFTER RUNNING make IN ../btx/btx IT WORKS

>How-To-Repeat:
Follow the instruction given in section 15.6.4.2  of the handbook.
>Fix:
WORKAROUND:
It is possible to get around the problem by going to the relevant
directories and making the missing files as outlined above.

FIX:
Change the Makefile to have correct dependencies and/or change
documentation to run a higher level make before running these commands
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-doc 
Responsible-Changed-By: johan 
Responsible-Changed-When: Thu May 2 19:43:37 PDT 2002 
Responsible-Changed-Why:  
Over to -doc for consideration. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=37127 

From: Johan Karlsson <k@numeri.campus.luth.se>
To: freebsd-gnats-submit@FreeBSD.org, peterm@telstra.net
Cc:  
Subject: Re: kern/37127: make in /sys/boot/i386/boot2 and in /sys/boot/i386/loader fail
Date: Fri, 3 May 2002 04:42:58 +0200

 What do you think about this change to the handbook?
 Instead of
 
 step 4
 #cd /sys/boot/i386/boot2
 #make
 #make install
 step 5
 #cd /sys/boot/i386/loader
 #make
 #make install
 
 is should say
 
 step 4
 #cd /sys/boot/
 #make
 #cd /sys/boot/i386/boot2
 #make install
 #cd /sys/boot/i386/boot2
 #make install
 
 This patch is to doc/en_US.ISO8859-1/books/handbook/serialcomms/chapter.sgml
 
 --- chapter.sgml?rev=1.59	Mon Apr 29 14:22:30 2002
 +++ chapter.sgml	Fri May  3 04:30:22 2002
 @@ -2437,18 +2437,13 @@
  	  </step>
  	  
  	  <step>
 -	    <para>Recompile and install the boot blocks:</para>
 +	    <para>Recompile and install the boot blocks and the boot loader:</para>
  	    
 -	    <screen>&prompt.root; <userinput>cd /sys/boot/i386/boot2</userinput>
 -&prompt.root; <userinput>make</userinput>
 -&prompt.root; <userinput>make install</userinput></screen>
 -	  </step>
 -	  
 -	  <step>
 -	    <para>Recompile and install the boot loader:</para>
 -	    
 -	    <screen>&prompt.root; <userinput>cd /sys/boot/i386/loader</userinput>
 +	    <screen>&prompt.root; <userinput>cd /sys/boot</userinput>
  &prompt.root; <userinput>make</userinput>
 +&prompt.root; <userinput>cd /sys/boot/i386/boot2</userinput>
 +&prompt.root; <userinput>make install</userinput>
 +&prompt.root; <userinput>cd /sys/boot/i386/loader</userinput>
  &prompt.root; <userinput>make install</userinput></screen>
          </step>
  	  
 
 /Johan K
 -- 
 Johan Karlsson		mailto:k@numeri.campus.luth.se

From: Johan Karlsson <k@numeri.campus.luth.se>
To: jhb@freebsd.org
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/37127: make in /sys/boot/i386/boot2 and in /sys/boot/i386/loader fail
Date: Sat, 15 Jun 2002 20:44:00 +0200

 Hi John,
 
 as boot/block maintainer can you comment on my proposed
 patch to the handbook about how to build and install
 the boot block/loader.
 
 See the PR for details
 http://www.FreeBSD.org/cgi/query-pr.cgi?pr=kern/37127
 (see the patch not the broken example I gave)
 
 Thanks
 /Johan K
 
 -- 
 Johan Karlsson		mailto:k@numeri.campus.luth.se

From: John Baldwin <jhb@FreeBSD.org>
To: Johan Karlsson <k@numeri.campus.luth.se>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/37127: make in /sys/boot/i386/boot2 and in /sys/boot/i3
Date: Tue, 25 Jun 2002 10:43:04 -0400 (EDT)

 On 15-Jun-2002 Johan Karlsson wrote:
 > 
 > Hi John,
 > 
 > as boot/block maintainer can you comment on my proposed
 > patch to the handbook about how to build and install
 > the boot block/loader.
 > 
 > See the PR for details
 > http://www.FreeBSD.org/cgi/query-pr.cgi?pr=kern/37127
 > (see the patch not the broken example I gave)
 
 Looks good.  Actually, you might as well change it to do the
 following:
 
 # cd /sys/boot/<arch>
 # make
 # make install
 
 To go ahead and install all the various boot blocks.
 
 -- 
 
 John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
 "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

From: Johan Karlsson <k@numeri.campus.luth.se>
To: John Baldwin <jhb@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/37127: make in /sys/boot/i386/boot2 and in /sys/boot/i3
Date: Tue, 25 Jun 2002 19:06:40 +0200

 --3V7upXqbjpZ4EhLz
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Tue, Jun 25, 2002 at 10:43 (-0400) +0000, John Baldwin wrote:
 > 
 > Looks good.  Actually, you might as well change it to do the
 > following:
 > 
 > # cd /sys/boot/<arch>
 > # make
 > # make install
 > 
 > To go ahead and install all the various boot blocks.
 
 This does not work (at least not on i386 -stable)
 since ficl is need to build the loader.
 
 I suggest either
 
 # cd /sys/boot
 # make
 # cd /sys/boot/<arch>
 # make install
 
 or
 
 # cd /sys/boot
 # make
 # make install
 
 On i386 -stable the result is the same but since I'm not
 sure about other arch I guess the safe thing is to do the
 first.
 
 Hence I suggest to use the atteched patch.
 
 -doc folks, note that I have used <replaceable> around 'arch' 
 but I'm not sure that is the correct thing to do. Please change 
 that if needed before committing.
 
 
 
 /Johan K
 
 -- 
 Johan Karlsson		mailto:k@numeri.campus.luth.se
 
 --3V7upXqbjpZ4EhLz
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="sercomm2.diff"
 
 Index: chapter.sgml
 ===================================================================
 RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/handbook/serialcomms/chapter.sgml,v
 retrieving revision 1.62
 diff -u -r1.62 chapter.sgml
 --- chapter.sgml	30 May 2002 07:49:50 -0000	1.62
 +++ chapter.sgml	25 Jun 2002 17:00:52 -0000
 @@ -2455,19 +2455,12 @@
  	  </step>
  	  
  	  <step>
 -	    <para>Recompile and install the boot blocks:</para>
 +	    <para>Recompile and install the boot blocks and the boot loader:</para>
  	    
 -	    <screen>&prompt.root; <userinput>cd /sys/boot/i386/boot2</userinput>
 +	    <screen>&prompt.root; <userinput>cd /sys/boot</userinput>
  &prompt.root; <userinput>make</userinput>
 -&prompt.root; <userinput>make install</userinput></screen>
 -	  </step>
 -	  
 -	  <step>
 -	    <para>Recompile and install the boot loader:</para>
 -	    
 -	    <screen>&prompt.root; <userinput>cd /sys/boot/i386/loader</userinput>
 -&prompt.root; <userinput>make</userinput>
 -&prompt.root; <userinput>make install</userinput></screen>
 +&prompt.root; <userinput>cd /sys/boot/<replaceable>arch</replaceable></userinput>
 +&prompt.root; <userinput>make install</userinput>
          </step>
  	  
  	  <step>
 
 --3V7upXqbjpZ4EhLz--

From: John Baldwin <jhb@FreeBSD.org>
To: Johan Karlsson <k@numeri.campus.luth.se>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/37127: make in /sys/boot/i386/boot2 and in /sys/boot/i3
Date: Tue, 25 Jun 2002 13:28:45 -0400 (EDT)

 On 25-Jun-2002 Johan Karlsson wrote:
 > On Tue, Jun 25, 2002 at 10:43 (-0400) +0000, John Baldwin wrote:
 >> 
 >> Looks good.  Actually, you might as well change it to do the
 >> following:
 >> 
 >> # cd /sys/boot/<arch>
 >> # make
 >> # make install
 >> 
 >> To go ahead and install all the various boot blocks.
 > 
 > This does not work (at least not on i386 -stable)
 > since ficl is need to build the loader.
 > 
 > I suggest either
 > 
 ># cd /sys/boot
 ># make
 ># cd /sys/boot/<arch>
 ># make install
 > 
 > or
 > 
 ># cd /sys/boot
 ># make
 ># make install
 
 Right, duh.  This second one is best.  It also has the nice side
 effect of not being as machine-specific.
 
 > On i386 -stable the result is the same but since I'm not
 > sure about other arch I guess the safe thing is to do the
 > first.
 
 Do the second. :)
 
 -- 
 
 John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
 "Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

From: Johan Karlsson <k@numeri.campus.luth.se>
To: John Baldwin <jhb@FreeBSD.org>
Cc: freebsd-gnats-submit@FreeBSD.org
Subject: Re: kern/37127: make in /sys/boot/i386/boot2 and in /sys/boot/i3
Date: Tue, 25 Jun 2002 19:38:27 +0200

 --MW5yreqqjyrRcusr
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline
 
 On Tue, Jun 25, 2002 at 13:28 (-0400) +0000, John Baldwin wrote:
 > > I suggest either
 > > 
 > ># cd /sys/boot
 > ># make
 > ># cd /sys/boot/<arch>
 > ># make install
 > > 
 > > or
 > > 
 > ># cd /sys/boot
 > ># make
 > ># make install
 > 
 > Right, duh.  This second one is best.  It also has the nice side
 > effect of not being as machine-specific.
 > 
 > > On i386 -stable the result is the same but since I'm not
 > > sure about other arch I guess the safe thing is to do the
 > > first.
 > 
 > Do the second. :)
 
 Ok, -doc folks please use this attached patch.
 
 /Johan K
 
 -- 
 Johan Karlsson		mailto:k@numeri.campus.luth.se
 
 --MW5yreqqjyrRcusr
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: attachment; filename="sercomm3.diff"
 
 Index: chapter.sgml
 ===================================================================
 RCS file: /home/ncvs/doc/en_US.ISO8859-1/books/handbook/serialcomms/chapter.sgml,v
 retrieving revision 1.62
 diff -u -r1.62 chapter.sgml
 --- chapter.sgml	30 May 2002 07:49:50 -0000	1.62
 +++ chapter.sgml	25 Jun 2002 17:34:21 -0000
 @@ -2455,17 +2455,9 @@
  	  </step>
  	  
  	  <step>
 -	    <para>Recompile and install the boot blocks:</para>
 +	    <para>Recompile and install the boot blocks and the boot loader:</para>
  	    
 -	    <screen>&prompt.root; <userinput>cd /sys/boot/i386/boot2</userinput>
 -&prompt.root; <userinput>make</userinput>
 -&prompt.root; <userinput>make install</userinput></screen>
 -	  </step>
 -	  
 -	  <step>
 -	    <para>Recompile and install the boot loader:</para>
 -	    
 -	    <screen>&prompt.root; <userinput>cd /sys/boot/i386/loader</userinput>
 +	    <screen>&prompt.root; <userinput>cd /sys/boot</userinput>
  &prompt.root; <userinput>make</userinput>
  &prompt.root; <userinput>make install</userinput></screen>
          </step>
 
 --MW5yreqqjyrRcusr--
State-Changed-From-To: open->closed 
State-Changed-By: keramida 
State-Changed-When: Mon Jul 1 20:47:10 PDT 2002 
State-Changed-Why:  
Thanks for submitting the new instructions.  The patch would not 
apply, but I tried to make the changes manually.  If I've managed to 
make any mistakes in the process, drop me a note to correct this. 


Responsible-Changed-From-To: freebsd-doc->keramida 
Responsible-Changed-By: keramida 
Responsible-Changed-When: Mon Jul 1 20:47:10 PDT 2002 
Responsible-Changed-Why:  

http://www.freebsd.org/cgi/query-pr.cgi?pr=37127 
>Unformatted:
 >cd /sys/boot/i386/loader
 >make
 
 SNIP
 cc: /usr/src/sys/boot/i386/loader/../../ficl/libficl.a: No such file or directory
 cc: /usr/src/sys/boot/i386/loader/../libi386/libi386.a: No such file or directory
 
 AFTER RUNNING MAKE IN RELEVANT DIRECTORIES...
 
 >make
 SNIP
 make: don't know how to make /usr/src/sys/boot/i386/loader/../btx/btxldr/btxldr.
 
 AFTER RUNNING make in ../btx/btxldr IT WORKS
