ELF errors with SUNW0sgcc and GNU aspell

Hello, under advisement, I've switched the new SUNW0sgcc 4.0.2 downloaded

from cooltools.I've come across a few minor issues compiling some packages,

but nothing major.Until I got to GNU aspell.

Now it is giving me nothing but grief.

I am passing the following configure options to aspell:

CC=/opt/gcc/bin/gcc

CXX=/opt/gcc/bin/g++

# ./configure --prefix=/opt/app/cwis/support/aspell -enable-shared

Very simple with no CFLAGS to just try and get it to link.The package seems to compile OK, until it gets to the link stage.I have used both SUN /usr/ccs/bin/ld

and SFW GNU ld as provided on Solaris 9 companion disk.

The liner always bombs the same way, with a million relocation errors and an

ELF error I have never seen before - I won't post all the errors here, but here's the

last one - the rest are all pretty much the same....:

ld: fatal: file modules/filter/.libs/url.o: section .group%cpp_00000000_DFC38E3F9UrlFilterE: SHF_GROUP flag set, but no corresponding SHT_GROUP section found

ld: fatal: File processing errors. No output written to .libs/libaspell.so.15.1.4

collect2: ld returned 1 exit status

*** Error code 1

make: Fatal error: Command failed for target `libaspell.la'

Current working directory /opt/src/aspell-0.60.4

*** Error code 1

make: Fatal error: Command failed for target `all-recursive'

Can anyone please cast some light on this for me?

Thanks.......

rachel

[1536 byte] By [virag064] at [2007-11-26 8:09:14]
# 1

Hello, Rachel,

Thank you for reporting this problem with aspell.

This is indeed a compiler bug related to our new

COMDAT feature and C++ anonymous namespaces.

We will fix this problem ASAP for the next release or patch.

With your current SUNW0sgcc, you can use the following workaround:

Define

CXX="/opt/gcc/bin/g++ -fno-comdat"

and rerun configure.

Please note that -fno-comdat is a temporary compiler

debugging option. It is not a supported feature.

With this option, some C++ performance will be lost,

but should be no worse than the plain gcc.

I will be glad to hear if you find any other problem

or performance gain with SUNW0sgcc.

Thanks.

Chih-Hung

ChihHung at 2007-7-6 20:57:46 > top of Java-index,Open Source Technologies,OpenSPARC...
# 2

Hi Chih-Hung,

Thanks very much - that fixed it for me!I now have aspell properly linked and

working as it should.Thanks for a great product.......I am doing a lot of compiling

at the moment, gradually turning up the optimisations and so I will definitely

tell you if I encounter any more problems!

cheers....

virag064 at 2007-7-6 20:57:46 > top of Java-index,Open Source Technologies,OpenSPARC...