From nobody@FreeBSD.org  Wed Dec  7 06:12:51 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 96A061065670
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  7 Dec 2011 06:12:51 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 863A08FC17
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  7 Dec 2011 06:12:51 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id pB76Cpvn097206
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 7 Dec 2011 06:12:51 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id pB76CpKd097203;
	Wed, 7 Dec 2011 06:12:51 GMT
	(envelope-from nobody)
Message-Id: <201112070612.pB76CpKd097203@red.freebsd.org>
Date: Wed, 7 Dec 2011 06:12:51 GMT
From: Hon-Yu Lawrence Cheung <cheunghonyu@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: lang/gcc42 build fail on FreeBSD 9.0-RC2
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         163103
>Category:       ports
>Synopsis:       lang/gcc42 build fail on FreeBSD 9.0-RC2
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gerald
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 07 06:20:08 UTC 2011
>Closed-Date:    Sun Dec 11 09:09:47 UTC 2011
>Last-Modified:  Thu Dec 22 15:20:15 UTC 2011
>Originator:     Hon-Yu Lawrence Cheung
>Release:        FreeBSD 9.0-RC2
>Organization:
>Environment:
FreeBSD acer5552.honyucheung.net 9.0-PRERELEASE FreeBSD 9.0-PRERELEASE #10 r228308: Tue Dec  6 20:59:31 HKT 2011     honyu@acer5552.honyucheung.net:/usr/obj/usr/src/sys/ACER5552  amd64

>Description:
build from ports tree and get the errors

The first error point
=====================

checking whether fprintf_unlocked is declared... .././../gcc-4.2-20090325/libcpp/charset.c:1307: error: conflicting types for 'cpp_interpret_string'
././../gcc-4.2-20090325/libcpp/include/cpplib.h:692: error: previous declaration of 'cpp_interpret_string' was here
././../gcc-4.2-20090325/libcpp/charset.c:1362: error: conflicting types for 'cpp_interpret_string_notranslate'
././../gcc-4.2-20090325/libcpp/include/cpplib.h:695: error: previous declaration of 'cpp_interpret_string_notranslate' was here
gmake[3]: *** [charset.o] Error 1
gmake[3]: Leaving directory `/usr/obj/usr/ports/lang/gcc42/work/build/libcpp'
gmake[2]: *** [all-stage1-libcpp] Error 2


The final error message
=======================
gmake[2]: Leaving directory `/usr/obj/usr/ports/lang/gcc42/work/build'
gmake[1]: *** [stage1-bubble] Error 2
gmake[1]: Leaving directory `/usr/obj/usr/ports/lang/gcc42/work/build'
gmake: *** [bootstrap-lean] Error 2
*** Error code 1

>How-To-Repeat:
cd /usr/ports/lang/gcc42
make
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gerald 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Dec 7 06:20:19 UTC 2011 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163103 

From: Jan Beich <jbeich@tormail.net>
To: Hon-Yu Lawrence Cheung <cheunghonyu@gmail.com>
Cc: bug-followup@FreeBSD.org
Subject: Re: ports/163103: lang/gcc42 build fail on FreeBSD 9.0-RC2
Date: Wed, 07 Dec 2011 18:12:32 +0400

 Hon-Yu Lawrence Cheung <cheunghonyu@gmail.com> writes:
 
 > declared... .././../gcc-4.2-20090325/libcpp/charset.c:1307: error:
 > conflicting types for 'cpp_interpret_string'
 > ././../gcc-4.2-20090325/libcpp/include/cpplib.h:692: error: previous declaration of 'cpp_interpret_string' was here
 > ././../gcc-4.2-20090325/libcpp/charset.c:1362: error: conflicting types for 'cpp_interpret_string_notranslate'
 > ././../gcc-4.2-20090325/libcpp/include/cpplib.h:695: error: previous declaration of 'cpp_interpret_string_notranslate' was here
 
 Have you built world WITH_ICONV= ? Try the 2nd patch in ports/161417,
 it should apply to any lang/gcc* version, I've tested only gcc42, gcc46.
State-Changed-From-To: open->closed 
State-Changed-By: gerald 
State-Changed-When: Sun Dec 11 08:28:28 UTC 2011 
State-Changed-Why:  
I have just removed lang/gcc42 from the Ports Collection, so this 
does not apply any more.  Please use lang/gcc46 or later (or lang/gcc) 
instead. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=163103 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/163103: commit references a PR
Date: Sun, 11 Dec 2011 09:07:10 +0000 (UTC)

 gerald      2011-12-11 09:06:56 UTC
 
   FreeBSD ports repository
 
   Modified files:
     lang                 Makefile 
   Removed files:
     lang/gcc42           Makefile distinfo pkg-descr pkg-plist 
     lang/gcc42/files     java-patch-hier 
   Log:
   Remove the lang/gcc42 port (GCC 4.2) which does not have any user in
   the tree any more and has been obsoleted by several newer versions of
   GCC -- ones that actually build on FreeBSD 10.x out of the box and
   provide better support for newer CPUs, better optimizations overall,
   and more advanced language support.
   
   GCC 4.6 aka lang/gcc or lang/gcc46 is the new default version of GCC
   in ports.
   
   The system compiler version of GCC 4.2 is still available up to and
   including FreeBSD 9.x and users of USE_GCC=4.2+ will be transparently
   redirected to lang/gcc if, or rather when, this changes.
   
   PR:             163103
   Feature safe:   yes
   
   Revision  Changes    Path
   1.759     +0 -1      ports/lang/Makefile
   1.362     +0 -106    ports/lang/gcc42/Makefile (dead)
   1.232     +0 -6      ports/lang/gcc42/distinfo (dead)
   1.6       +0 -13     ports/lang/gcc42/files/java-patch-hier (dead)
   1.11      +0 -6      ports/lang/gcc42/pkg-descr (dead)
   1.97      +0 -13     ports/lang/gcc42/pkg-plist (dead)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/163103: commit references a PR
Date: Sun, 11 Dec 2011 09:09:11 +0000 (UTC)

 gerald      2011-12-11 09:09:03 UTC
 
   FreeBSD ports repository
 
   Modified files:
     .                    MOVED 
   Log:
   Remove the lang/gcc42 port (GCC 4.2) which does not have any user in
   the tree any more and has been obsoleted by several newer versions of
   GCC -- ones that actually build on FreeBSD 10.x out of the box and
   provide better support for newer CPUs, better optimizations overall,
   and more advanced language support.
   
   GCC 4.6 aka lang/gcc or lang/gcc46 is the new default version of GCC
   in ports.
   
   The system compiler version of GCC 4.2 is still available up to and
   including FreeBSD 9.x and users of USE_GCC=4.2+ will be transparently
   redirected to lang/gcc if, or rather when, this changes.
   
   PR:             163103
   Feature safe:   yes
   
   Revision  Changes    Path
   1.2697    +2 -1      ports/MOVED
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Jan Beich <jbeich@tormail.net>
To: bug-followup@freebsd.org
Cc:  
Subject: Re: ports/163103: lang/gcc42 build fail on FreeBSD 9.0-RC2
Date: Mon, 12 Dec 2011 07:56:32 +1100

 gerald@FreeBSD.org writes:
 
 > I have just removed lang/gcc42 from the Ports Collection, so this 
 > does not apply any more.  Please use lang/gcc46 or later (or lang/gcc) 
 > instead. 
 
 The issue wasn't gcc42 specific, see
 
   http://docs.freebsd.org/cgi/mid.cgi?4EDEF1FF.5020307

From: Gerald Pfeifer <gerald@pfeifer.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/163103: [patch] Mk/bsd.port.mk: USE_ICONV, treat iconv()
 in libc
Date: Thu, 22 Dec 2011 23:57:29 +0900 (EIT)

 I looked at the patch for lang/gcc and this really is a bad hack.
 
 My recommendation is to unbreak things by making the base system
 more compatible with the iconv port.  Why differ, and cause troubles,
 unless absolutely necessary and very beneficial?
 
 Software like GCC needs to work out of the box, also outside the
 context of ports, so a patch that can be accepted upstream and goes
 there would be great if src is not fixed.
 
 Thanks,
 Gerald

From: Gerald Pfeifer <gerald@pfeifer.com>
To: Jan Beich <jbeich@tormail.net>, bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/163103: lang/gcc42 build fail on FreeBSD 9.0-RC2
Date: Thu, 22 Dec 2011 23:54:25 +0900 (EIT)

 On Sun, 11 Dec 2011, Jan Beich wrote:
 >  The issue wasn't gcc42 specific, see
 
 Fair point, Jan.  So the right status would be duplicate to PR161417?
 
 The GCC patch there is quite a hack, unfortunately.  We'd rather need
 something that can go upstream (and goes upstream), at least for newer
 lang/gcc ports.
 
 And, really, even better not to break things like that in the first
 place and keep interfaces and assumptions in place unless absolutely
 necessary.
 
 Gerald
>Unformatted:
