Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Aug 2019 14:38:45 +0000
From:      Glen Barber <gjb@freebsd.org>
To:        Domagoj =?utf-8?B?U21vbMSNacSH?= <rank1seeker@gmail.com>
Cc:        hackers@freebsd.org
Subject:   Re: MAKEOBJDIRPREFIX fails if it has dot '.' in dir name (maybe also with some other chars)
Message-ID:  <20190812143845.GP75221@FreeBSD.org>
In-Reply-To: <20190812151735.000070b0@gmail.com>
References:  <20190812151735.000070b0@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
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


[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEjRJAPC5sqwhs9k2jAxRYpUeP4pMFAl1RefUACgkQAxRYpUeP
4pPgABAAo3FLib9Z91y3GaafW2tPOfg1tACuOLTLh6OZPgZ1kle6wKMdFCzj7P4j
QUSinXl2hK6CZBzXCJq7irdlQJ2c832SdHZ7JX058cf1weZ30JdLRd9mk0vDyXCG
wAUoOJxYPsCuWB9Bldnt6v3GEPodJ/jc4L+X0a3+/SaF83MMjPHU47Xs0UnchsuK
QJ42GdPySjxFLlVYYUQproxx+fuM/h2IwG6qCoKA2TYKzifgRsYaiVAxK8nctOZz
qwURqOdXW2a4Nkmc/6YDbNisLFsZztde6HbcG50VoVqXbUpX5lAES8npA7O55hQV
xuCHG3SU5bTh0m4byLLM3KqzV1Gi0oGvycnJYTJJZeh1w9+d1DLHxuizBORvU9Z4
ozI0qvfOjTooXuvm6karUaPZQRm8tpdFrW+IOwJsAdNrm6b40kXGIcYKew2CNPp9
qKq5gTml8dxSFhJ8/oklSQjwG6TndPbeAogIqKBdjGf1d1fSn1lEEcw7kmMSd4gM
YPHgCvYtf6bHkt8O7rCDKCvzVqBB50JklR5nqZB9TnocYAp4ugPBu574MrGWWnbV
41Jw+BHNNw9zwaQatP2jxdUdOd0lK6ntMmQujUY6RAgwrGCvuGkXUwsrJaeAHr16
M+GiDidDCNgI0XkeNWA0ZMtAqYrs641tAj6IK8zGSenuIc2gzAs=
=mYOJ
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190812143845.GP75221>