*BSD News Article 60510


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!msunews!netnews.upenn.edu!dsinc!newsfeed.pitt.edu!gatech!swrinde!howland.reston.ans.net!torn!nott!bcarh189.bnr.ca!crchh327.rich.bnr.ca!rcisyk
From: rcisyk@bnr.ca (Rostyslav Cisyk)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: GCC v2.7.2 / libg++ v2.7.1 binaries?
Date: 25 Jan 1996 18:00:11 GMT
Organization: Bell-Northern Research, Richardson, TX
Lines: 42
Message-ID: <4e8gfb$qji@crchh327.rich.bnr.ca>
References: <4e74ch$iat@nkosi.well.com>
NNTP-Posting-Host: crchhe94.rich.bnr.ca
X-Newsreader: TIN [version 1.2 PL2]

John S. Cho (koden@well.sf.ca.us) wrote:
: I've pretty much given up on trying to compile gcc v2.7.2 and libg++ v2.7.1 on my system. Does anyone have a fully compiled/working copy of gcc v2.7.2
: and libg++ v2.7.1 for FreeBSD v2.1/Intel that they can tar up and send me?
: Send me mail.

I am working on it right now. After many days of frustration, I have finally
managed to get gcc2.7.2 and a *static* version of libg++-2.7.1 working.
Here's what I did:
1. Compiled and installed new assembler (v2.6) from binutils-2.6
2. Compiled and installed gcc2.7.2 (used new assembler during compilation)
3. Compiled and installed static libg++-2.7.1 using gcc2.7.2, and the new
   assembler

I have tried to compile and install a *shared* version of libg++, but
encountered the following problems:
1. compiler driver kept passing '-k' to the assembler to indicate PIC code;
   -k was no longer a valid option for the new assembler
   Fix:
      edit the compiler specs file, and remove -k option passing to the
      assembler;
      you can find out the name of the specs file by invoking gcc -v on some
      sample code;
2. after the first problem was fixed, linker dumped core when it was trying
   to create a shared library. I have tried using new linker, but that
   required me to recompile and relink crt0.o, gcrt0,o, etc. and most of the
   existing libraries. I have tried re-compiling and re-linking libm.so, but
   new assembler kept generating something on certain files, causing the
   linker to dump core.

Anyway, I am currently trying a fix suggested by Tim Wilkinson. The fix
includes placing "#define SUPPORTS_WEAK 0" in gcc-2.7.2/config/i386/freebsd.h

I'll let you know if I am able to successfully build shared libg++-2.7.1

Rosty.
______________________________________________________________________________
Rosty Cisyk                                    E-mail:
Software Engineer, ServiceBuilder Development    Business: rcisyk@bnr.ca
Bell-Northern Research, Inc.                     Personal: rosty@cyberramp.net
P.O. Box 833871                                Tel:
Richardson, TX 75083-3871                        (214)684-0623
______________________________________________________________________________