This is the mail archive of the java-discuss@sourceware.cygnus.com mailing list for the GCJ project. See the GCJ home page for more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Can't compile egcs on sgi (long)


Hi, I've given up trying to build libgcj on solaris for the moment.  Now
I'm trying on sgi but I can't even seem to build egcs.  If someone who
has succeeded could tell me exactly what version to use or what to type
that would be great.

The machine is an r10k indigo2 running irix 6.2.  It has sgi's C++ and C
compilers version 7.1 (and I've compiled lots of stuff before on it in
the past).

Here's what I've tried..

cd /toast/src/irix6.2/egcs-19990412
mkdir build; cd build
setenv CC cc
../configure --prefix=/usr/local/egcs --enable-shared --enable-threads
--enable-languages=java
gmake bootstrap

The compile fails here:
gmake[2]: Entering directory
`/toast/src/irix6.2/egcs-19990412/build/gcc/java'
cc -c  -DIN_GCC    -g     -I. -I.. -I../../../gcc/java
-I../../../gcc/java/.. -I../../../gcc/java/../config
-I../../../gcc/java/../../include ../../../gcc/java/parse.c
cfe: Warning 624: ../../../gcc/java/xref.h, line 33: Trailing comma in
enumerator list
   XREF_NONE = 0,
 ---------------^
cfe: Warning 642: ../../../gcc/java/lex.c, line 249: prototype
declaration and non-prototype definition found for java_store_unicode,
the type of this parameter is not compatible with the type after
applying default argument promotion
     unicode_t c;
 --------------^
cfe: Warning 642: ../../../gcc/java/lex.c, line 344: prototype
declaration and non-prototype definition found for java_lineterminator,
the type of this parameter is not compatible with the type after
applying default argument promotion
      unicode_t c;
 ---------------^
cfe: Warning 642: ../../../gcc/java/lex.c, line 373: prototype
declaration and non-prototype definition found for
java_parse_end_comment, the type of this parameter is not compatible
with the type after applying default argument promotion
      unicode_t c;
 ---------------^
cfe: Warning 642: ../../../gcc/java/lex.c, line 402: prototype
declaration and non-prototype definition found for
java_parse_doc_section, the type of this parameter is not compatible
with the type after applying default argument promotion
      unicode_t c;
 ---------------^
cfe: Warning 642: ../../../gcc/java/lex.c, line 455: prototype
declaration and non-prototype definition found for
java_letter_or_digit_p, the type of this parameter is not compatible
with the type after applying default argument promotion
      unicode_t c;
 ---------------^
cfe: Warning 642: ../../../gcc/java/lex.c, line 1265: prototype
declaration and non-prototype definition found for java_unicode_2_utf8,
the type of this parameter is not compatible with the type after
applying default argument promotion
     unicode_t unicode;
 --------------^
cfe: Error: ./parse.y, line 6324: Syntax Error
        }
        ^
gmake[2]: *** [parse.o] Error 1



I also tried with the previous version of egcs.  It got a lot farther
but failed during the stage2 compile (I think) with an abi error.

cd /toast/src/irix6.2/egcs-19990405
mkdir build; cd build
setenv CC cc
../configure --prefix=/usr/local/egcs --enable-shared --enable-threads
--enable-languages=java
gmake bootstrap

The compile fails here:
stage1/xgcc -Bstage1/ -B/usr/local/egcs/mips-sgi-irix6.2/bin/ 
-DIN_GCC     -W -Wall -O2 -g  -DHAVE_CONFIG_H  -o cc1 toplev.o version.o
tree.o print-tree.o stor-layout.o fold-const.o function.o stmt.o
except.o expr.o calls.o expmed.o explow.o optabs.o intl.o varasm.o rtl.o
print-rtl.o rtlanal.o emit-rtl.o genrtl.o real.o dbxout.o sdbout.o
dwarfout.o dwarf2out.o xcoffout.o bitmap.o alias.o gcse.o integrate.o
jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o varray.o
regclass.o regmove.o local-alloc.o global.o reload.o reload1.o
caller-save.o insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o
insn-opinit.o insn-recog.o insn-extract.o insn-output.o insn-emit.o
lcm.o profile.o insn-attrtab.o mips.o getpwd.o  convert.o mbchar.o
dyn-string.o splay-tree.o graph.o sbitmap.o resource.o hash.o c-parse.o
c-lang.o c-lex.o c-pragma.o c-decl.o c-typeck.o c-convert.o c-aux-info.o
c-common.o c-iterate.o  obstack.o        ../libiberty/libiberty.a
ld: WARNING 84: ../libiberty/libiberty.a is not used for resolving any
symbol.
stage1/xgcc -Bstage1/ -B/usr/local/egcs/mips-sgi-irix6.2/bin/ -c 
-DIN_GCC     -W -Wall -O2 -g  -DHAVE_CONFIG_H    -I. -I../../gcc
-I../../gcc/config -I../../gcc/../include \
         
-DGCC_INCLUDE_DIR=\"/usr/local/egcs/lib/gcc-lib/mips-sgi-irix6.2/egcs-2.93.17/include\"
\
 
-DGPLUSPLUS_INCLUDE_DIR=\"/usr/local/egcs/lib/gcc-lib/mips-sgi-irix6.2/egcs-2.93.17/../../../..`echo
/usr/local/egcs | sed -e 's|^/usr/local/egcs||' -e
's|/[^/]*|/..|g'`/include/g++-2\" \
 
-DCROSS_INCLUDE_DIR=\"/usr/local/egcs/lib/gcc-lib/mips-sgi-irix6.2/egcs-2.93.17/../../../../mips-sgi-irix6.2/sys-include\"
\
 
-DTOOL_INCLUDE_DIR=\"/usr/local/egcs/lib/gcc-lib/mips-sgi-irix6.2/egcs-2.93.17/../../../../mips-sgi-irix6.2/include\"
\
  -DLOCAL_INCLUDE_DIR=\"/usr/local/include\" \
 
-DSTD_PROTO_DIR=\"/usr/local/egcs/lib/gcc-lib/mips-sgi-irix6.2/egcs-2.93.17\"
\
  ../../gcc/protoize.c
stage1/xgcc -Bstage1/ -B/usr/local/egcs/mips-sgi-irix6.2/bin/ 
-DIN_GCC     -W -Wall -O2 -g  -DHAVE_CONFIG_H  -o protoize protoize.o
getpwd.o intl.o version.o  obstack.o        ../libiberty/libiberty.a
ld: FATAL 112: cannot link old 32-bit object with -n32 link:
../libiberty/libiberty.a(pexecute.o).
collect2: ld returned 4 exit status
gmake[2]: *** [protoize] Error 1