MAKEOBJDIRPREFIX fails if it has dot '.' in dir name (maybe also with some other chars)
Glen Barber
gjb at freebsd.org
Mon Aug 12 14:38:48 UTC 2019
On Mon, Aug 12, 2019 at 03:17:35PM +0200, Domagoj Smolčić wrote:
> 11.3-RELEASE-p2
>
>
> # make MAKEOBJDIRPREFIX=/usr/obj/usr.LOCAL buildworld
You set MAKEOBJDIRPREFIX two different ways. Here you did not set it
in the environment, but as a variable to make(1). The way you did this
below is correct.
> make[1]: "/usr/src/Makefile.inc1" line 163: SYSTEM_COMPILER: Determined that CC=cc matches the source tree. Not bootstrapping a cross-compiler.
> --------------------------------------------------------------
> >>> World build started on Sat Aug 12 11:57:54 CEST 2019
> --------------------------------------------------------------
>
> --------------------------------------------------------------
> >>> Rebuilding the temporary build tree
> --------------------------------------------------------------
> rm -rf /usr/obj/usr.LOCAL/usr/src/tmp
> rm: /usr/obj/usr.LOCAL/usr/src/tmp: Not a directory
> *** Error code 1
>
> Stop.
> make[1]: stopped in /usr/src
> *** Error code 1
>
> Stop.
> make: stopped in /usr/src
>
>
> # env MAKEOBJDIRPREFIX=/usr/obj/usr_LOCAL make buildworld
This worked for me using '.' in the path.
# env MAKEOBJDIRPREFIX=/usr/obj/usr.LOCAL make buildworld
make[1]: "/usr/src/Makefile.inc1" line 163: SYSTEM_COMPILER: Determined that CC=cc matches the source tree. Not bootstrapping a cross-compiler.
--------------------------------------------------------------
>>> World build started on Mon Aug 12 14:38:13 UTC 2019
--------------------------------------------------------------
--------------------------------------------------------------
>>> Rebuilding the temporary build tree
--------------------------------------------------------------
rm -rf /usr/obj/usr.LOCAL/usr/src/tmp
rm -rf /usr/obj/usr.LOCAL/usr/src/lib32
mkdir -p /usr/obj/usr.LOCAL/usr/src/tmp/lib
mkdir -p /usr/obj/usr.LOCAL/usr/src/tmp/lib/casper
mkdir -p /usr/obj/usr.LOCAL/usr/src/tmp/usr
Glen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20190812/be3840c8/attachment.sig>
More information about the freebsd-hackers
mailing list