Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 May 2017 14:18:36 +0200
From:      "O. Hartmann" <ohartmann@walstatt.org>
To:        Roger Pau =?ISO-8859-1?Q?Monn=E9?= <roger.pau@citrix.com>
Cc:        <freebsd-current@freebsd.org>
Subject:   Re: buildworld not working with MAKEOBJDIRPREFIX
Message-ID:  <20170516141836.6974fdf5@freyja.zeit4.iv.bundesimmobilien.de>
In-Reply-To: <20170516083911.agudcf7m62xiyhui@dhcp-3-128.uk.xensource.com>
References:  <20170516083911.agudcf7m62xiyhui@dhcp-3-128.uk.xensource.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 16 May 2017 09:39:11 +0100
Roger Pau Monn=C3=A9 <roger.pau@citrix.com> wrote:

> Hello,
>=20
> 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 bu=
ild
> is:
>=20
> $ cd /home/royger/buildjob/freebsd
> $ make -j30 buildworld MAKEOBJDIRPREFIX=3D/home/royger/buildjob/obj/

As far as I know, in this construct, MAKEOBJDIRPREFIX is an argument to mak=
e,
but MAKEOBJDIRPREFIX is strictly required to be set in the environment!

Have you tried the following setting:

env MAKEOBJDIRPREFIX=3D/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
>=20
> And this leads to the following build error:
>=20
> --- all_subdir_rescue ---
> --- cat.lo ---
> cc -target x86_64-unknown-freebsd12.0
> --sysroot=3D/home/royger/buildjob/obj//usr/home/royger/buildjob/freebsd/t=
mp
> -B/home/royger/buildjob/obj//usr/home/royger/buildjob/freebsd/tmp/usr/bin=
 -O2
> -pipe   -std=3Dgnu99    -Qunused-arguments   -nostdlib -Wl,-dc -r -o cat.=
lo
> cat_stub.o /home/royger/buildjob/obj//usr/home/royger/buildjob/freebsd/re=
scue/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/rescu=
e//usr/home/royger/buildjob/freebsd/bin/cat/cat.o'
> *** [cat.lo] Error code 1
>=20
> AFAIK this should work fine, does anyone has any clues about what causes =
this
> failure?
>=20
> Thanks, Roger.
>=20
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org"




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