From nobody@FreeBSD.org  Tue Mar 11 12:33:35 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 AE6E0106566B
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Mar 2008 12:33:35 +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 856F88FC22
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Mar 2008 12:33:35 +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 m2BCULCn054338
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 11 Mar 2008 12:30:21 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id m2BCULTN054337;
	Tue, 11 Mar 2008 12:30:21 GMT
	(envelope-from nobody)
Message-Id: <200803111230.m2BCULTN054337@www.freebsd.org>
Date: Tue, 11 Mar 2008 12:30:21 GMT
From: Chris Calvey <chris@securityforensics.co.uk>
To: freebsd-gnats-submit@FreeBSD.org
Subject: GCC 3.4.6 port fails to build
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         121597
>Category:       ports
>Synopsis:       lang/gcc34 -= GCC 3.4.6 port fails to build
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    gerald
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Mar 11 12:40:00 UTC 2008
>Closed-Date:    Mon Jun 09 12:27:07 UTC 2008
>Last-Modified:  Mon Jun 09 12:27:07 UTC 2008
>Originator:     Chris Calvey
>Release:        7.0-RELEASE
>Organization:
Digital Investigations
>Environment:
FreeBSD epsilon.localdomain 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Tue Mar  4 18:09:03 GMT 2008     root@epsilon.localdomain:/usr/obj/usr/src/sys/EPSILON  i386
>Description:
Trying to build GCC 3.4.6 results in the following build fail message:

/bin/sh .././..//gcc-3.4.6/gcc/move-if-change tmp-conditions.c insn-conditions.c
echo timestamp > s-conditions
TARGET_CPU_DEFAULT="" \
        HEADERS="config/i386/i386-protos.h tm-preds.h" DEFINES="" \
        /bin/sh .././..//gcc-3.4.6/gcc/mkconfig.sh tm_p.h
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/genpreds.c -o genpreds.o
cc   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long    -DHAVE_CONFIG_H -DGENERATOR_FILE  -o genpreds \
         genpreds.o ../libiberty/libiberty.a
./genpreds > tmp-preds.h
/bin/sh .././..//gcc-3.4.6/gcc/move-if-change tmp-preds.h tm-preds.h
echo timestamp > s-preds
cc -c   -g  -DIN_GCC   -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -pedantic -Wno-long-long  -Wno-error  -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  insn-conditions.c
In file included from insn-conditions.c:30:
././..//gcc-3.4.6/gcc/output.h:122: error: expected ',' or ';' before 'ATTRIBUTE_NONNULL'
In file included from insn-conditions.c:34:
././..//gcc-3.4.6/gcc/toplev.h:57: error: expected ',' or ';' before 'ATTRIBUTE_NONNULL'
././..//gcc-3.4.6/gcc/toplev.h:61: error: expected ',' or ';' before 'ATTRIBUTE_NONNULL'
././..//gcc-3.4.6/gcc/toplev.h:65: error: expected ',' or ';' before 'ATTRIBUTE_NONNULL'
././..//gcc-3.4.6/gcc/toplev.h:74: error: expected ',' or ';' before 'ATTRIBUTE_NONNULL'
././..//gcc-3.4.6/gcc/toplev.h:75: error: expected ',' or ';' before 'ATTRIBUTE_NONNULL'
insn-conditions.c:757: warning: string length '534' is greater than the length '509' ISO C90 compilers are required to support
insn-conditions.c:1043: warning: string length '533' is greater than the length '509' ISO C90 compilers are required to support
insn-conditions.c:1581: warning: string length '597' is greater than the length '509' ISO C90 compilers are required to support
gmake[2]: *** [insn-conditions.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


>How-To-Repeat:
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: Tue Mar 11 13:21:30 UTC 2008 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=121597 
State-Changed-From-To: open->feedback 
State-Changed-By: gerald 
State-Changed-When: Wed Mar 12 04:36:05 UTC 2008 
State-Changed-Why:  
Me and others have been building this port hundreds of time.  Something 
must be specific on your system, and we need to find that out.  What is 
the compiler you use to build that (old) port? 

If you look at those places in the source code where an error is indicated 
(output.h:122, toplev.h,...), what do you find there? 

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

From: Gerald Pfeifer <gerald@pfeifer.com>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/121597: lang/gcc34 -= GCC 3.4.6 port fails to build
Date: Sat, 3 May 2008 19:55:15 +0200 (CEST)

 I did a bit of research: is it possible that on the machine where you see 
 the failure you have some additional lang/gcc* ports installed?  If so, 
 which would that be?
  
 Do you have any settings in /etc/make.conf or similar files that set 
 include paths?  Watch out for environment variables having the string
 "FLAGS" in their name.
 
 > The base systems of both machines should be virtually identical,
 > apart from kernel and configuration file differences.
 
 Is the default compiler (as identified running "gcc -v") the same?
  
 Sorry for fishing a bit in dark waters.  I tried to find the true
 source of this, but failed so far.
State-Changed-From-To: feedback->closed 
State-Changed-By: gerald 
State-Changed-When: Mon Jun 9 12:24:49 UTC 2008 
State-Changed-Why:  
No feedback since March 12th, and no other user (nor my own tests nor 
the FreeBSD Ports Cluster) has reported this, so I assume this was due 
to something very specific in the reporter's environment and am closing 
this. 

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