Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Aug 2016 04:07:45 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Don Lewis <truckman@FreeBSD.org>, freebsd-current@FreeBSD.org, Kevin Oberman <rkoberman@gmail.com>
Subject:   Re: PORTS_MODULES breakage on HEAD
Message-ID:  <896880bc-3ac8-8cf9-bf25-7cf270571019@FreeBSD.org>
In-Reply-To: <a8f74d1a-c671-ac3c-8428-cba827708284@FreeBSD.org>
References:  <201608080044.u780iEuP026615@gw.catspoiler.org> <a8f74d1a-c671-ac3c-8428-cba827708284@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--w5EGPaNNJ271k50qm0N6JOK7JNDxHx18w
Content-Type: multipart/mixed; boundary="bbbSLFEJNxERx69FRelQSeJHELRhHw2sG"
From: Bryan Drewery <bdrewery@FreeBSD.org>
To: Don Lewis <truckman@FreeBSD.org>, freebsd-current@FreeBSD.org,
 Kevin Oberman <rkoberman@gmail.com>
Message-ID: <896880bc-3ac8-8cf9-bf25-7cf270571019@FreeBSD.org>
Subject: Re: PORTS_MODULES breakage on HEAD
References: <201608080044.u780iEuP026615@gw.catspoiler.org>
 <a8f74d1a-c671-ac3c-8428-cba827708284@FreeBSD.org>
In-Reply-To: <a8f74d1a-c671-ac3c-8428-cba827708284@FreeBSD.org>

--bbbSLFEJNxERx69FRelQSeJHELRhHw2sG
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: quoted-printable

On 8/10/2016 4:20 PM, Bryan Drewery wrote:
> On 8/7/16 5:44 PM, Don Lewis wrote:
>> Adding PORTS_MODULES=3Demulators/virtualbox-ose-kmod recently broke on=

>> HEAD.  When I do that I get this failure:
>>
>> =3D=3D=3D> Ports module emulators/virtualbox-ose-kmod (all)
>> cd ${PORTSDIR:-/usr/ports}/emulators/virtualbox-ose-kmod; PATH=3D/usr/=
obj/usr/src/
>> tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/s=
rc/tmp/leg
>> acy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/sb=
in:/bin:/u
>> sr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin  SRC_BASE=3D/usr/src  =
OSVERSION=3D12
>> 00000  WRKDIRPREFIX=3D/usr/obj/usr/src/sys/ make -B clean all
>> =3D=3D=3D>  Cleaning for virtualbox-ose-kmod-5.0.26_1
>> =3D=3D=3D>  License GPLv2 accepted by the user
>> =3D=3D=3D>  Found saved configuration for virtualbox-ose-kmod-4.3.34
>> =3D=3D=3D>   virtualbox-ose-kmod-5.0.26_1 depends on file: /usr/local/=
sbin/pkg - found
>> =3D=3D=3D> Fetching all distfiles required by virtualbox-ose-kmod-5.0.=
26_1 for buildin
>> g
>> =3D=3D=3D>  Extracting for virtualbox-ose-kmod-5.0.26_1
>> =3D> SHA256 Checksum OK for VirtualBox-5.0.26.tar.bz2.
>> =3D=3D=3D>  Patching for virtualbox-ose-kmod-5.0.26_1
>> =3D=3D=3D>  Applying FreeBSD patches for virtualbox-ose-kmod-5.0.26_1
>> =3D=3D=3D>   virtualbox-ose-kmod-5.0.26_1 depends on executable: kmk -=
 found
>> =3D=3D=3D>  Configuring for virtualbox-ose-kmod-5.0.26_1
>> Checking for environment: Determined build machine: freebsd.amd64, tar=
get machin
>> e: freebsd.amd64, OK.
>> Checking for kBuild: found, OK.
>> Checking for gcc:
>>   ** cc -target x86_64-unknown-freebsd12.0 --sysroot (variable CC) not=
 found!
>> Check /usr/obj/usr/src/sys/usr/ports/emulators/virtualbox-ose-kmod/wor=
k/VirtualB
>> ox-5.0.26/configure.log for details
>> =3D=3D=3D>  Script "configure" failed unexpectedly.
>> Please report the problem to vbox@FreeBSD.org [maintainer] and attach =
the
>> "/usr/obj/usr/src/sys//usr/ports/emulators/virtualbox-ose-kmod/work/Vi=
rtualBox-5
>> .0.26/config.log"
>>
>>
>> It appears that the problem is due to CC being set to:
>> 	cc -target x86_64-unknown-freebsd12.0 --sysroot
>> and the Makefile for the port passes this:
>> 	--with-gcc=3D"${CC}"
>> to configure.  The configure script passes $CC to check_avail, which
>> does a -z test on it.
>>
>> I think that CC should just be set to "cc" and the rest should get add=
ed
>> to CFLAGS.  I suspect this got broken by the recent crossbuild changes=
=2E
>>
>=20
>=20
> It's a SYSTEM_COMPILER bug.  I'll look into fixing it.
>=20
> For now you can try passing WITHOUT_SYSTEM_COMPILER=3Dyes as a workarou=
nd.
>=20
>=20

I've committed a fix to head in r304005. I will MFC it to stable/11 in
about a week.

--=20
Regards,
Bryan Drewery


--bbbSLFEJNxERx69FRelQSeJHELRhHw2sG--

--w5EGPaNNJ271k50qm0N6JOK7JNDxHx18w
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQEcBAEBAgAGBQJXra4BAAoJEDXXcbtuRpfPtCgIAL2elshP7PgpIjDtS+H8gw+V
6A2qn/VktFeR7iOOPeDWFYv+DWUpkR2ZEbpwmJxtPR3XGv+BNvph2gxlSFFTKSit
ggrtp3XvjvoEn4S14BQSM53KhnCqjXhmkPlCThBOxteWsywwRcGeJ4JwsBpFFc2V
dO+w/e/XajunUBt9+gJb/irjjK3KLJbHtpMJmeB2AlWy2WGsg6ovlXZ66p9GuK05
vBJjMLFN76tvdjQwD0TxK/k4xI/lbxUqyLa349icxMGbw9/X8QnjkwE+tWNr3Ngi
M3aGI32O6d5oBBxg2FCrgVT0J443aaEsD+4b3WQn7XWe8cvrAH1BShdPF/iO7J4=
=0fQT
-----END PGP SIGNATURE-----

--w5EGPaNNJ271k50qm0N6JOK7JNDxHx18w--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?896880bc-3ac8-8cf9-bf25-7cf270571019>