From owner-freebsd-hackers Mon May 13 17:04:08 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id RAA09352 for hackers-outgoing; Mon, 13 May 1996 17:04:08 -0700 (PDT) Received: from paris.CS.Berkeley.EDU (paris.CS.Berkeley.EDU [128.32.34.47]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id RAA09262 for ; Mon, 13 May 1996 17:03:45 -0700 (PDT) Received: from paris.CS.Berkeley.EDU (localhost.Berkeley.EDU [127.0.0.1]) by paris.CS.Berkeley.EDU (8.6.11/8.6.9) with ESMTP id RAA22426; Mon, 13 May 1996 17:03:23 -0700 From: Josh MacDonald Message-Id: <199605140003.RAA22426@paris.CS.Berkeley.EDU> To: Chuck Robey cc: FreeBSD hackers Mailing list Subject: Re: Patches for gcc 2.7.2 In-reply-to: Your message of "Mon, 13 May 1996 11:02:31 EDT." Date: Mon, 13 May 1996 17:03:20 -0700 Sender: owner-hackers@freebsd.org X-Loop: FreeBSD.org Precedence: bulk > On Mon, 13 May 1996, Kees Jan Koster wrote: > > > Hoi Hackers, > > > > I've tried to install g++ 2.7.2 on my 2.1.0-release machine, but it does no >t > > seem an out-of-the-box installation. > > > > I modified config/freebsd.h to not generate .weak symbols, and then g++ > > installs and runs all right. However, I get some weird errors from program > > compiled with 2.7.2. Some die on a signal 11, usually before entering main( >) > > or after exiting main(). Usually this change alone works for me. There are still some things you need to modify in the headers to get the correct types for va_list and wchar_t as far as I remember. I've used g++-2.7.2 to compile some fairly compilcated non-trivial code and have had no problems. I can send you the set of patches that I use, or upload binaries. -josh > > I think that John Polstra's work getting ELF to work for FreeBSD (both > Linux and FreeBSD native) included patches to port gcc-2.7.2. I think > you ought to ask him, or check out the elfkit stuff (which includes those > patches) on ftp.polstra.com. > > > > > Gdb reports the following on the particular program, when I trace main() > > > > > > 25 exit (0); > > > (gdb) next > > > > > > Program received signal SIGSEGV, Segmentation fault. > > > 0x81434f8 in free () > > > > > > > Before I start digging any deeper, I'd like to be sure that my g++ is good. > > > > Normally I would not bother anyone with this kind of problem, but the same > > code compiles and runs fine on Linux, SunOS and HP-UX and using g++ 2.6.3 > > on FreeBSD. This is also why I ask here instead of the gcc buglist. > > > > Could someone help me out or does anyone have patches for 2.7.2? What shoul >d > > I patch out/in?