can't build kernel [with CONFIG this time]

Kris Kennaway kris at obsecurity.org
Thu Apr 28 09:09:56 PDT 2005


On Thu, Apr 28, 2005 at 08:31:02AM -0400, Lowell Gilbert wrote:
> "/dev/null" <null at dnswatch.com> writes:
> 
> > Hello,
> >  Just got a new CPU today. Running 5.4-RC3 on GENERIC until the new CPU
> > showed up. Installed the CPU drafted a new config for the kernel cd'd to
> > /usr/src, typed "make buildkernel KERNCONF=DEMON01", build process went as
> > expected. But before the build process completed the machine froze for no
> > apparent reason at the sound driver part. Couldn't ssh into it from another
> > box, so hit the reset button, chose 4 from the menu (single user mode).
> > Performed a fsck -f. Rebooted and attempted to rebuild. But it barfed.
> > So I performed an rm -fr /usr/src.
> > Then /stand/sysinstall > install entire src tree and tried another
> > "make buildkernel KERNCONF=DEMON01" in /usr/src.
> > It barfed with the following:
> >     ....
> > rm -f .depend GPATH GRTAGS GSYMS GTAGS
> > ===> rp
> > rm -f /usr/src/sys/modules/rp/export_syms rp.ko rp.kld rp.o rp_pci.o @
> > machine s
> > ymb.tmp tmp.o opt_compat.h pci_if.h bus_if.h device_if.h
> > rm -f .depend GPATH GRTAGS GSYMS GTAGS
> > ===> rue
> > ".depend", line 1: Need an operator
> > ".depend", line 3: Need an operator
> > ".depend", line 4: Need an operator
> > ".depend", line 5: Need an operator
> > ".depend", line 6: Need an operator
> > ".depend", line 9: Need an operator
> > ".depend", line 18: Need an operator
> > ".depend", line 20: Need an operator
> > ".depend", line 21: Need an operator
> > ".depend", line 25: Need an operator
> > ".depend", line 43: Need an operator
> > make: fatal errors encountered -- cannot continue
> > *** Error code 1
> > 
> > Stop in /usr/src/sys/modules.
> > *** Error code 1
> > 
> > Stop in /usr/obj/usr/src/sys/DEMON01.
> > *** Error code 1
> > 
> > Stop in /usr/src.
> > *** Error code 1
> > 
> > Stop in /usr/src.
> > 
> > /usr/src
> 
> Sounds like maybe something involved with make(1) itself got
> corrupted.  Rare, but it happens.  Reinstalling the base system
> would probably help (just do a "binary upgrade" -- you don't need
> to reinstall the whole system).

No, probably he just neds to 'make cleandir' in /usr/src/sys/modules,
or remove /usr/obj, to clean up from his failed previous build.

Kris
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20050428/ba550869/attachment.bin


More information about the freebsd-questions mailing list