From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Sep 16 00:30:00 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 91D4B901 for ; Mon, 16 Sep 2013 00:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6D0DE2F11 for ; Mon, 16 Sep 2013 00:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r8G0U0Ds044502 for ; Mon, 16 Sep 2013 00:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r8G0U01g044500; Mon, 16 Sep 2013 00:30:00 GMT (envelope-from gnats) Resent-Date: Mon, 16 Sep 2013 00:30:00 GMT Resent-Message-Id: <201309160030.r8G0U01g044500@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Julio Merino Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 25A97880 for ; Mon, 16 Sep 2013 00:20:49 +0000 (UTC) (envelope-from julio@meroh.net) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.122]) by mx1.freebsd.org (Postfix) with ESMTP id D4C532EC9 for ; Mon, 16 Sep 2013 00:20:48 +0000 (UTC) Received: from [108.176.158.82] ([108.176.158.82:64946] helo=portal.meroh.net) by hrndva-oedge01.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id 82/20-28548-0EE46325; Mon, 16 Sep 2013 00:20:48 +0000 Received: from mastodon.meroh.net (lime-wifi.meroh.net [192.168.1.27]) by portal.meroh.net (Postfix) with ESMTP id 797FDEFE67 for ; Sun, 15 Sep 2013 20:20:44 -0400 (EDT) Received: from mastodon.meroh.net (localhost [127.0.0.1]) by mastodon.meroh.net (8.14.7/8.14.7) with ESMTP id r8G0JmKe064746 for ; Sun, 15 Sep 2013 20:19:48 -0400 (EDT) (envelope-from jmmv@mastodon.meroh.net) Received: (from jmmv@localhost) by mastodon.meroh.net (8.14.7/8.14.7/Submit) id r8G0JmGj064745; Sun, 15 Sep 2013 20:19:48 -0400 (EDT) (envelope-from jmmv) Message-Id: <201309160019.r8G0JmGj064745@mastodon.meroh.net> Date: Sun, 15 Sep 2013 20:19:48 -0400 (EDT) From: Julio Merino To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.114 Subject: ports/182136: USE_GCC defaults to 4.6 but gcc46 does not support powerpc64 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: Julio Merino List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Sep 2013 00:30:00 -0000 >Number: 182136 >Category: ports >Synopsis: USE_GCC defaults to 4.6 but gcc46 does not support powerpc64 >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Sep 16 00:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Julio Merino >Release: FreeBSD 10.0-CURRENT powerpc >Organization: >Environment: System: FreeBSD mastodon.meroh.net 10.0-CURRENT FreeBSD 10.0-CURRENT #5 r255488M: Sun Sep 15 11:17:08 EDT 2013 jmmv@mastodon.meroh.net:/usr/obj/usr/src/sys/GENERIC64 powerpc >Description: The ports system defaults to using gcc46 or above when USE_GCC is set in a package. However, gcc46 does not support powerpc64 so this default is broken in a powerpc64 host. The solution to this problem is one of: 1) Fix gcc46 in powerpc64. Dunno how hard or worthwhile that is. 2) Bump the default to 4.7 for all platforms. Things can break and if the default is still 4.6, there probably is some reason. 3) Bump the default to 4.7 in powerpc64 only. Easy to do, but not consistent across platforms. >How-To-Repeat: Attempt to build www/firefox in a powerpc64 host. See the build abort early due to gcc46 not supporting this platform. >Fix: I think option 3 above is the easiest at the moment and can be achieved with: Index: Mk/bsd.gcc.mk =================================================================== --- Mk/bsd.gcc.mk (revision 327313) +++ Mk/bsd.gcc.mk (working copy) @@ -54,7 +54,12 @@ GCCVERSION_040700= 0 0 4.7 GCCVERSION_040800= 0 0 4.8 +.if ${ARCH} == powerpc64 +# Use gcc47 because the gcc46 port does not support powerpc64. +GCC_DEFAULT_VERSION= 4.7 +.else GCC_DEFAULT_VERSION= 4.6 +.endif GCC_DEFAULT_V= ${GCC_DEFAULT_VERSION:S/.//} # No configurable parts below this. #################################### >Release-Note: >Audit-Trail: >Unformatted: