Article View: gnu.gcc.help
Article #42079Errors when compiling libg++-2.7.1
From: Rostyslav Cisyk
Date: Sun, 21 Jan 1996 00:00
Date: Sun, 21 Jan 1996 00:00
54 lines
2451 bytes
2451 bytes
Hi,
I am trying to install the newer version of the GNU gcc compiler (I tried
2.7.1 and 2.7.2), and the libg++-2.7.1 shared library. The compiler compiles
and installs without any problems. However, each time I try to compile the
shared library with the compiler I just installed, no matter what I do I get
the following error:
/usr/tmp/libg++-2.7.1/gcc/xgcc -B/usr/tmp/libg++-2.7.1/gcc/ -c -g -O2
-fno-implicit-templates -nostdinc++ -I. -I./../../libio
-I/usr/tmp/libg++-2.7.1/libg++/src
-I/usr/tmp/libg++-2.7.1/libg++/src/../../libio
-I/usr/tmp/libg++-2.7.1/libg++/src/../../libstdc++ -I/usr/tmp/libg++-
2.7.1/libg++/src/../src -fpic SLList.cc -o pic/SLList.o
In file included from
/usr/tmp/libg++-2.7.1/libg++/src/../../libstdc++/std/cstdlib.h:6,
from
/usr/tmp/libg++-2.7.1/libg++/src/../../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/cc004260.s: Assembler messages:
/var/tmp/cc004260.s:1247: Error: Unknown pseudo-op: `.weak'
gmake[2]: *** [SLList.o] Error 1
First I get this error when gcc tries to compile SLList.cc and DLList.cc,
then options.cc, etc.
Here's information about my setup:
machine type: DX4-100, 16MB RAM
operating system: FreeBSD 2.1.0
previous GNU gcc compiler: 2.6.3
current GNU assembler: 1.92.3
flags given to ./configure
when compiling the new compiler: --prefix=/usr/local i386-freebsd
flags given to ./configure
when compiling the libg++-2.7.1: --prefix=/usr/local --enable-shared \
i386-freebsd
Can anybody tell me what I am doing wrong? I've tried this many times with
both 2.7.1 and 2.7.2 compiler and still have to idea as to why this is
happening.
Also, even though I specified --enable-shared (and even manually added
enable_shared=yes in configure.in), it still builds only static .a libraries.
How do I make it to build shared .so libraries?
Thanks for your help,
Rosty.
Technical Details
Message-ID:
<4dtqor$67d@crchh327.rich.bnr.ca>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,b14b17be46d7961,start X-Google-Attributes: gid11318c,public From: rcisyk@bnr.ca (Rostyslav Cisyk) Subject: Errors when compiling libg++-2.7.1 Date: 1996/01/21 Message-ID: <4dtqor$67d@crchh327.rich.bnr.ca> X-Deja-AN: 136076631 organization: Bell-Northern Research, Richardson, TX newsgroups: gnu.gcc.help