Re: buildworld problem

From: Warner Losh <imp_at_bsdimp.com>
Date: Fri, 05 Sep 2025 14:26:25 UTC
I fixed this last night on main and stable/15. You are correct: make won't
mkdir on stop of a regular file. Removing that file will allow the build to
succeed. You can do that manually w/o updating, or you can update where
I've hung the rm off the usual depend cleanup we do.

Warner

Warner

On Thu, Sep 4, 2025 at 10:03 PM Ian Freislich <ianfreislich@gmail.com>
wrote:

> On September 4, 2025 23:58:39 Brian <brian@sonicboom.org> wrote:
>
> I am running current in a vm in proxmox and started seeing this today.
>>
>> ===> usr.bin/mail/tests (includes)
>> --- includes_subdir_usr.sbin ---
>> --- includes_subdir_usr.sbin/moused ---
>> --- includes_subdir_usr.sbin/moused/moused ---
>> ===> usr.sbin/moused/moused (includes)
>> [Creating objdir /usr/obj/usr/src/amd64.amd64/usr.sbin/moused/moused...]
>> mkdir: /usr/obj/usr/src/amd64.amd64/usr.sbin/moused/moused: File exists
>> make[5]: /usr/src/share/mk/auto.obj.mk:74: could not use
>> /usr/obj/usr/src/amd64.amd64/usr.sbin/moused/moused:
>> .OBJDIR=/usr/src/usr.sbin/moused/moused
>>          in /usr/src/share/mk/sys.mk:105
>>          in make[5] in directory "/usr/src/usr.sbin/moused/moused"
>>
>> make[5]: stopped making "includes" in /usr/src/usr.sbin/moused/moused
>>
>> make[4]: stopped making "includes" in /usr/src/usr.sbin/moused
>>
>> make[3]: stopped making "includes" in /usr/src/usr.sbin
>> --- includes_subdir_usr.bin ---
>> --- includes_subdir_usr.bin/locate ---
>> --- includes_subdir_usr.bin/locate/locate ---
>> ===> usr.bin/locate/locate (includes)
>> --- includes_subdir_usr.bin/ldd32 ---
>>
>> make[3]: stopped making "includes" in /usr/src/usr.bin
>> --- includes_subdir_usr.bin/mail ---
>>
>> make[4]: stopped making "includes" in /usr/src/usr.bin/mail
>>
>> make[3]: stopped making "includes" in /usr/src/usr.bin
>> --- includes_subdir_usr.bin/locate ---
>>
>> make[4]: stopped making "includes" in /usr/src/usr.bin/locate
>>
>> make[3]: stopped making "includes" in /usr/src/usr.bin
>>
>> make[2]: stopped making "includes" in /usr/src
>> --- includes_subdir_usr.sbin ---
>> --- includes_subdir_usr.sbin/vidcontrol ---
>>
>> make[3]: stopped making "includes" in /usr/src/usr.sbin
>> --- includes_subdir_usr.sbin/bsdinstall ---
>>
>> make[3]: stopped making "includes" in /usr/src/usr.sbin
>>
>> make[2]: stopped making "includes" in /usr/src
>>         20.98 real        78.69 user        14.56 sys
>>
>> make[1]: stopped making "buildworld" in /usr/src
>>
>> make: stopped making "buildworld" in /usr/src
>>
>
> This bit me too. It's trying to make a directory but a file of that name
> already exists. Just rm /usr/obj/usr/src/amd64.amd64/usr.sbin/moused/moused
>
> Ian
>