From matthias.andree@gmx.de  Mon Jan 17 22:55:32 2005
Return-Path: <matthias.andree@gmx.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id DA4B916A4D0; Mon, 17 Jan 2005 22:55:32 +0000 (GMT)
Received: from mail.dt.e-technik.uni-dortmund.de (krusty.dt.e-technik.Uni-Dortmund.DE [129.217.163.1])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 1575043D41; Mon, 17 Jan 2005 22:55:32 +0000 (GMT)
	(envelope-from matthias.andree@gmx.de)
Received: from localhost (localhost [127.0.0.1])
	by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 5E03F4E146;
	Mon, 17 Jan 2005 23:55:31 +0100 (CET)
Received: from mail.dt.e-technik.uni-dortmund.de ([127.0.0.1])
 by localhost (krusty [127.0.0.1]) (amavisd-new, port 10024) with LMTP
 id 05082-05-3; Mon, 17 Jan 2005 23:55:26 +0100 (CET)
Received: from m2a2.dyndns.org (pD9FFBEDD.dip.t-dialin.net [217.255.190.221])
	by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP id 43F4C4E398;
	Mon, 17 Jan 2005 23:55:26 +0100 (CET)
Received: from localhost (localhost [127.0.0.1])
	by merlin.emma.line.org (Postfix) with ESMTP id 9A7BA79CA5;
	Mon, 17 Jan 2005 23:55:24 +0100 (CET)
Received: from merlin.emma.line.org ([127.0.0.1])
 by localhost (m2a2.dyndns.org [127.0.0.1]) (amavisd-new, port 10024)
 with LMTP id 05610-05-2; Mon, 17 Jan 2005 23:55:23 +0100 (CET)
Received: from libertas.emma.line.org (libertas.emma.line.org [192.168.0.2])
	by merlin.emma.line.org (Postfix) with ESMTP id B9F8D79CA4;
	Mon, 17 Jan 2005 23:55:23 +0100 (CET)
Received: from emma by libertas.emma.line.org with local (Exim 4.43 (FreeBSD))
	id 1CqfmW-0006CS-9D; Mon, 17 Jan 2005 23:55:32 +0100
Message-Id: <E1CqfmW-0006CS-9D@libertas.emma.line.org>
Date: Mon, 17 Jan 2005 23:55:32 +0100
From: Matthias Andree <matthias.andree@gmx.de>
Reply-To: Matthias Andree <matthias.andree@gmx.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: re@freebsd.org, stable@freebsd.org
Subject: FreeBSD 4.11-RC3 GCC preprocessor failure 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         76381
>Category:       gnu
>Synopsis:       FreeBSD 4.11-RC3 GCC preprocessor failure
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Jan 17 23:00:43 GMT 2005
>Closed-Date:    Thu Jan 20 05:17:08 GMT 2005
>Last-Modified:  Thu Jan 20 05:17:08 GMT 2005
>Originator:     Matthias Andree
>Release:        FreeBSD 4.11-RC3 i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.11-RC3 FreeBSD 4.11-RC3 #17: Mon Jan 17 21:44:19 CET 2005 root@libertas.emma.line.org:/usr/src/sys/compile/LIBERTAS i386


	
>Description:
GCC 2.95.4 cannot compile e2fsprogs development version while GCC 3.3 is fine.

The preprocessor fails to expand a macro with a longish name, error message:

making all in lib/e2p
gmake[2]: Entering directory `/tmp/e2fsprogs/build/lib/e2p'
        CC ../../../lib/e2p/feature.c
../../../lib/e2p/feature.c:50: `EXT3_FEATURE_INCOMPAT_EXTENTS' undeclared here (not in a function)
../../../lib/e2p/feature.c:50: initializer element is not constant
../../../lib/e2p/feature.c:50: (near initialization for `feature_list[12].mask')
gmake[2]: *** [feature.o] Error 1

type: less lib/e2p/feature.i    and type /EXT3 and press the enter key
to see the problem area:

        {       1 , 0x0008 ,
                        "journal_dev" },
        {       1 , EXT3_FEATURE_INCOMPAT_EXTENTS,
                        "extents" },
        {       1 , 0x0010 ,
                        "meta_bg" },

GCC 3.3 will properly replace EXT3_FEATURE_INCOMPAT_EXTENTS with 0x0040
(install lang/gcc33, then gmake CC=gcc33)

	
>How-To-Repeat:
- install devel/gmake port
- install devel/bibktkeeper port (see PR #76208 if it's uncommitted)
- cd to a writable directory with some 30 MB room
- type these commands to check out, configure and build the code:
  #
  # the next three commands will clone the repository and check it out
  #
  bk clone -qr'tytso@think.thunk.org|ChangeSet|20050117193220|14963' \
    bk://thunk.org:5000/ e2fsprogs/
  cd e2fsprogs
  bk -Ur get -Sq
  #
  # now do the build
  #
  mkdir build
  cd build
  ../configure -C CFLAGS="-O -save-temps"
  gmake
	
>Fix:
	
>Release-Note:
>Audit-Trail:

From: Matthias Andree <matthias.andree@gmx.de>
To: FreeBSD-gnats-submit@FreeBSD.org, freebsd-bugs@FreeBSD.org
Cc: stable@freebsd.org, re@freebsd.org
Subject: Re: gnu/76381: FreeBSD 4.11-RC3 GCC preprocessor failure
Date: Tue, 18 Jan 2005 00:07:41 +0100

 Oops. The port is devel/bitkeeper. As this requires registration, I made
 a tarball, which will not lie around forever though.
 
 http://home.pages.de/~mandree/tmp/e2fsprogs-1.36rc2.tar.gz (3.3 MB)
 MD5 (e2fsprogs-1.36rc2.tar.gz) = 441c54b116d3426f7c16eb3bb3657648
 
 After downloading, unpack the tarball, cd e2fsprogs-1.36rc2, then
 proceed with mkdir build ; cd build ... as shown above.
 
 -- 
 Matthias Andree

From: "matthias.andree" <matthias.andree@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org, matthias.andree@gmx.de,
	re@freebsd.org, stable@freebsd.org, freebsd-bugs@freebsd.org
Cc:  
Subject: Re: gnu/76381: FreeBSD 4.11-RC3 GCC preprocessor failure
Date: Thu, 20 Jan 2005 04:02:33 +0100

 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
 (puts on brown paperbag to not be recognized)
 
 Please close this problem report, the problem is non-existent.
 
 Turns out that GCC is fine, e2fsprogs was grabbing an obsolete header
 file from below /usr/local, and gcc34 actually wasn't working when
 compiling e2fsprogs on FreeBSD 5... how embarrassing. (This is a
 long-standing bug.) Shuffling around the -I CPPFLAGS fixes the problem.
 
 PR against ports/sysutils/e2fsprogs (updating it to 1.35_4) to fix the
 bug in the right place has been filed as ports/76488.
 
 My fault. Please accept my apologies for this false alarm.
 
 - --
 Matthias Andree
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.4.0 (GNU/Linux)
 Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
 
 iQCVAwUBQe8fSSdEoB0mv1ypAQIOJwQAjWN1OpS+NPHBylk8fRVV4TOhHyj3BpxK
 q5+QJmJOMNsGL73brkamILJ95g8ApPD4+K/XmXx1OhgYYHU34GXKqkErKXt/OtOs
 3sEdX4yLC7klut7kOAPvQnrJKGu0Ki5QjhS1P0oPoB04enH1UR07xsg2b3nrN5+m
 KhhG4VGnwG4=
 =zl8r
 -----END PGP SIGNATURE-----
State-Changed-From-To: open->closed 
State-Changed-By: maxim 
State-Changed-When: Thu Jan 20 05:16:43 GMT 2005 
State-Changed-Why:  
Closed at the submitter's request. 

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