Article View: gnu.gcc.bug
Article #6025Problems with Dec alpha OSF1 V4.0
From: Richard Gooch
Date: Mon, 06 Jan 1997 00:00
Date: Mon, 06 Jan 1997 00:00
68 lines
2920 bytes
2920 bytes
We recently upgraded a Dec alpha machine from OSF1 V3.2 to V4.0, and
we now have problems compiling code. Some examples:
Using GCC 2.7.2 compiled under OSF1 V3.2:
% uname -a
OSF1 hostname V4.0 464 alpha
% gcc -v
Reading specs from /usr/local/gnu/lib/gcc-lib/alpha-dec-osf3.2/2.7.2/specs
gcc version 2.7.2
% gcc -c try.c
In file included from /usr/include/sys/siginfo.h:37,
from /usr/include/sys/signal.h:56,
from /usr/include/sys/time.h:84,
from try.c:5:
/usr/include/sys/sysmisc.h:100: parse error before `pthread_attr_t'
/usr/include/sys/sysmisc.h:100: warning: no semicolon at end of struct or union
/usr/include/sys/sysmisc.h:100: warning: no semicolon at end of struct or union
/usr/include/sys/sysmisc.h:102: warning: data definition has no type or storage class
/usr/include/sys/sysmisc.h:103: parse error before `}'
/usr/include/sys/sysmisc.h:103: warning: data definition has no type or storage class
In file included from /usr/local/gnu/lib/gcc-lib/alpha-dec-osf3.2/2.7.2/include/time.h:167,
from /usr/include/sys/time.h:106,
from try.c:5:
/usr/include/sys/timers.h:98: warning: redefinition of `clockid_t'
/usr/local/gnu/lib/gcc-lib/alpha-dec-osf3.2/2.7.2/include/time.h:96: warning: `clockid_t' previously declared here
The source code I tried to compile is:
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <ctype.h>
#include <sys/time.h>
#include <sys/times.h>
#include <signal.h>
#include <sys/resource.h>
#include <string.h>
#include <errno.h>
void main ()
{
fprintf (stderr, "hello\n");
}
It would appear that the header files that GCC derives from the system
header files are now incompatible with the system header files. The
next thing I did was to try building GCC 2.7.2.1. I was able to build
the first stage compiler, but when building the compiler with itself,
I got the following error message when compiling cp/errfn.c:
stage1/xgcc -Bstage1/ -c -DIN_GCC -g -O2 -I. -I.. -I. -I./.. -I./../config errfn.c
errfn.c: In function `cp_sprintf':
errfn.c:198: conflicting types for `sprintf'
include/stdio.h:182: previous declaration of `sprintf'
*** Exit 1
Stop.
*** Exit 1
Stop.
So it also appears that GCC 2.7.2.1 (I also tried with GCC 2.7.2 with
the same results) cannot deal with the system header files.
Regards,
Richard....
Technical Details
Message-ID:
<199701060116.MAA09166@vindaloo.rp.CSIRO.AU>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 113d02,2c14339a7c397243,start X-Google-Attributes: gid113d02,public From: rgooch@atnf.CSIRO.AU (Richard Gooch) Subject: Problems with Dec alpha OSF1 V4.0 Date: 1997/01/06 Message-ID: <199701060116.MAA09166@vindaloo.rp.CSIRO.AU> X-Deja-AN: 207962601 sender: bug-gcc-request@prep.ai.mit.edu x-gateway: relay5.UU.NET from bug-gcc to gnu.gcc.bug; Sun, 5 Jan 1997 20:17:56 EST newsgroups: gnu.gcc.bug