Eu estou tentando compilar um simples programa hello world no SunOS (5.5.1 Generic_103640-42 sun4u sparc SUNW, Ultra-5_10), o problema que estamos enfrentando é quando tentamos compilar um arquivo C ++ simples, estamos observando uma falha de segmentação.Inicialmente, fomos capazes de compilar, nada foi atualizado no servidor eu verifiquei cruzada, por favor, encontrar minhas observações ..
$/apps/SUNWspro/bin/CC -C chandru.C CC: Warning: Option -C passed to ld, if ld is invoked, ignored otherwise CC: Fatal error in ccfe: Segmentation Fault (core dumped) $ls -l /apps/SUNWspro/bin/CC lrwxrwxrwx 1 root other 15 Aug 23 1999 /apps/SUNWspro/bin/CC -> ../SC5.0/bin/CC $/apps/SOLARIS/C++4.1/bin/CC -V chandru.C CC: diagnostics generated from compilation of chandru.int.c: cc: Fatal error in /apps/SUNWspro/bin/../SC5.0/bin/acomp Status 139 CC: end of diagnostics from compilation of chandru.int.c: $ls -l /apps/SOLARIS/C++4.1/bin/CC -r-xr-xr-x 1 scmeadm scme 44524 Jan 30 1998 /apps/SOLARIS/C++4.1/bin/CC $cat chandru.C #include "stdio.h" int main() { printf("Hello\n"); return 0; }
spe:/scmeadm> which CC /apps/SOLARIS/C++4.1/bin/CC spe:/usr/att/scmeadm> ldd /apps/SUNWspro/bin/CC libintl.so.1 => /usr/lib/libintl.so.1 libc.so.1 => /usr/lib/libc.so.1 libw.so.1 => /usr/lib/libw.so.1 libdl.so.1 => /usr/lib/libdl.so.1 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1 spe:/scmeadm> ldd /apps/SOLARIS/C++4.1/bin/CC ldd: /apps/SOLARIS/C++4.1/bin/CC: unsupported or unknown file type After I cross checked with which CC ,again I complied with these steps #/apps/SUNWspro/bin/CC -C chandru.C CC: Warning: Option -C passed to ld, if ld is invoked, ignored otherwise CC: Fatal error in ccfe: Segmentation Fault (core dumped)
PATH=/now_scme/lbin:/apps/build/i1010/sun5.6/delta/i/prod/bin:/usr/ccs/bin:/bin:/usr/bin:/now_scme/bin2.1_Sun5.5:/now_scme/bin2.1_Hpux1020:/apps/SOLARIS/C++4.1/bin:/apps/SOLARIS/nmake3.2/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/oss/scmeadm/bin:. CPLUSLIB=/apps/SOLARIS/C++4.1/lib CC=/apps/SOLARIS/C++4.1/bin/CC CPLUSINC=/apps/SOLARIS/C++4.1/include