Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Aug 2016 16:20:23 -0700
From:      Bryan Drewery <bdrewery@FreeBSD.org>
To:        Don Lewis <truckman@FreeBSD.org>, freebsd-current@FreeBSD.org
Subject:   Re: PORTS_MODULES breakage on HEAD
Message-ID:  <a8f74d1a-c671-ac3c-8428-cba827708284@FreeBSD.org>
In-Reply-To: <201608080044.u780iEuP026615@gw.catspoiler.org>
References:  <201608080044.u780iEuP026615@gw.catspoiler.org>

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

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

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:
>=20
> =3D=3D=3D> Ports module emulators/virtualbox-ose-kmod (all)
> cd ${PORTSDIR:-/usr/ports}/emulators/virtualbox-ose-kmod; PATH=3D/usr/o=
bj/usr/src/
> tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/sr=
c/tmp/leg
> acy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/sbi=
n:/bin:/u
> sr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin  SRC_BASE=3D/usr/src  O=
SVERSION=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/s=
bin/pkg - found
> =3D=3D=3D> Fetching all distfiles required by virtualbox-ose-kmod-5.0.2=
6_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, targ=
et 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/work=
/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 t=
he
> "/usr/obj/usr/src/sys//usr/ports/emulators/virtualbox-ose-kmod/work/Vir=
tualBox-5
> .0.26/config.log"
>=20
>=20
> 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.
>=20
> I think that CC should just be set to "cc" and the rest should get adde=
d
> to CFLAGS.  I suspect this got broken by the recent crossbuild changes.=

>=20


It's a SYSTEM_COMPILER bug.  I'll look into fixing it.

For now you can try passing WITHOUT_SYSTEM_COMPILER=3Dyes as a workaround=
=2E


--=20
Regards,
Bryan Drewery


--M6pmrDTCcc70hCPEK43Pf1EHtAAmDfqvK--

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

-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJXq7a4AAoJEDXXcbtuRpfPQr8H/jzeGph7Epn2M3kbbqCvQTvG
qWM1GwhMGKpcz3UxpNZRD6ICfnpebZ4ep3OnDc+K6I4wvcifw1o6trwCs8mXxYBk
J8P0BxN2jtXJtrQDRYYQi2hyg5dsmpxIBjssNvuml9mhuqhv8qnkIPA18weHThWr
ymmGMki760fW1xOczJfjDFgfh0zwOUeqr7mwWpCg0FnYpUO5tGRqMlpuI0WCecig
Xu0NnBwHldW5EDNQidHVrxMyG/rdE/0DItKpZ/CLL5T2WzcgcB3FyCKfHYobLKjE
RXbzxYGuL8jcPshbNCfFdNixIJNF7CI2Sg25E3AvgZ3lfvSuKxCuT8MmxlnZphI=
=ycJ7
-----END PGP SIGNATURE-----

--XNaxvic0GobLdAWKtuVFkdsavi3cBG7aV--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a8f74d1a-c671-ac3c-8428-cba827708284>