developerstudio12.6 CC在Solaris英特尔i386上,编译器不显示错误或警告,但失败 尝试使用Solaris英特尔I38中的开发人员StudioOuto126cc编译C++程序。 编译器不显示错误或警告,但失败

developerstudio12.6 CC在Solaris英特尔i386上,编译器不显示错误或警告,但失败 尝试使用Solaris英特尔I38中的开发人员StudioOuto126cc编译C++程序。 编译器不显示错误或警告,但失败,c++,compiler-errors,solaris,compiler-warnings,sunstudio,C++,Compiler Errors,Solaris,Compiler Warnings,Sunstudio,可以找出为什么CC没有显示任何警告或错误-可能出了什么问题 developerstudio12.6/bin/CC -mt -xtarget=native -m32 -g -errwarn=%all -O -DNDEBUG -c xml_test.cc -I<some include> -I<some other include> -o xml_test.o echo $? 2 developerStudio 12.6/bin/CC-mt-xtarget=nati

可以找出为什么CC没有显示任何警告或错误-可能出了什么问题

developerstudio12.6/bin/CC  -mt -xtarget=native -m32 -g  -errwarn=%all  -O -DNDEBUG  -c xml_test.cc -I<some include> -I<some other include> -o xml_test.o
echo $?
2
developerStudio 12.6/bin/CC-mt-xtarget=native-m32-g-errwarn=%all-O-DNDEBUG-cxml\u test.CC-I-I-oxml\u test.O
回声$?
2.
使用-verbose=template=>类似的输出,没有调试行 使用-#或verbose=diags=>大量输出,但没有错误行

### CC: Note: NLSPATH =   `/opt/developerstudio12.6/bin/../lib/locale/%L/LC_MESSAGES/%N.cat:/opt/developerstudio12.6/bin/../../lib/locale/%L/LC_MESSAGES/%N.cat`
###     command line files and options (expanded):
### -mt=yes -xtarget=native -xchip=broadwell -xcache=32/64/8/2:256/64/8/2:30720/64/20/24 -xarch=avx2_i -m32 -xdebuginfo=line,param,variable,tagtype,codetag,decl -xglobalize=yes -xpatchpadding=fix -Qoption driver -dconditional=yes -xkeep_unref=funcs,vars -verbose=diags -O3 -DNDEBUG -c xml_test.cc -I<some include> -I<some include> -oxml_test.o
/opt/developerstudio12.6/lib/compilers/bin/ccfe -D__SunOS_5_11 -D__SunOS_RELEASE=0x051100 -D__SUNPRO_CC=0x5150 -D__unix -D__SVR4__ -D__svr4__ -D__SVR4 -D__sun -D__sun__ -D__SunOS -D__i386 -D__i386__ -D__ORDER_LITTLE_ENDIAN__=1234 -D__ORDER_BIG_ENDIAN__=4321 -D__BYTE_ORDER__=__ORDER_LITTLE_ENDIAN__ -D__BUILTIN_VA_ARG_INCR -Dunix -Dsun -Di386 -D__FP_FAST_FMA__ -D__FP_FAST_FMAF__ -D_REENTRANT -D__SUN_PREFETCH -D__SUNPRO_CC_COMPAT=5 -I<some include> -I<some include> -I-xbuiltin -I/opt/developerstudio12.6/lib/compilers/include/CC/Cstd -I/opt/developerstudio12.6/lib/compilers/include/CC -I/opt/developerstudio12.6/lib/compilers/include/cc -DNDEBUG -ptf /tmp/ccfe.1620226479.15666.03.%1.%2 -ptx /opt/developerstudio12.6/bin/CC -ptk "-mt=yes -xtarget=native -m32 -xdebuginfo=line,param,decl,variable,tagtype,codetag -xglobalize=yes -xpatchpadding=fix -xkeep_unref=funcs,vars -verbose=diags -O3 -DNDEBUG -c -I<some include> -I<some include> " -compat=5 -xglobalize=yes -xdebuginfo=line,param,variable,tagtype,codetag,decl -instlib=/opt/developerstudio12.6/lib/compilers/libCstd.a -xdbggen=dwarf+usedonly+incl+line+param+variable+tagtype+codetag+decl -xF=%none -xbuiltin=%default -xldscope=global -xivdep=loop -xdepend -O3 -xarrayloc xml_test.cc -ptb xml_test.o -o /tmp/ccfe.1620226479.15666.01.ir 2> /tmp/ccfe.1620226479.15666.02.err
###CC:Note:NLSPATH=`/opt/developerstudio12.6/bin/./lib/locale/%L/LC_消息/%N.cat:/opt/developerstudio12.6/bin/../lib/locale/%L/LC_消息/%N.cat`
###命令行文件和选项(展开):
###-mt=yes-xtarget=native-xchip=broadwell-xcache=32/64/8/2:256/64/8/2:30720/64/20/24-xarch=avx2_i-m32-xdebuginfo=line,param,variable,tagtype,codetag,decl-xglobalize=yes-xpatchpadding=fix-Qoption-driver-dconditional=yes-xkeep\u unref=funcs,vars-verbose=diags-O3-DNDEBUG-c xml.cc-i-oxml\test.o
/4月11日-D月10日的太阳(太阳)太阳(太阳)的太阳——D月太阳(太阳)的太阳——D月太阳(太阳)的太阳(太阳)的太阳(太阳)的太阳(太阳)从从从从从从从从太阳——D月到太阳的太阳——D月到太阳的太阳——D月到太阳的太阳太阳的太阳——D月的太阳的太阳太阳太阳——据据报道,该公司的太阳的太阳太阳太阳——D月的太阳太阳太阳——据据据据据据据据据据报道,从从从从从从从从从从从从从从从从从从从从从从从从从从从从——到到到到到到到到太阳的太阳太阳的太阳的太阳的太阳太阳的太阳太阳太阳太阳太阳太阳的太阳太阳的太阳太阳——D的太阳的太阳——据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据据_=4321-D_uuu字节uu顺序uuu顺序uuu顺序uuu顺序uu顺序uu顺序uu顺序uu顺序uuuu顺序uu顺序uuu顺序uuuu顺序uuuuuu顺序uuuuuuuuuuuu-D_uufp_FAST_ufma_uufp_ufast_ufmaf_uu-D_u可重入-D_usun_预取-D_usunpro_CC_COMPAT=5-I-I-I-I-xbuiltin-I/opt/developerstudio12.6/lib/compilers/include/CC/Cstd-I/opt/developerstudio12.6/lib/lib/lib/lib/compilers/include/tc/tc-16.2.6/tc-362;/opt/developerstudio12.6/bin/CC-ptk“-mt=yes-xtarget=native-m32-xdebuginfo=line,param,decl,variable,tagtype,codetag-xglobalize=yes-xpatchpadding=fix-xkeep_unref=funcs,vars-verbose=diags-O3-DNDEBUG-c-I-I“--compat=5-xglobalize=yes-xdebuginfo=line,param,variable,tagtype,codetype,decl-instlib=/opt/developerstudio12.6/lib/compilers/libCstd.a-xdbggen=dwarf+usedonly+incl+line+param+variable+tagtype+codetag+decl-xF=%none-xbuiltin=%default-xldscope=global-xivedep=loop-xdepend-ox-xml\u test.cc-ptb-xml\u-o-o/tmp/ccfe.1620226479.15666.01.ir 2>/tmp/ccfe.1620226479.15666.02.err

/opt/developerstudio12.6/lib/compilers/stdlibfilt-stderr您的
NLSPATH
环境变量不正确


/opt/developerstudio12.6/bin/../lib/locale/%L/LC\u MESSAGES/%N.cat
指的是
/opt/lib/locale/%L/LC\u MESSAGES/%N.cat
而不是
/opt/developerstudio12.6/lib/locale/%L/LC\u MESSAGES/%N.cat,因为其中有一个额外的
元素。

我刚刚通过添加
-filt=%none
到编译器选项:

-mt -xtarget=native -m32 -filt=%none -g2 -verbose=template -errtags -library=iostream 

嗯,Andrew NLS路径不是由我明确设置的,编译器是自己选择的。不久前,我通过在编译器选项中添加-filt=%none解决了这个问题:-mt-xtarget=native-m32-filt=%none-g2-verbose=template-errtags-library=iostream