*BSD News Article 58977


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!harbinger.cc.monash.edu.au!news.mel.connect.com.au!munnari.OZ.AU!news.ecn.uoknor.edu!news.cis.okstate.edu!news.ksu.ksu.edu!news.physics.uiowa.edu!math.ohio-state.edu!howland.reston.ans.net!nntp.coast.net!zombie.ncsc.mil!news.mathworks.com!tank.news.pipex.net!pipex!sunsite.doc.ic.ac.uk!cs.city.ac.uk!tim
From: tim@sarc.city.ac.uk (Tim Wilkinson)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Anyone get gcc v2.7.2 and libg++ v2.7.1 working?
Date: 8 Jan 1996 13:48:51 GMT
Organization: Systems Architecture Research Centre, City University
Lines: 20
Message-ID: <4cr7c3$gr6@bambam.soi.city.ac.uk>
References: <4cnso8$dac@nkosi.well.com>
NNTP-Posting-Host: cripplecock.sarc.city.ac.uk
X-Newsreader: TIN [version 1.2 PL2]

John S. Cho (koden@well.sf.ca.us) wrote:
: Has anyone gotten gcc v2.7.2 and libg++ v2.7.1 compiled and running on
: FreeBSD v2.1? I keep getting an assembler error while trying to install
: it. Any help would be appreciated. 

You need to add the following line to gcc-2.7.2/config/i386/freebsd.h:

#define SUPPORTS_WEAK   0

This will stop the compiler spitting out those .weak directives which are
annoying the assembler.

Tim

--
  Tim Wilkinson                          tim@sarc.city.ac.uk
  Systems Architecture Research Centre   http://web.sarc.city.ac.uk/finger/tim
  City University, London EC1V 0HB, UK.

  Tel: +44 171 477 8551                  Fax: +44 171 477 8587