From owner-freebsd-current@freebsd.org Wed Aug 10 23:20:29 2016 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F2D84BB5EC1 for ; Wed, 10 Aug 2016 23:20:29 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id D635E143F; Wed, 10 Aug 2016 23:20:29 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [IPv6:::1]) by freefall.freebsd.org (Postfix) with ESMTP id CA6A5134B; Wed, 10 Aug 2016 23:20:29 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from mail.xzibition.com (localhost [172.31.3.2]) by mail.xzibition.com (Postfix) with ESMTP id 7D76D1D2CC; Wed, 10 Aug 2016 23:20:29 +0000 (UTC) X-Virus-Scanned: amavisd-new at mail.xzibition.com Received: from mail.xzibition.com ([172.31.3.2]) by mail.xzibition.com (mail.xzibition.com [172.31.3.2]) (amavisd-new, port 10026) with LMTP id ApOkLb7WVsMR; Wed, 10 Aug 2016 23:20:25 +0000 (UTC) Subject: Re: PORTS_MODULES breakage on HEAD DKIM-Filter: OpenDKIM Filter v2.9.2 mail.xzibition.com DCBE51D2C6 To: Don Lewis , freebsd-current@FreeBSD.org References: <201608080044.u780iEuP026615@gw.catspoiler.org> From: Bryan Drewery Organization: FreeBSD Message-ID: Date: Wed, 10 Aug 2016 16:20:23 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: <201608080044.u780iEuP026615@gw.catspoiler.org> Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="XNaxvic0GobLdAWKtuVFkdsavi3cBG7aV" X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Aug 2016 23:20:30 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --XNaxvic0GobLdAWKtuVFkdsavi3cBG7aV Content-Type: multipart/mixed; boundary="M6pmrDTCcc70hCPEK43Pf1EHtAAmDfqvK" From: Bryan Drewery To: Don Lewis , freebsd-current@FreeBSD.org Message-ID: 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--