SunOS acomp and ccfe Segmentation Fault

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
I am trying to compile a simple hello world program in SunOS (5.5.1 Generic_103640-42 sun4u sparc SUNW,Ultra-5_10) ,the problem we are facing is when we try to compile a simple C++ file, we are observing a segmentation fault.Initially we were able to compile, nothing got updated in server I have cross checked, please find my observations..
$/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("Hellon");
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
compiling solaris c++
 |Â
show 1 more comment
up vote
0
down vote
favorite
I am trying to compile a simple hello world program in SunOS (5.5.1 Generic_103640-42 sun4u sparc SUNW,Ultra-5_10) ,the problem we are facing is when we try to compile a simple C++ file, we are observing a segmentation fault.Initially we were able to compile, nothing got updated in server I have cross checked, please find my observations..
$/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("Hellon");
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
compiling solaris c++
Post the output ofenvandldd /apps/SUNWspro/bin/CC.
â Andrew Henle
Oct 30 '17 at 12:21
Anything in/var/adm/messagesthat indicates memory or disk problems?
â Mark Plotnick
Oct 30 '17 at 14:28
I have edited my question and pasted the ldd /apps/SUNWspro/bin/CC and /var/adm/messages I cross checked but no helpful messages...Thanks Mark and Andrew
â chandu
Oct 30 '17 at 17:08
I'm curious why you're getting: "ldd: /apps/SOLARIS/C++4.1/bin/CC: unsupported or unknown file type" Can you issue afileon it as well? I'm also curious if you have a space issue somewhere. Try checkingdf -k
â sleepyweasel
Oct 30 '17 at 19:45
CC is probably a shell script.
â Mark Plotnick
Oct 31 '17 at 4:26
 |Â
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am trying to compile a simple hello world program in SunOS (5.5.1 Generic_103640-42 sun4u sparc SUNW,Ultra-5_10) ,the problem we are facing is when we try to compile a simple C++ file, we are observing a segmentation fault.Initially we were able to compile, nothing got updated in server I have cross checked, please find my observations..
$/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("Hellon");
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
compiling solaris c++
I am trying to compile a simple hello world program in SunOS (5.5.1 Generic_103640-42 sun4u sparc SUNW,Ultra-5_10) ,the problem we are facing is when we try to compile a simple C++ file, we are observing a segmentation fault.Initially we were able to compile, nothing got updated in server I have cross checked, please find my observations..
$/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("Hellon");
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
compiling solaris c++
edited Oct 30 '17 at 17:43
asked Oct 30 '17 at 9:17
chandu
1406
1406
Post the output ofenvandldd /apps/SUNWspro/bin/CC.
â Andrew Henle
Oct 30 '17 at 12:21
Anything in/var/adm/messagesthat indicates memory or disk problems?
â Mark Plotnick
Oct 30 '17 at 14:28
I have edited my question and pasted the ldd /apps/SUNWspro/bin/CC and /var/adm/messages I cross checked but no helpful messages...Thanks Mark and Andrew
â chandu
Oct 30 '17 at 17:08
I'm curious why you're getting: "ldd: /apps/SOLARIS/C++4.1/bin/CC: unsupported or unknown file type" Can you issue afileon it as well? I'm also curious if you have a space issue somewhere. Try checkingdf -k
â sleepyweasel
Oct 30 '17 at 19:45
CC is probably a shell script.
â Mark Plotnick
Oct 31 '17 at 4:26
 |Â
show 1 more comment
Post the output ofenvandldd /apps/SUNWspro/bin/CC.
â Andrew Henle
Oct 30 '17 at 12:21
Anything in/var/adm/messagesthat indicates memory or disk problems?
â Mark Plotnick
Oct 30 '17 at 14:28
I have edited my question and pasted the ldd /apps/SUNWspro/bin/CC and /var/adm/messages I cross checked but no helpful messages...Thanks Mark and Andrew
â chandu
Oct 30 '17 at 17:08
I'm curious why you're getting: "ldd: /apps/SOLARIS/C++4.1/bin/CC: unsupported or unknown file type" Can you issue afileon it as well? I'm also curious if you have a space issue somewhere. Try checkingdf -k
â sleepyweasel
Oct 30 '17 at 19:45
CC is probably a shell script.
â Mark Plotnick
Oct 31 '17 at 4:26
Post the output of
env and ldd /apps/SUNWspro/bin/CC.â Andrew Henle
Oct 30 '17 at 12:21
Post the output of
env and ldd /apps/SUNWspro/bin/CC.â Andrew Henle
Oct 30 '17 at 12:21
Anything in
/var/adm/messages that indicates memory or disk problems?â Mark Plotnick
Oct 30 '17 at 14:28
Anything in
/var/adm/messages that indicates memory or disk problems?â Mark Plotnick
Oct 30 '17 at 14:28
I have edited my question and pasted the ldd /apps/SUNWspro/bin/CC and /var/adm/messages I cross checked but no helpful messages...Thanks Mark and Andrew
â chandu
Oct 30 '17 at 17:08
I have edited my question and pasted the ldd /apps/SUNWspro/bin/CC and /var/adm/messages I cross checked but no helpful messages...Thanks Mark and Andrew
â chandu
Oct 30 '17 at 17:08
I'm curious why you're getting: "ldd: /apps/SOLARIS/C++4.1/bin/CC: unsupported or unknown file type" Can you issue a
file on it as well? I'm also curious if you have a space issue somewhere. Try checking df -kâ sleepyweasel
Oct 30 '17 at 19:45
I'm curious why you're getting: "ldd: /apps/SOLARIS/C++4.1/bin/CC: unsupported or unknown file type" Can you issue a
file on it as well? I'm also curious if you have a space issue somewhere. Try checking df -kâ sleepyweasel
Oct 30 '17 at 19:45
CC is probably a shell script.
â Mark Plotnick
Oct 31 '17 at 4:26
CC is probably a shell script.
â Mark Plotnick
Oct 31 '17 at 4:26
 |Â
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f401376%2fsunos-acomp-and-ccfe-segmentation-fault%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post the output of
envandldd /apps/SUNWspro/bin/CC.â Andrew Henle
Oct 30 '17 at 12:21
Anything in
/var/adm/messagesthat indicates memory or disk problems?â Mark Plotnick
Oct 30 '17 at 14:28
I have edited my question and pasted the ldd /apps/SUNWspro/bin/CC and /var/adm/messages I cross checked but no helpful messages...Thanks Mark and Andrew
â chandu
Oct 30 '17 at 17:08
I'm curious why you're getting: "ldd: /apps/SOLARIS/C++4.1/bin/CC: unsupported or unknown file type" Can you issue a
fileon it as well? I'm also curious if you have a space issue somewhere. Try checkingdf -kâ sleepyweasel
Oct 30 '17 at 19:45
CC is probably a shell script.
â Mark Plotnick
Oct 31 '17 at 4:26