*BSD News Article 87441


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!news.ysu.edu!news.cmich.edu!3cqbjoz
From: ishwar rattan <3CQBJOZ@cmuvm.csv.cmich.edu>
Newsgroups: comp.unix.bsd.freebsd.misc,gnu.gcc.help
Subject: Compilation of libg++-2.7.2 help..
Date: Fri, 24 Jan 1997 11:10:51 EST
Organization: Central Michigan University
Lines: 39
Message-ID: <97024.1110513CQBJOZ@cmuvm.csv.cmich.edu>
NNTP-Posting-Host: cmuvm.csv.cmich.edu
Disclaimer: Author bears full responsibility for this post
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:34492 gnu.gcc.help:19176

Hello
 
I am having problems with compiling libg++-2.7.2 sources.(FreeBSD-2.1.5)
 
I compiled gcc-2.7.2 with gcc-2.6.3 and saw warnings to the affect
	/usr/include/sys/types.h:108 warning: empty declaration
in some places. The stage1 and stage2 produced the same binaries
so they were installed in /local/gnu directory.. Made /usr/bin/gcc and
/usr/local/bin/gcc links to /local/gnu/bin/gcc..
 
I used the following commands for compiling libg++ stuff
 
/configure i386-freebsd --prefix=/local/gnu
make all CC="/local/gnu/bin/gcc -O2"
 
and end up with quite a few warnings and finally error exit by make.
Any pointers will be appreciated.
 
Ishwar Rattan
----------------
...
/local/gnu/bin/gcc -O2 -c -g -I../../libio bitxor.c
test -z "" ||  gcc -c -g -O2 -fno-implicit-templates -nostdinc++ -I.
-I../../libio -I. -I./../../libio -I./../../libstdc++ -I./../src   SLList.cc -o
pic/SLList.o
gcc -c -g -O2 -fno-implicit-templates -nostdinc++ -I. -I../../libio -I.
-I./../../libio -I./../../libstdc++ -I./../src  SLList.cc
In file included from ../../libstdc++/std/cstdlib.h:6,
                 from ../../libstdc++/cstdlib:5,
                 from std.h:24,
                 from builtin.h:32,
                 from SLList.cc:25:
/usr/include/stdlib.h:42: warning: abstract declarator used as declaration
/var/tmp/cc001983.s: Assembler messages:
/var/tmp/cc001983.s:1169: Error: Unknown pseudo-op:  `.weak'
*** Error code 1
 
Stop.
------------