From owner-freebsd-current@freebsd.org Mon Aug 8 03:20:45 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 A7BD3BB120B for ; Mon, 8 Aug 2016 03:20:45 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: from mail-io0-x229.google.com (mail-io0-x229.google.com [IPv6:2607:f8b0:4001:c06::229]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6F35D1BFA; Mon, 8 Aug 2016 03:20:45 +0000 (UTC) (envelope-from kob6558@gmail.com) Received: by mail-io0-x229.google.com with SMTP id b62so346805521iod.3; Sun, 07 Aug 2016 20:20:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=bA6aMFawwbvcdRnS7uIgQYwr+hlulMKnf7/9u0Y7+0A=; b=WlQklLYZcDFcBZem+f1BxlCfFIpjFN/ORq6Nndd1qhl3BVbXvUzyybnwf6PXJLXWE0 wnP40JRMxcwjJQuc4fa9xPbgeG5ZuK9WRUV3CVf/jopDEduiJRXbjGvix8A/6k63zskl VWIkTqjbwAp3dGN2iHfYDX4wfjg9emKI/HdGgyhT5JYQIDFOCRDUVmmnkOEyUbODGZxR ym3AxldzwH51D3HkRzWrYhs7HiPkj/fnrcHURG+4lhA5Evo3XuqTITQwYgq1HMGypT32 5fFIcRwgTH4vucl9ZiRE6vciB/OXVFzVrRcL4Am4i29zG1TqIt+xYy3kOHpKqqJay5NH FpNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=bA6aMFawwbvcdRnS7uIgQYwr+hlulMKnf7/9u0Y7+0A=; b=G6VULLFG5dQxDlDfXdv8YR4S5V/4nZBbB+/KUOcgxBLcYoyqgqJMRs3a2tsgpUJD+m oECaZVtDY4eWsL4c+b/WMgcI831+dHZ+ouD+0RRKXJD2Vos6FbNW+kp2xuLT46Xn3Y2n +HtrmqB9x+gv4suXwW0uayv10KTFr/Z/D/cKzstsPPVz335YBFIQOU4r5ubmPwbDTErl A2dUZJDoYFbTZfBQSt+5T+UyqUz/IRyrcZo2BjJqsaAF78u5ydwCyOzuEuaD8njMMAX7 dC88R4VXxaBrKbGHlE1Cywu7UgQusqNrxMazQjEqBK8nyUhFQeYWUImBPd702ofgLDe7 Rpug== X-Gm-Message-State: AEkoouvSkcqwGCAQksHkvJ13WyxChHPpwFoMHKHCuEMtttVJC5QLKGIadZt4ZQYzgZedcehgK49mpF7MMMLrJQ== X-Received: by 10.107.129.152 with SMTP id l24mr91460327ioi.179.1470626444672; Sun, 07 Aug 2016 20:20:44 -0700 (PDT) MIME-Version: 1.0 Sender: kob6558@gmail.com Received: by 10.79.119.144 with HTTP; Sun, 7 Aug 2016 20:20:44 -0700 (PDT) In-Reply-To: <201608080044.u780iEuP026615@gw.catspoiler.org> References: <201608080044.u780iEuP026615@gw.catspoiler.org> From: Kevin Oberman Date: Sun, 7 Aug 2016 20:20:44 -0700 X-Google-Sender-Auth: D7rhjgcY_qbgjnbg7FXjuOoNoqA Message-ID: Subject: Re: PORTS_MODULES breakage on HEAD To: Don Lewis Cc: FreeBSD Current Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.22 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 03:20:45 -0000 On Sun, Aug 7, 2016 at 5:44 PM, Don Lewis wrote: > 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. > > _______________________________________________ > 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" > Same issue on 11.0-BETA4 (and at least BETA3). It's not just HEAD. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rkoberman@gmail.com PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683