Bug 32021

Summary: SHOWSTOPPING FAILURE OF "make buildkernel" IN -STABLE when "MODULES_WITH_WORLD=true" in /etc/make.conf
Product: Base System Reporter: agifford
Component: kernAssignee: matusita
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: 4.4-STABLE   
Hardware: Any   
OS: Any   

Description agifford 2001-11-16 01:00:00 UTC
Any attempt to build recent -STABLE kernels failes as follows:

--------------------------------------------------------------

Fix: 

The temporary work-around is to edit /usr/src/conf/Makefile.i386 and add the following two lines IMMEDIATELY BEFORE the ".endif" line in the ".if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists($S/modules)" section of the Makefile:

.else
cleandir:

That fixes things temporarily, but isn't a real fix, because I don't know exactly why things broke sometime in the last 2-3 weeks in the first place.
How-To-Repeat: Try to build a -STABLE kernel on a recent -STABLE system with "MODULES_WITH_WORLD=true" in your /etc/make.conf file and you WILL encounter this problem.
Comment 1 Makoto Matsushita 2001-11-16 03:13:58 UTC
> SHOWSTOPPING FAILURE OF "make buildkernel" IN -STABLE when "MODULES_WITH_WORLD=true" in /etc/make.conf

I suppose that this occurs only if you set both MODULES_WITH_WORLD
_and_ do "make buildkernel", right?

Sorry for inconvenience, maybe that's my fault.  This morning I hit an
idea my changes to src/Makefile.inc1 still causes a problem as you
mentioned, and fix in 5-current.  If it works well in 5-current (needs
some time to spent), I'll MFC to 4-stable, hopefully next monday.

-- -
Makoto `MAR' Matsushita
Comment 2 matusita freebsd_committer freebsd_triage 2001-11-16 03:15:12 UTC
State Changed
From-To: open->analyzed

This problem is actually in src/Makefile.inc1, not 
src/sys/i386/compile/${conf}/Makefile.  I've already commited a fix 
to 5-current, MFC will come in a few days later. 


Comment 3 matusita freebsd_committer freebsd_triage 2001-11-16 03:15:12 UTC
Responsible Changed
From-To: freebsd-bugs->matusita

I'll handle this.
Comment 4 matusita freebsd_committer freebsd_triage 2001-11-18 10:14:41 UTC
State Changed
From-To: analyzed->closed

Fixed in rev 1.227 and 1.141.2.38.