Return to BSD News archive
Xref: sserve gnu.g++.help:4602 comp.os.386bsd.questions:8591 Path: sserve!newshost.anu.edu.au!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!latcs1!wongm Newsgroups: gnu.g++.help,comp.os.386bsd.questions Subject: Re: How to build libg++-1.39.0 using g++-2.4.5 ? Message-ID: <CKyxHr.HyC@latcs1.lat.oz.au> From: wongm@latcs1.lat.oz.au (M.C. Wong) Date: Wed, 9 Feb 1994 17:49:03 GMT References: <CKoFzz.CBC@latcs1.lat.oz.au> Distribution: gnu Organization: Comp Sci, La Trobe Uni, Australia Lines: 97 In article <CKoFzz.CBC@latcs1.lat.oz.au> wongm@latcs1.lat.oz.au (M.C. Wong) writes: > > >Hi, > I am running FreeBSD-1.0.2 on 486 PC, with default gcc/g++ of version >2.4.5. I used to have the old source tree as distributed together with >386bsd, but I lost it now, and I got another different distribution from >my Uni, and attempt to build the g++ lib version 1.39.0 with gcc/g++-2.4.5. >I got the following problems : (the lines within `(' and `)' are edited for >ease of reading in 80 columns screen) > >(cd src; make GXX="g++" GXXFLAGS="-nostdinc++ \ > -I/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include \ > -g -O -fstrength-reduce -felide-constructors \ > -fschedule-insns -fdelayed-branch -fsave-memoized \ > -Wall -pipe" \ > GXXLDFLAGS="-L/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/src -lg++ -lm " \ > LIBDIR="/usr/local/lib/libg++-1.39" \ > SRCIDIR="/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include" \ > CC="gcc" > CFLAGS=" -I/usr/local/lib/gcc-include -I/usr/include \ > -I/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include \ > -g -O -fstrength-reduce -fdelayed-branch -Wall -pipe" \ > RANLIB="ranlib" \ > LDXX="/usr/local/lib/libg++-1.39/gcc-ld" \ > GXXCRT1="/usr/local/lib/libg++-1.39/crt1+.o" \ > MAKE="make" prefix="/usr/local" \ > VPATH="/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include" \ > AR="ar" \ > PROTODIR="/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include/gen" \ > GENCLASS="/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/genclass") >g++ -nostdinc++ -I/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include -g -O -fstrength-reduce -felide-constructors -fschedule-insns -fdelayed-branch -fsave-memoized -Wall -pipe -c AllocRing.cc >In file included from AllocRing.cc:27: >/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include/std.h:27: warning: `#pragma once' is obsolete >gcc1plus: warning: instruction scheduling not supported on this target machine >gcc1plus: warning: this target machine does not have delayed branches >In file included from /usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include/std.h:32, from AllocRing.cc:27: >/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include/stddef.h:26: warning: `#pragma once' is obsolete >In file included from /usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include/std.h:33, from AllocRing.cc:27: >/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include/stdio.h:54: warning: `#pragma once' is obsolete >/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include/stdio.h:178: empty #if expression >In file included from AllocRing.cc:28: >/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include/AllocRing.h:27: warning: `#pragma once' is obsolete >In file included from AllocRing.cc:29: >/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include/new.h:3: warning: `#pragma once' is obsolete >In file included from AllocRing.cc:27: >/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include/std.h:139: declaration of `int memcmp (const void *, const void *, int)' ><built-in>:0: conflicts with built-in declaration `int memcmp (const void *, const void *, unsigned int)' >/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include/std.h:140: declaration of `void * memcpy (void *, const void *, int)' ><built-in>:0: conflicts with built-in declaration `void * memcpy (void *, const void *, unsigned int)' >/usr/local/src/gnu/libg++-1.39/libg++-1.39.0/g++-include/std.h:197: declaration of `int strlen (const char *)' ><built-in>:0: conflicts with built-in declaration `unsigned int strlen (const char *)' >*** Error code 1 > >Stop. >*** Error code 1 > >Stop. > > Note that I have used the switch -nostdinc++, in order to prune the search >of the default include on new compiler. However with or without the switch I >still get the same errors complaining the conflicts declartions. > > I wonder if anyone who used to run 386bsd and run FreeBSD now do have a >copy of the re-compiled libg++-1.39.a (I mean using gcc-2.4.5) which can >be spared for copying ? > > If not, does anyone have the original 1.39 g++ lib source that came with >386bsd ? > > If not either, can someone kindly tell me the changes I need to make to get >the library compiled using gcc-2.4.5 ? > > Note that I need the 1.x lib for linking with some of the codes in NIST's >softwares called PET and DINGO, since those 2 softwares were developed and >ported originally with gcc-1.x. > > Thank you very much and please email me for your precious replies. > >- wongm@latcs1.lat.oz.au (M.C Wong) >-- >- wongm@latcs1.lat.oz.au OK, I got the libg++-1.39.a again from old 386bsd src distribution. And I managed to build the library succesfully, the only problem is that all the programs I compile with g++-2.4.5 and linked with this newly built libg++.a, I always get a segmentation fault when doing iostream relevant statements, even a single line of cout << " " will crash. Is libg++-1.x.a not meant to be coexist with g++-2.x ? Is this the expected behaviour ? Please email replies, thanks in advance. - wongm@latcs1.lat.oz.au (M.C Wong) -- - wongm@latcs1.lat.oz.au