From owner-freebsd-current@freebsd.org Mon Aug 8 00:44:21 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 6E551BA958C for ; Mon, 8 Aug 2016 00:44:21 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from gw.catspoiler.org (unknown [IPv6:2602:304:b010:ef20::f2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "gw.catspoiler.org", Issuer "gw.catspoiler.org" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4D22E1362 for ; Mon, 8 Aug 2016 00:44:21 +0000 (UTC) (envelope-from truckman@FreeBSD.org) Received: from FreeBSD.org (mousie.catspoiler.org [192.168.101.2]) by gw.catspoiler.org (8.15.2/8.15.2) with ESMTP id u780iEuP026615 for ; Sun, 7 Aug 2016 17:44:18 -0700 (PDT) (envelope-from truckman@FreeBSD.org) Message-Id: <201608080044.u780iEuP026615@gw.catspoiler.org> Date: Sun, 7 Aug 2016 17:44:14 -0700 (PDT) From: Don Lewis Subject: PORTS_MODULES breakage on HEAD To: freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii 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: Mon, 08 Aug 2016 00:44:21 -0000 Adding PORTS_MODULES=emulators/virtualbox-ose-kmod recently broke on HEAD. When I do that I get this failure: ===> Ports module emulators/virtualbox-ose-kmod (all) cd ${PORTSDIR:-/usr/ports}/emulators/virtualbox-ose-kmod; PATH=/usr/obj/usr/src/ tmp/legacy/usr/sbin:/usr/obj/usr/src/tmp/legacy/usr/bin:/usr/obj/usr/src/tmp/leg acy/bin:/usr/obj/usr/src/tmp/usr/sbin:/usr/obj/usr/src/tmp/usr/bin:/sbin:/bin:/u sr/sbin:/usr/bin:/usr/local/bin:/usr/local/sbin SRC_BASE=/usr/src OSVERSION=12 00000 WRKDIRPREFIX=/usr/obj/usr/src/sys/ make -B clean all ===> Cleaning for virtualbox-ose-kmod-5.0.26_1 ===> License GPLv2 accepted by the user ===> Found saved configuration for virtualbox-ose-kmod-4.3.34 ===> virtualbox-ose-kmod-5.0.26_1 depends on file: /usr/local/sbin/pkg - found ===> Fetching all distfiles required by virtualbox-ose-kmod-5.0.26_1 for buildin g ===> Extracting for virtualbox-ose-kmod-5.0.26_1 => SHA256 Checksum OK for VirtualBox-5.0.26.tar.bz2. ===> Patching for virtualbox-ose-kmod-5.0.26_1 ===> Applying FreeBSD patches for virtualbox-ose-kmod-5.0.26_1 ===> virtualbox-ose-kmod-5.0.26_1 depends on executable: kmk - found ===> Configuring for virtualbox-ose-kmod-5.0.26_1 Checking for environment: Determined build machine: freebsd.amd64, target 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 ===> 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/VirtualBox-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="${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 added to CFLAGS. I suspect this got broken by the recent crossbuild changes.