*BSD News Article 26783


Return to BSD News archive

Xref: sserve comp.os.386bsd.questions:8429 comp.lang.c++:59412 comp.std.c++:6338
Path: sserve!newshost.anu.edu.au!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!ucsvc.ucs.unimelb.edu.au!lugb!latcs1!wongm
Newsgroups: comp.os.386bsd.questions,comp.lang.c++,comp.std.c++
Subject: Problem building libg++-1.39.0 with gcc/g++-2.4.5
Message-ID: <CKnM1F.2EI@latcs1.lat.oz.au>
From: wongm@latcs1.lat.oz.au (M.C. Wong)
Date: Thu, 3 Feb 1994 15:08:02 GMT
Organization: Comp Sci, La Trobe Uni, Australia
Lines: 79

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