This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: 3.0.2 fails to compile on OSR 5.0.5
- To: Bill Walker <bw at cs4 dot ecok dot edu>
- Subject: Re: 3.0.2 fails to compile on OSR 5.0.5
- From: Robert Lipe <robertlipe at usa dot net>
- Date: Fri, 26 Oct 2001 09:46:55 -0500
- Cc: gcc at gcc dot gnu dot org
- References: <m15x6Wi-000F7xC@cs4.ecok.edu>
> Under SCO Unix OSR 5.0.5 gcc 3.0.2 fails to compile. The problems seems
> to be something to do with DIR ... at stage 2
I just downloaded the exact (full) release tarball and cranked of a
CC=/bin/cc ../path/to/configure
make bootstrap
on my 5.0.6 system and did not see this. So either something is wierd
with your system or something has changed in this regard between 5.0.5
and 5.0.6. Since I don't have a 5.0.5 system, let's compare notes.
Does this program compile for you with /bin/cc?
/bin/cc -c /tmp/x.c
cat /tmp/x.c
#include <dirent.h>
DIR *foo;
Does it compile with 'stage1/xgcc -Bstage1/'?
(robertl) rjlhome:/src/tmp/g/gcc
$ stage1/xgcc -Bstage1/ -c /tmp/x.c
Can you look inside /usr/include/dirent.h and see why DIR isn't being
set? Is fixincludes perhaps building a hosed up dirent.h that's being
found in stage2?
My three-stage is still spinning, but I'm long past this so I'm pretty
sure that my system isn't going to show this...
RJL
>
> [large snip]
>
> rm -f f771
> stage1/xgcc -Bstage1/ -B/usr/local/i386-pc-sco3.2v5.0.5/bin/ -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wtraditional -pedantic -Wno-long-long -DHAVE_CONFIG_H -o f771 f/bad.o f/bit.o f/bld.o f/com.o f/data.o f/equiv.o f/expr.o f/global.o f/implic.o f/info.o f/intrin.o f/lab.o f/lex.o f/malloc.o f/name.o f/parse.o f/proj.o f/src.o f/st.o f/sta.o f/stb.o f/stc.o f/std.o f/ste.o f/storag.o f/stp.o f/str.o f/sts.o f/stt.o f/stu.o f/stv.o f/stw.o f/symbol.o f/target.o f/top.o f/type.o f/version.o f/where.o toplev.o libbackend.a obstack.o alloca.o ./intl/libintl.a ../libiberty/libiberty.a
> stage1/xgcc -Bstage1/ -B/usr/local/i386-pc-sco3.2v5.0.5/bin/ -c -DIN_GCC -g -O2 -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -DHAVE_CONFIG_H -I. -Ijava -I. -I./java -I./config -I./../include java/parse.c -o java/parse.o
> /nfs/gandalf/u2/mitchell/gcc-3.0.2/gcc-3.0.2/gcc/java/parse.y: In function `read_import_dir':
> /nfs/gandalf/u2/mitchell/gcc-3.0.2/gcc-3.0.2/gcc/java/parse.y:6549: `DIR' undeclared (first use in this function)
> /nfs/gandalf/u2/mitchell/gcc-3.0.2/gcc-3.0.2/gcc/java/parse.y:6549: (Each undeclared identifier is reported only once
> /nfs/gandalf/u2/mitchell/gcc-3.0.2/gcc-3.0.2/gcc/java/parse.y:6549: for each function it appears in.)
> /nfs/gandalf/u2/mitchell/gcc-3.0.2/gcc-3.0.2/gcc/java/parse.y:6549: `dirp' undeclared (first use in this function)
> /nfs/gandalf/u2/mitchell/gcc-3.0.2/gcc-3.0.2/gcc/java/parse.y:6549: invalid lvalue in assignment
> /nfs/gandalf/u2/mitchell/gcc-3.0.2/gcc-3.0.2/gcc/java/parse.y:6616: warning: implicit declaration of function `opendir'
> /nfs/gandalf/u2/mitchell/gcc-3.0.2/gcc-3.0.2/gcc/java/parse.y:6624: warning: implicit declaration of function `readdir'
> /nfs/gandalf/u2/mitchell/gcc-3.0.2/gcc-3.0.2/gcc/java/parse.y:6624: warning: initialization makes pointer from integer without a cast
> /nfs/gandalf/u2/mitchell/gcc-3.0.2/gcc-3.0.2/gcc/java/parse.y:6627: dereferencing pointer to incomplete type
> /nfs/gandalf/u2/mitchell/gcc-3.0.2/gcc-3.0.2/gcc/java/parse.y:6628: dereferencing pointer to incomplete type
> /nfs/gandalf/u2/mitchell/gcc-3.0.2/gcc-3.0.2/gcc/java/parse.y:6635: warning: implicit declaration of function `closedir'
> make[2]: *** [java/parse.o] Error 1
> make[2]: Leaving directory `/usr1/faculty/bw/downloads/ftp.gnu.org/gcc-3.0.2/gcc'
> make[1]: *** [stage2_build] Error 2
> make[1]: Leaving directory `/usr1/faculty/bw/downloads/ftp.gnu.org/gcc-3.0.2/gcc'
> make: *** [bootstrap] Error 2
>
> --
> Bill Walker Ph.D.
> Chairman, Dept. of Computer Science
> East Central University
> Ada, Oklahoma 74820-6899
>
> e-mail: bw@cs.ecok.edu
> phone: 580 332 8000 ext. 594
> direct: 580 310 5594
> FAX: 580 310 5606
>
>