buildworld not working with MAKEOBJDIRPREFIX
O. Hartmann
ohartmann at walstatt.org
Tue May 16 12:18:44 UTC 2017
On Tue, 16 May 2017 09:39:11 +0100
Roger Pau Monné <roger.pau at citrix.com> wrote:
> Hello,
>
> I'm trying to build world as a regular user, using sources fetched into my
> home directory and a different object directory. The rune I'm using to build
> is:
>
> $ cd /home/royger/buildjob/freebsd
> $ make -j30 buildworld MAKEOBJDIRPREFIX=/home/royger/buildjob/obj/
As far as I know, in this construct, MAKEOBJDIRPREFIX is an argument to make,
but MAKEOBJDIRPREFIX is strictly required to be set in the environment!
Have you tried the following setting:
env MAKEOBJDIRPREFIX=/home/royger/buildjob/obj/ make -j30 buildworld
I do this kind of task as root this way (as it doesn't work as you showed,
either).
Kind regards,
Oliver
>
> And this leads to the following build error:
>
> --- all_subdir_rescue ---
> --- cat.lo ---
> cc -target x86_64-unknown-freebsd12.0
> --sysroot=/home/royger/buildjob/obj//usr/home/royger/buildjob/freebsd/tmp
> -B/home/royger/buildjob/obj//usr/home/royger/buildjob/freebsd/tmp/usr/bin -O2
> -pipe -std=gnu99 -Qunused-arguments -nostdlib -Wl,-dc -r -o cat.lo
> cat_stub.o /home/royger/buildjob/obj//usr/home/royger/buildjob/freebsd/rescue/rescue//usr/home/royger/buildjob/freebsd/bin/cat/cat.o
> cc: error: no such file or directory:
> '/home/royger/buildjob/obj//usr/home/royger/buildjob/freebsd/rescue/rescue//usr/home/royger/buildjob/freebsd/bin/cat/cat.o'
> *** [cat.lo] Error code 1
>
> AFAIK this should work fine, does anyone has any clues about what causes this
> failure?
>
> Thanks, Roger.
>
> _______________________________________________
> freebsd-current at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe at freebsd.org"
More information about the freebsd-current
mailing list