Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Sep 2013 20:19:48 -0400 (EDT)
From:      Julio Merino <julio@meroh.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   ports/182136: USE_GCC defaults to 4.6 but gcc46 does not support powerpc64
Message-ID:  <201309160019.r8G0JmGj064745@mastodon.meroh.net>
Resent-Message-ID: <201309160030.r8G0U01g044500@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309160019.r8G0JmGj064745>