Compiler failures with Studio 11 on Solaris 10 x64

The compiler gives me the following error when I try to compile the larger tests in my environment:

"Tests.cc", [main]:ube: error: Assert has been violated at '/set/venus_patch/builds.intel-S2/build.0509/intel-S2/lang/ube/opt/src/cfg.c 3150'.

I am using the following compilation command:

/opt/SUNWspro/bin/CC -xtarget=opteron -xarch=amd64 -xO0 -library=stlport4 [includes] -c -o obj/lib/Tests.o lib/Tests.cc

I get a different error if I change the optimization level to 2:

compiler(iropt) error: connect_labelrefs: undefined label L175 in main

And yet another message if I use no optimization option at all:

Assembler: Tests.cc

"/tmp/yabeAAAX7aqaq", line 20533 : Illegal subtraction in ... ".L209 - .L_y162"

Failure in /opt/SUNWspro/prod/bin/fbe, status = 0x7f00

Fatal Error exec'ing /opt/SUNWspro/prod/bin/fbe

My patches are up to date as of right now, according to smpatch:

> smpatch analyze

No patches required.

I am not running compilations in parallel. I have 4 GB free in my swap.

Any ideas?

[1098 byte] By [idstorea] at [2007-11-27 10:51:05]
# 1

smpatch will not tell you about compiler patches.

To find out the patch level of the compiler components, run

CC -V -O hello.cc

where hello.cc can be just an empty main function.

Compare the reported patch levels with the current patches available at

http://developers.sun.com/sunstudio/downloads/patches/index.jsp

If a component does not report "patch" in its description, it has not been patched at all.

Get the current C++ front end and compiler common backend patches and see if that fixes the problem.

If the compiler abort is still present, please file a bug report with at test case that demonstrates the problem with your Sun Service representative if you have a service contract, or at bugs.sun.com if you do not.

clamage45a at 2007-7-29 11:29:06 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 2

The machine came preinstalled with Solaris 10 and Studio 11. The compiler has been kept up to date by smpatch, as far as I can tell. I remember the update manager installing 120759 and 121018, for example.

Is this correct?

comptest> /opt/SUNWspro/bin/CC -V -O hello.cc

CC: Sun C++ 5.8 Patch 121018-11 2007/05/02

ir2hf: Sun Compiler Common 11 Patch 120759-14 2007/06/25

ube: Sun Compiler Common 11 Patch 120759-14 2007/06/25

/opt/SUNWspro/prod/bin/c++filt: Sun C++ 5.8 2005/10/13

ccfe: Sun C++ 5.8 Patch 121018-11 2007/05/02

iropt: Sun Compiler Common 11 Patch 120759-14 2007/06/25

ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.486

Thanks for your prompt replies.

idstorea at 2007-7-29 11:29:06 > top of Java-index,Development Tools,Solaris and Linux Development Tools...
# 3

My mistake. I didn't think smpatch would check for Sun Studio patches. You have the most current ones.

If you have a Sun Service contract, please file a bug report via your support channel. If not, please file a bug report at bugs.sun.com. Either way, we need a test case that demonstrates the problem.

clamage45a at 2007-7-29 11:29:06 > top of Java-index,Development Tools,Solaris and Linux Development Tools...