Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Apr 2026 22:35:29 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 294436] bmake: Linux cross-build fails, MAKEOBJDIR issue
Message-ID:  <bug-294436-227-sey5YbpdxN@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-294436-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=294436

--- Comment #1 from Simon J. Gerraty <sjg@FreeBSD.org> ---
bmake itself builds on Linux (and just about anything else) just fine.
That you got as far as `buildworld` suggests it built ok via make.py too.

There should be no functional change in this version of bmake, it is just more
efficient about when to set OP_SUBMAKE, which doesn't matter much on FreeBSD
since the job pool descriptors are passed to all children anyway.

src.sys.obj.mk is fatally flawed, at least in conjunction with the current
top-level build - it both needs to export OBJTOP, but at the same time cannot
without breaking.  We've tried "fixing" it both ways - neither works.

This is the cause of all the warnings about /lib permission denied etc.

You might find it useful to put the following in share/mk/site.sys.env.mk
though in your case it may get included too late (you could reverse the order
of includes in local.sys.env.mk if so

```
# site.sys.env.mk
MAKE_PRINT_VAR_ON_ERROR += \
        .CURDIR \
        .OBJDIR \
        SRCTOP \
        OBJTOP \
        MAKEOBJDIR \

```

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-294436-227-sey5YbpdxN>