Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Apr 1998 10:03:48 -0700
From:      John Polstra <jdp@polstra.com>
To:        rotel@indigo.ie
Cc:        hackers@FreeBSD.ORG
Subject:   Re: ld: internal error: allocated set symbol space (2) doesn't match actual (6)
Message-ID:  <199804111703.KAA04038@austin.polstra.com>
In-Reply-To: <199804111122.MAA00730@indigo.ie>
References:  <199804111122.MAA00730@indigo.ie>

next in thread | previous in thread | raw e-mail | index | archive | help
In article <199804111122.MAA00730@indigo.ie>,
Niall Smart  <rotel@indigo.ie> wrote:

> 
> I've been getting a weird error message from ld when I link some
> object files produced by g++.  I've repeated this problem with g++
> 2.7.2.1 and egcs-current on FreeBSD, there isn't any problem with
> g++ 2.7.2.3 or egcs-current on Solaris which leads me to believe
> that the problem lies with the link editor.
...
> [nsmart@ginseng gra]$ rm -f main.o && make MAKECXXFLAGS=-DBREAKME
> g++ -g -O3 -Wall -Wno-return-type -I/usr/openwin/include -I/usr/X11R6/include -I. -DBREAKME   -c main.cc -o main.o

This is a known problem that crops up if you combine "-g" with "-O3".
I have already asked somebody else to file a PR for it.
--
   John Polstra                                       jdp@polstra.com
   John D. Polstra & Co., Inc.                Seattle, Washington USA
   "Self-knowledge is always bad news."                 -- John Barth

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199804111703.KAA04038>