?????? ??????? wrote:
> CC: Fatal error in ld: Segmentation Fault (core dumped)
> ld: fatal: file /opt/sunstudio12.1/prod/lib/crti.o: section [9].rela.annotate 
> has invalid type [ SHT_RELA ]
> *** Error code 1
> dmake: Fatal error: Command failed for target 
> `dist/Debug/SunStudio-Solaris-x86/welcome'

In general, the first error message seen is the important one, not the
last one.

In this case, the linker dropped core.  I've seen this with C++ code and
Studio 12u1 on OpenSolaris -- the workaround is to set "-xannotate=no"
in your compilation flags.

(I've run into other problems with C++ and that compiler that aren't as
easy to resolve.  For instance, "-g" and "-template=wholeclass" seem to
be incompatible.)

-- 
James Carlson         42.703N 71.076W         <carlsonj at workingcode.com>

Reply via email to