MAKEOBJDIRPREFIX fails if it has dot '.' in dir name (maybe also with some other chars)
Domagoj Smolčić
rank1seeker at gmail.com
Mon Aug 12 15:30:50 UTC 2019
On Mon, 12 Aug 2019 14:38:45 +0000
Glen Barber <gjb at freebsd.org> wrote:
> 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.
Ups!
You were right Glen.
Well, that happens when you copy-paste a lot.
I haven't selected 'env' part.
# env make MAKEOBJDIRPREFIX=/usr/obj/usr.LOCAL buildworld
worked, as well as:
# env MAKEOBJDIRPREFIX=/usr/obj/usr.LOCAL make buildworld
Domagoj
> > 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
>
>
More information about the freebsd-hackers
mailing list