From dock@whatsup.jnx.com  Tue Jul 16 19:04:43 1996
Received: from red.jnx.com (ppp-24-79.sntc01.pacbell.net [206.170.24.79])
          by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id TAA03204
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Jul 1996 19:04:42 -0700 (PDT)
Received: from whatsup.jnx.com (whatsup.jnx.com [208.197.169.234]) by red.jnx.com (8.7.5/8.7.3) with ESMTP id TAA25579 for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Jul 1996 19:03:27 -0700 (PDT)
Received: (from dock@localhost) by whatsup.jnx.com (8.6.12/8.6.12) id TAA17996; Tue, 16 Jul 1996 19:01:59 -0700
Message-Id: <199607170201.TAA17996@whatsup.jnx.com>
Date: Tue, 16 Jul 1996 19:01:59 -0700
From: Dock Williams <dock@whatsup.jnx.com>
Reply-To: dock@jnx.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: cant bootstrap lex in -current from 2.1 base
X-Send-Pr-Version: 3.2

>Number:         1393
>Category:       misc
>Synopsis:       cant bootstrap lex in -current from 2.1 base
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    nate
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 16 19:10:02 PDT 1996
>Closed-Date:    Wed Oct 23 21:36:13 PDT 1996
>Last-Modified:  Tue Nov 27 19:22:36 PST 2001
>Originator:     Dock Williams
>Release:        FreeBSD 2.1-STABLE i386
>Organization:
>Environment:

	FreeBSD 2.1.0-RELEASE

	

>Description:

	Trying to make world with a 2.1.0 release and the ld
	of 2.1.0 doesn't have -O support.  The bsd.lib.mk
	uses the new option when making lex and dies with:

===> lib
cc -O -c /usr/src/usr.bin/lex/lib/libmain.c -o libmain.o
ld: invalid command option `-O'
*** Error code 1 (continuing)
cc -O -c /usr/src/usr.bin/lex/lib/libyywrap.c -o libyywrap.o
ld: invalid command option `-O'
*** Error code 1 (continuing)
`all' not remade because of errors.

	The the source for ld has the option support but it needs to be
	built and installed before it is used.

	

>How-To-Repeat:

	Using a 2.1.0 base, make world, it will die bootstrapping lex.

	

>Fix:
	
	Fix the build process to build and install ld before trying to
	bootstrap lex, or more gnerally before making a library.

	I could workaround the problem by using an earlier version
	of bsd.lib.mk.

	

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->nate 
Responsible-Changed-By: wosch 
Responsible-Changed-When: Wed Sep 25 17:01:00 PDT 1996 
Responsible-Changed-Why:  
State-Changed-From-To: open->analyzed 
State-Changed-By: nate 
State-Changed-When: Mon Oct 21 21:52:05 PDT 1996 
State-Changed-Why:  

Can we close this?  I agree that bootstrapping from 2.1 is a 'good 
thing', but I don't see how we can 'portably' fix this w/out adding 
un-neccessary complexity, and the fix is rather simple. 


State-Changed-From-To: analyzed->closed 
State-Changed-By: nate 
State-Changed-When: Wed Oct 23 21:36:13 PDT 1996 
State-Changed-Why:  
Due to the interdependencies of the tools and the ease of fixing it, the 
orginal submitter said it was OK to close it. 
>Unformatted:
