[16063] in Athena Bugs
sgi 8.2.8: cygnus
daemon@ATHENA.MIT.EDU (Frederick L Colhoun)
Thu Jul 30 15:27:17 1998
To: bugs@MIT.EDU
Date: Thu, 30 Jul 1998 15:27:14 EDT
From: Frederick L Colhoun <fcolhoun@MIT.EDU>
System name: pembroke.mit.edu
Type and version: IP22 8.2.8 (with mkserv)
Display type: NG1
What were you trying to do?
I was trying to recompile an ansi C program which had worked
beautifully before the os upgrade.
What's wrong:
athena% gcc -Wall -ansi -pedantic -o dvz.x fmulcarb.c -lm
attach: /afs/athena.mit.edu/software/cygnus/cygnus-97r2 linked to /mit/cygnus-97r2 for filesystem cygnus-97r2
In file included from /usr/include/stdio.h:37,
from fmulcarb.c:39:
/usr/include/sgidefs.h:210: parse error before `__int64_t'
/usr/include/sgidefs.h:210: warning: type defaults to `int' in declaration of `__int64_t'
/usr/include/sgidefs.h:210: ANSI C forbids data definition with no type or storage class
/usr/include/sgidefs.h:211: parse error before `__uint64_t'
/usr/include/sgidefs.h:211: warning: type defaults to `int' in declaration of `__uint64_t'
/usr/include/sgidefs.h:211: ANSI C forbids data definition with no type or storage class
athena% ls -l dvz.x
UX:ls: ERROR: Cannot access dvz.x: No such file or directory
What should have happened:
I should have received my executable
Please describe any relevant documentation references:
This is a problem specific to sgi machines. I got the same error on
2 different Indy machines (pembroke and m66-080-16) as well as an O2
machine (m4-035-5).
If I remove the ansi flag from the compile statement, I get an
executable file but I still get the following error messages.
athena% gcc -o dvz.x fmulcarb.c -lm
ld: WARNING 84: /mit/cygnus-97r2/arch/sgi_62/lib/gcc-lib/mips-sgi-irix5/2.7-97r2/libgcc.a is not used for resolving any symbol.
ld: WARNING 84: /mit/cygnus-97r2/arch/sgi_62/lib/gcc-lib/mips-sgi-irix5/2.7-97r2/libgcc.a is not used for resolving any symbol.
dvz.x: no symbols
athena% ls -l dvz.x
-rwx------ 1 fcolhoun mit 38736 Jul 30 10:47 dvz.x
fmulcarb.c:39 reads as follows:
#include <stdio.h>
Thank you,
Fred Colhoun