From owner-freebsd-bugs@FreeBSD.ORG Thu Jul 10 05:15:28 2003 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9BCF237B401 for ; Thu, 10 Jul 2003 05:15:28 -0700 (PDT) Received: from hawk.thalamus.net (hawk.thalamus.net [212.31.160.3]) by mx1.FreeBSD.org (Postfix) with SMTP id 2CA0243FD7 for ; Thu, 10 Jul 2003 05:15:27 -0700 (PDT) (envelope-from thnov@xyz.pp.se) Received: (qmail 12776 invoked from network); 10 Jul 2003 12:15:26 -0000 Received: from gw.ext.thalamus.se (HELO thomas.xyz.pp.se) (212.31.160.253) by hawk.thalamus.net with SMTP; 10 Jul 2003 12:15:26 -0000 Message-Id: <5.1.0.14.2.20030710135549.02d0b4b8@xyz.pp.se> X-Sender: thnov@xyz.pp.se (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 10 Jul 2003 14:14:49 +0200 To: freebsd-bugs@freebsd.org From: Thomas Novin Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1"; format=flowed Content-Transfer-Encoding: 8bit Subject: Re: cvs tag RELENG_4_8 won't compile (buildworld) X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2003 12:15:28 -0000 >Currently on FBSD 4.3-SEC p22. > >Trying to do a buildworld fails. Only NOPROFILE=true in /etc/make.conf. >Fails at same place every time I run (eg. no hardware error). Ran cvsup >with tag RELENG_4_8 yesterday. System is PII 233 MHz. > >===> gnu/usr.bin/cc/c++filt >cc -O -pipe -DIN_GCC -DHAVE_CONFIG_H >-DPREFIX=\"/usr/obj/usr/src/i386/usr\" >-I/usr/obj/usr/src/i386/usr/src/gnu/usr.bin/cc/c++filt/../cc_tools >-I/usr/src/gnu/usr.bin/cc/c++filt/../cc_tools >-I/usr/src/gnu/usr.bin/cc/c++filt/../../../../contrib/gcc >-I/usr/src/gnu/usr.bin/cc/c++filt/../../../../contrib/gcc/config -DMAIN >-DIN_GCC -DVERSION=\"2.95.4\" -D__FBSDID=__RCSID -c >/usr/src/gnu/usr.bin/cc/c++filt/../../../../contrib/gcc/cplus-dem.c >/usr/src/gnu/usr.bin/cc/c++filt/../../../../contrib/gcc/cplus-dem.c: In >function `demangle_fund_type': >/usr/src/gnu/usr.bin/cc/c++filt/../../../../contrib/gcc/cplus-dem.c:3378: >`manglangled' undeclared (first use in this function) >/usr/src/gnu/usr.bin/cc/c++filt/../../../../contrib/gcc/cplus-dem.c:3378: >(Each undeclared identifier is reported only once >/usr/src/gnu/usr.bin/cc/c++filt/../../../../contrib/gcc/cplus-dem.c:3378: >for each function it appears in.) >/usr/src/gnu/usr.bin/cc/c++filt/../../../../contrib/gcc/cplus-dem.c: In >function `main': >/usr/src/gnu/usr.bin/cc/c++filt/../../../../contrib/gcc/cplus-dem.c:4527: >warning: assignment discards qualifiers from pointer target type >/usr/src/gnu/usr.bin/cc/c++filt/../../../../contrib/gcc/cplus-dem.c:4530: >warning: assignment discards qualifiers from pointer target type >*** Error code 1 > >Stop in /usr/src/gnu/usr.bin/cc/c++filt. >*** Error code 1 > >Stop in /usr/src/gnu/usr.bin/cc. >*** Error code 1 > >Stop in /usr/src. >*** Error code 1 > >Stop in /usr/src. >*** Error code 1 > >Stop in /usr/src. >bash-2.05b# I don't know shit about C-programming but since noone else replies I took a shot at solving the problem myself. I created this patch and applied it to the source-tree and now it builds cleanly. I have no idea if this is correct or not. Just thinking maybe it's just a typo and just maybe this fixes it? --- contrib/gcc/cplus-dem.c.orig Thu Nov 4 11:20:03 1999 +++ contrib/gcc/cplus-dem.c Sat Jul 10 14:28:23 2004 @@ -3375,7 +3375,7 @@ break; } case 'I': - (*manglangled)++; + (*mangled)++; if (**mangled == '_') { int i; -- Thomas Novin · thnov@xyz.pp.se · http://xyz.pp.se/~thnov/ V: +46 (0)431 445400 · F: +46 (0)431 445410 · GSM: +46 (0)730 667425 --