From owner-freebsd-ports@freebsd.org Sun Dec 11 09:39:31 2016 Return-Path: Delivered-To: freebsd-ports@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 8A122C72C4E; Sun, 11 Dec 2016 09:39:31 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from ainaz.pair.com (ainaz.pair.com [209.68.2.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 68FB218A4; Sun, 11 Dec 2016 09:39:30 +0000 (UTC) (envelope-from gerald@pfeifer.com) Received: from anthias (vie-188-118-249-201.dsl.sil.at [188.118.249.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ainaz.pair.com (Postfix) with ESMTPSA id 08EE93F530; Sun, 11 Dec 2016 04:39:27 -0500 (EST) Date: Sun, 11 Dec 2016 10:39:26 +0100 (CET) From: Gerald Pfeifer To: Mark Millard , vbox@FreeBSD.org cc: Dimitry Andric , svn-ports-head@freebsd.org, freebsd-ports@freebsd.org Subject: Re: svn commit: r427110 - head/lang/gcc/files [does lang/gcc49 need such too?] In-Reply-To: Message-ID: References: <86C72DB2-B9ED-4512-A88C-BD1D9A23806F@dsl-only.net> <9D54F0CC-F38C-4CCE-BC33-25C1457BD44B@FreeBSD.org> <5C936BA8-6941-431A-B05F-31030816F85C@dsl-only.net> <487153E5-EF53-4960-9364-23992D7E0F76@dsl-only.net> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 11 Dec 2016 09:39:31 -0000 Hi Mark, On Sat, 10 Dec 2016, Mark Millard wrote: > [Top post of example lack of lang/gcc6-devel vs. lan/gcc6 > substitutability. Context /usr/ports/ at -r428325 (other > than a few specially controlled items.] I had another look, and lang/gcc6 and lang/gcc6-devel really are substitutable in what they provide. > After installing lang/gcc6-devel something else indirectly > forced lang/gcc6 to try to build. The attempt failed with: That means that "something else indirectly forc[ing] lang/gcc6" is what appears to be going on here. I double checked Mk/bsd.gcc.mk and failed to find anything (which also would be surprising given no other reports in the last decade). vbox@, any ideas? Gerald > The specific example turns out to be. . . > > emulators/virtualbox-ose-additions leads to: > > ===>>> The following actions will be taken if you choose to proceed: > Upgrade virtualbox-ose-additions-5.1.8 to virtualbox-ose-additions-5.1.10 > Install devel/kBuild > Install lang/gcc6 > Install textproc/flex > > and lang/gcc6 tries to build during devel/kBuild and the 3 > non-lang/gcc6 items above have: > > # grep -i gcc emulators/virtualbox-ose-additions/Makefile devel/kBuild/Makefile textproc/flex/Makefile > emulators/virtualbox-ose-additions/Makefile:CONFIGURE_ARGS+= --nofatal --with-gcc="${CC}" --with-g++="${CXX}" > emulators/virtualbox-ose-additions/Makefile: @${ECHO} 'VBOX_GCC_std = -std=c++11' >> ${WRKSRC}/LocalConfig.kmk > emulators/virtualbox-ose-additions/Makefile: @${ECHO} 'VBOX_GCC_Wno-unused-parameter = -Wno-unused-parameter' >> \ > devel/kBuild/Makefile:USE_GCC= any > devel/kBuild/Makefile: ${REINPLACE_CMD} -e 's|gcc|${CC}|g' $$f ; \ > > In a context with: > > # pkg info | grep -i gcc > gcc6-devel-6.2.1.s20161201 GNU Compiler Collection 6 > powerpc64-gcc-6.2.0 Cross GNU Compiler Collection for powerpc64 > powerpc64-xtoolchain-gcc-0.1 Pre seeded toolchain to cross build FreeBSD base > > # more /etc/make.conf > WANT_QT_VERBOSE_CONFIGURE=1 > # > DEFAULT_VERSIONS+=perl5=5.24 > WRKDIRPREFIX=/usr/obj/portswork > WITH_DEBUG= > WITH_DEBUG_FILES= > MALLOC_PRODUCTION= > > > So apparently lang/gcc6-devel can not substitute for lang/gcc6 > automatically. > > > > Now that devel/powerpc64-gcc is 6.2.0 based it and lang/gcc6 may also > conflict (I do not know yet: build in progress). > > > > === > Mark Millard > markmi at dsl-only.net