Re: 1st build stops when WITH_AUTO_OBJ=yes

From: Renato Botelho <garga_at_FreeBSD.org>
Date: Thu, 10 Nov 2016 08:23:06 -0200
> On 9 Nov 2016, at 19:48, Simon J. Gerraty <sjg_at_juniper.net> wrote:
> 
> Renato Botelho <garga_at_freebsd.org> wrote:
> 
>> I decided to give a try to WITH_AUTO_OBJ and noted the first time I ran buildworld it failed with following message:
>> 
>> /u/src # ❯❯❯ make WITH_AUTO_OBJ=yes buildworld
>> [Creating objdir obj...]
>> make: "/usr/src/share/mk/auto.obj.mk" line 61: could not use obj: .OBJDIR=/usr/src/obj
>> 
>> After that I noted it created a directory /usr/src/obj and if I call
>> it again it runs without issues. If I remove /usr/src/obj directory
>> error happens again
> 
> Interesting; what .OBJDIR do you end up with for say bin/cat ?


In this case it fails the first time pointing to expected .OBJDIR, then second time I run it builds

/u/s/b/cat # ❯❯❯ make -DWITH_AUTO_OBJ
[Creating objdir obj...]
make: "/usr/src/share/mk/auto.obj.mk" line 61: could not use obj: .OBJDIR=/usr/obj/usr/src/bin/cat
/u/s/b/cat # ❯❯❯ make -DWITH_AUTO_OBJ                                                                                                                                              ⏎
Building /usr/obj/usr/src/bin/cat/cat.o
Building /usr/obj/usr/src/bin/cat/cat.full
Building /usr/obj/usr/src/bin/cat/cat.debug
Building /usr/obj/usr/src/bin/cat/cat
--
Renato Botelho
Received on Thu Nov 10 2016 - 09:23:11 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:08 UTC