g++ 2.95.2 problem with solaris

Phil Edwards pedwards@disaster.jaj.com
Fri Oct 27 14:32:00 GMT 2000


On Fri, Oct 27, 2000 at 02:04:30PM -0700, Charlie Zender wrote:
> This looks to me like either a g++ or solaris /usr/ccs/bin/as problem,
> or a problem with their interface. Compressed file xtr.ii.gz is
> attached at end.

Known problem with the assembler in Solaris 2.6.


>  /usr/ccs/bin/as -V -Qy -s -o /home/zender/obj/SUN4SOL2/xtr.o xtr.s
> /usr/ccs/bin/as: WorkShop Compilers 4.X dev 18 Sep 1996
> /usr/ccs/bin/as: "xtr.s", line 5288: error: can't compute value of an expression involving an external symbol

Welcome to bug 4237974; the 4.2 assembler can't handle really long symbol
names.  The symbol on that line (involving a pair<something> constructor,
I think) is over 2KB in length.  I think the limit on that assembler was
1K or half a K.

Patch 108908-02 fixes this.  It's also been integrated into more recent
(5.x and later) solaris tools.

On the g++ end, there's a new mangling scheme somewhere that creates much
shorter names.  I don't know offhand if it's already in place, or dropped,
or in the new ABI, or what.


Phil


-- 
pedwards at disaster dot jaj dot com  |  pme at sources dot redhat dot com
devphil at several other less interesting addresses in various dot domains
The gods do not protect fools.  Fools are protected by more capable fools.


More information about the Gcc-bugs mailing list