Re: reproducible builds: what is make[5]: warning: /lib/geom: Permission denied

From: Minsoo Choo <minsoochoo0122_at_proton.me>
Date: Tue, 20 Jan 2026 16:33:00 UTC
On Tuesday, January 20th, 2026 at 11:29 AM, Minsoo Choo <minsoochoo0122@proton.me> wrote:

> On Tuesday, January 20th, 2026 at 11:18 AM, Warner Losh <imp@bsdimp.com> wrote:
>
>> On Tue, Jan 20, 2026 at 9:16 AM Ed Maste <emaste@freebsd.org> wrote:
>>
>>> On Tue, 20 Jan 2026 at 11:11, Minsoo Choo <minsoochoo0122@proton.me> wrote:
>>>> On Tuesday, January 20th, 2026 at 9:44 AM, Bjoern A. Zeeb <bzeeb-lists@lists.zabbadoz.net> wrote:
>>>> > during buildworld (sorry only make -s) as user I see:
>>>> >
>>>> > make[5]: warning: /lib/geom: Permission denied
>>>> >
>>>> > Anyone wants to investigate?
>>>> >
>>>> Ed says this has been happening for a month. I suspect that make forgets append /usr/obj on build. (could be env issue)
>>>
>>> Many months, not one month. In fact I see a report on -current from
>>> bz@ from 2021 about this same sort of issue. In that thread there's a
>>> message from Warner that https://reviews.freebsd.org/D30990 might be a
>>> fix -- I see it's still not committed.
>>
>> Oh! Has it been that long... I like it, simon had an issue, but it doesn't like like Jess' follow up went anywhere....
>>
>> Warner
>
> I just tested on main and it solves the issue. I'll CC and ping her on phab.

Nvm, this was merged to main but reverted in 3cc91b77514d.

The commit message says:
Revert "src.sys.obj.mk: Export OBJTOP"
Unfortunately this results in make universe's environment, i.e. corresponding to the host, being used for every one of its sub-makes, so they're in the wrong place and trample over each other. This reverts commit 2b7c1402f96be2d2986738e32706dab7b5691ef0.