Makefile Problem of FreeBSD-Current

Warner Losh imp at bsdimp.com
Sun May 11 15:14:50 UTC 2014


On May 11, 2014, at 6:49 AM, bycn82 <bycn82 at gmail.com> wrote:

> As you can see below . it still did not find the src.opts.mk
> 
> 
> root at FB10Head:/usr/src/sbin/ipfw # make
> make: "/usr/src/sbin/ipfw/Makefile" line 3: Could not find src.opts.mk
> make: "/usr/src/sbin/ipfw/Makefile" line 9: Malformed conditional (${MK_PF} != "no")
> make: "/usr/src/sbin/ipfw/../Makefile.inc" line 4: Could not find src.opts.mk
> make: "/usr/src/sbin/ipfw/../Makefile.inc" line 9: Malformed conditional (${MK_DYNAMICROOT} == "no")
> make: Fatal errors encountered -- cannot continue
> make: stopped in /usr/src/sbin/ipfw
> root at FB10Head:/usr/src/sbin/ipfw # uname -a
> FreeBSD FB10Head 11.0-CURRENT FreeBSD 11.0-CURRENT #0 r265868: Sun May 11 11:44:35 UTC 2014     root at FB10Head:/usr/obj/usr/src/sys/GENERIC  amd64

From UPDATING:

20140505:
        /etc/src.conf now affects only builds of the FreeBSD src tree. In the
        past, it affected all builds that used the bsd.*.mk files. The old
        behavior was a bug, but people may have relied upon it. To get this
        behavior back, you can .include /etc/src.conf fro20140505:
        /etc/src.conf now affects only builds of the FreeBSD src tree. In the
        past, it affected all builds that used the bsd.*.mk files. The old
        behavior was a bug, but people may have relied upon it. To get this
        behavior back, you can .include /etc/src.conf from /etc/make.conf
        (which is still global and isn't changed). This also changes the
        behavior of incremental builds inside the tree of individual
        directories. Set MAKESYSPATH to ".../share/mk" to do that.
        Although this has survived make universe and some upgrade scenarios,
        other upgrade scenarios may have broken. At least one form of
        temporary breakage was fixed with MAKESYSPATH settings for buildworld
        as well...

Since you are building inside the tree, did you set MAKESYSPATH as outlined in UPDATING?

Warner



More information about the freebsd-current mailing list