Using "make -d l" makes buildworld to fail

Harti Brandt hartmut.brandt at
Mon Sep 5 08:05:46 PDT 2005

On Thu, 4 Aug 2005, Ruslan Ermilov wrote:

RE>On Thu, Jul 28, 2005 at 08:14:15PM +0200, Jeremie Le Hen wrote:
RE>> Hi,
RE>> I have to run multiple buildworlds with and without debugging ("-d l")
RE>> these last days.  I was nearly turning mad while I realized that
RE>> buildworld would fail in "rescue" when using "-d l" make option.
RE>> Both typescripts with and without the debugging option are available :
RE>> (ko)
RE>> (ok)
RE>> This is not the stock source tree, but I checked on a non-modified
RE>> tree and the behaviour is the same.
RE>crunchgen(1) is broken: it generates a makefile to find a
RE>list of object files for a given program, then calls it,
RE>parses the output, and expects it to start with the line
RE>"OBJS=".  If something is passed in the MAKEFLAGS environment
RE>variable, like -Dl, things are really screwed.

Couldn't we make crunchgen just to ignore lines that don't start with 
OBJS=? Or we could finally make make(1) to spit debug output on stderr.


RE>Unfortunately, there's no way to remove "-d" and its
RE>following argument from .MAKEFLAGS as is done for -P
RE>(in rescue/rescue/Makefile), and setting an empty
RE>.MAKEFLAGS is not an option too -- we at least need
RE>to pass the -m option and its argument.  :(

More information about the freebsd-current mailing list