Re: Makefile Problem of FreeBSD-Current

From: Warner Losh <imp_at_bsdimp.com>
Date: Sun, 11 May 2014 09:14:46 -0600
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
Received on Sun May 11 2014 - 13:14:50 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:40:49 UTC