From nobody@FreeBSD.org  Thu Apr 17 13:46:58 2008
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 B7001106567A
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Apr 2008 13:46:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id ACB308FC18
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Apr 2008 13:46:58 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id m3HDkkck030557
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 17 Apr 2008 13:46:46 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m3HDkk6q030556;
	Thu, 17 Apr 2008 13:46:46 GMT
	(envelope-from nobody)
Message-Id: <200804171346.m3HDkk6q030556@www.freebsd.org>
Date: Thu, 17 Apr 2008 13:46:46 GMT
From: Shin-ichi Okano <s-okano@n08.itscom.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: lang/gcc34 fails to build when sysutils/torque is installed
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         122854
>Category:       ports
>Synopsis:       lang/gcc34 fails to build when sysutils/torque is installed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gerald
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Apr 17 13:50:01 UTC 2008
>Closed-Date:    Mon Jun 09 12:43:49 UTC 2008
>Last-Modified:  Mon Jun 09 12:43:49 UTC 2008
>Originator:     Shin-ichi Okano
>Release:        7.0-STABLE
>Organization:
iTSCOM
>Environment:
FreeBSD kappa3.s-okano.n08.itscom.net 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Mar 29 01:34:16 JST 2008     root@kappa3.s-okano.n08.itscom.net:/usr/obj/usr/src/sys/KAPPA  i386
>Description:
When 'sysutils/torque' is installed, 'lang/gcc34' fails to build with the following message:

cc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H -DGENERATOR_FILE -I/usr/local/include   -I. -I. -I.././..//gcc-3.4.6/gcc -I.././..//gcc-3.4.6/gcc/. -I.././..//gcc-3.4.6/gcc/../include  .././..//gcc-3.4.6/gcc/read-rtl.c -o read-rtl.o
In file included from .././..//gcc-3.4.6/gcc/read-rtl.c:27:
././..//gcc-3.4.6/gcc/rtl.h:1767: warning: ISO C forbids forward references to 'enum' types
././..//gcc-3.4.6/gcc/rtl.h:1768: warning: ISO C forbids forward references to 'enum' types
In file included from .././..//gcc-3.4.6/gcc/read-rtl.c:27:
././..//gcc-3.4.6/gcc/rtl.h:2190: warning: ISO C forbids forward references to 'enum' types
././..//gcc-3.4.6/gcc/rtl.h:2190: warning: ISO C forbids forward references to 'enum' types
././..//gcc-3.4.6/gcc/rtl.h:2191: warning: ISO C forbids forward references to 'enum' types
././..//gcc-3.4.6/gcc/rtl.h:2191: warning: ISO C forbids forward references to 'enum' types
././..//gcc-3.4.6/gcc/rtl.h:2209: warning: ISO C forbids forward references to 'enum' types
././..//gcc-3.4.6/gcc/read-rtl.c: In function 'read_rtx':
././..//gcc-3.4.6/gcc/read-rtl.c:536: error: 'obstack_chunk_alloc' undeclared (first use in this function)
././..//gcc-3.4.6/gcc/read-rtl.c:536: error: (Each undeclared identifier is reported only once
././..//gcc-3.4.6/gcc/read-rtl.c:536: error: for each function it appears in.)
././..//gcc-3.4.6/gcc/read-rtl.c:536: error: 'obstack_chunk_free' undeclared (first use in this function)
gmake[2]: *** [read-rtl.o] Error 1
gmake[2]: Leaving directory `/usr/ports/lang/gcc34/work/build/gcc'
gmake[1]: *** [stage1_build] Error 2
gmake[1]: Leaving directory `/usr/ports/lang/gcc34/work/build/gcc'
gmake: *** [bootstrap-lean] Error 2
*** Error code 2

Stop in /usr/ports/lang/gcc34.

The cause seems that 'cc' includes '/usr/local/include/tm.h' instead of './tm.h' because the option '-I/usr/local/include' is placed before '-I.'.

>How-To-Repeat:
# cd /usr/ports/sysutils/torque
# make; make install
# cd /usr/ports/lang/gcc34
# make
>Fix:


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->gerald 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Thu Apr 17 13:50:12 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122854 
State-Changed-From-To: open->feedback 
State-Changed-By: gerald 
State-Changed-When: Sat May 3 17:34:19 UTC 2008 
State-Changed-Why:  
Thank your for the report and the excellent analysis!   

I had a look and am afraid this is going to be hard (and risky) to address 
given the age of GCC 3.4 and the fact that it has been abandoned upstream 
(more than four and two years, respectively).  How critical is this issue 
for you? 

It is important to ensure this is fixed with current versions of GCC and 
it would be great could you give lang/gcc42 or lang/gcc43 a try. 

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

From: Shin-ichi Okano <s-okano@n08.itscom.net>
To: bug-followup@FreeBSD.org
Cc: gerald@FreeBSD.org
Subject: Re: ports/122854: lang/gcc34 fails to build when sysutils/torque
 is installed
Date: Wed, 07 May 2008 23:15:01 +0900 (JST)

 Hi,
 
 Thank you for your response.
 
 This issue is non-critical and low priority for me.
 
 I also installed lang/gcc42 and checked that the option '-I.'
 was placed before '-I/usr/local/include'.So I think this is
 fixed with current versions of GCC.
 
 Thanks again.
State-Changed-From-To: feedback->closed 
State-Changed-By: gerald 
State-Changed-When: Mon Jun 9 12:41:08 UTC 2008 
State-Changed-Why:  
Thank you for the analysis, feedback and confirmation that later 
version of this software address the issue you have been seeing! 

Based on the age of lang/gcc34 and the fact that we are using later 
versions on current releases of FreeBSD and this feedback I am 
marking this as closed. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=122854 
>Unformatted:
