DragonFly master build failures

Aaron LI aly at aaronly.me
Wed Mar 4 22:05:54 PST 2026


On 3/3/26 11:30 AM, Aaron LI wrote:
> On 3/3/26 4:26 AM, Autumn Jolitz wrote:
>> I bumped my src to latest master today - it added two commits.
>>
>> However I’m getting a build failure. I’m going to try the following 
>> steps to see if I can get an actionable *something*.
>>
>> 1. Remove MAKEOBJDIRPREFIX, try build
>> 2. Reset master to HEAD~2, try build
>>
>> Autumn
>>
>> Build failure 1:
>> $ sudo -H git -C /usr/src switch master
>> $ sudo -H git -C /usr/src pull
>> $ sudo -H git -C /usr/src rev-parse HEAD
>> 447e693def340f0816784a1567986dda486bb2f9
>> $ sudo -H cp /usr/src/sys/config/X86_64_GENERIC /usr/src/sys/config/NYX
>> $ sudo -H make -C /usr/src MAKEOBJDIRPREFIX=/usr/obj/master 
>> KERNCONF=NYX build-all
>> … /snip
>> --- grep_stub.c ---
>> make[6]: don't know how to make /usr/src/gnu/usr.bin/grep/ 
>> libgreputils/ libgreputils.a. Stop
>>
>> make[6]: stopped making "exe" in /usr/src/initrd/rescue
>> *** Error code 2
> I can reproduce this error, and I'll try to fix it.
> 
> By the way, removing MAKEOBJDIRPREFIX should make the build-all work.

I've identified the cause and it turned to be a misunderstanding and 
misuse of MAKEOBJDIRPREFIX.  This variable must be set as an 
*environment* variable instead of giving as a make variable.  So the 
correct use is:

     $ env MAKEOBJDIRPREFIX=/usr/obj/master make ...

By the way, I've added a check to verify the correct use of 
MAKEOBJDIRPREFIX and it will simply abort the build if it's misused.


Cheers,
Aaron


More information about the Users mailing list