Do you hit the same issue with the latest version of Sun Studio? It came out last week.
If you still hit this issue, I've blogged about procedures for filing bugs against the compiler here: http://blogs.sun.com/d/entry/reporting_bugs Feel free to contact me directly. Regards, Darryl. On 03/23/09 09:15 AM, Tirthankar wrote: > I am trying to build my code on OpenSolaris for SPARC build 109. > > I have installed the following sunstudioexpress > sunstudioexpress 0.2008.11-0.106 > > > While building I get the following error > > > 3810 /opt/SUNWspro//bin/CC -xcg92 -m32 -g0 -Qoption ccfe -features=noglobal > -Qoption cg -Qiselect-T1 -xO3 ../../../sparc/ml/sparc.il -xspace > -temp=/tmp/nbuild-td153743-tmp.17885/tmp -Qoption ccfe > -messages=no%anachronism > -Qoption ccfe -features=no%conststrings -xwe -xildoff +p +w > -features=no%except > -instances=extern -features=no%strictdestrorder -library=no%Crun > -library=no%Cstd > -D_KERNEL -D_SYSCALL32 -DDEBUG -DSYSACCT -DC2_AUDIT -I../../../sparc > -I/workspace/td153743/sfbay/ws/c1+5.11+sparc/proto/Sol_11/root_sparc/usr/includ > e > -I/usr/include -DVXFS_DISABLED -DWEAK_MEMBERSHIP -DSOL_VERSION=200710 > -I/workspace/td153743/sfbay/ws/c1+5.11+sparc/usr/src/common/cl > -I/workspace/td153743/sfbay/ws/c1+5.11+sparc/usr/src/common/cl/interfaces/32 > -D_KERNEL_ORB -D_FAULT_INJECTION -DDEBUG -DFAULT_ALL -c > -o debug32/mcobj_impl.o > /workspace/td153743/sfbay/ws/c1+5.11+sparc/usr/src/common/cl/cl_net/mcobj_impl. > cc > 3811 > 3812 CODEGEN IR TREE SYNTAX ERROR AT LINE > 3813 WITHIN ROUTINE __1cbCstickywildcard_ht_equal_func6FXX_b_ > 3814 ! > (/workspace/td153743/sfbay/ws/c1+5.11+sparc/usr/src/common/cl/cl_net/mcobj_impl > .cc:141) > 3815 T[11] PTR strty assign L[42]=%v113 L[44]=%v115 attr: > 3816 L[42] DREG_113 PTR strty [type = t[90]] VAR %v113 dbg_sym_id: {0,0} > 3817 L[44] DREG_115 ulonglong align 4 [type = t[71]] VAR %v115 dbg_sym_id: > {643,1} > 3818 > 3819 /opt/scbld/bin/sparc/ctfconvert -L VERSION debug32/mcobj_impl.o > 3820 ERROR: ctfconvert: debug32/mcobj_impl.o: Couldn't read ehdr: Request > error: class file/memory mismatch > 3821 Removing debug32/mcobj_impl.o > 3822 *** Error code 1 > > > The same code compiles without any problem on x86. > > Thanks in advance > Tirthankar > http://blogs.sun.com/tirthankar -- Darryl Gove Compiler Performance Engineering Blog: http://blogs.sun.com/d/ Book: http://www.sun.com/books/catalog/solaris_app_programming.xml