Question on GCJ

Nishaat Rajabali nishaat@nortelnetworks.com
Thu Jul 13 04:50:00 GMT 2000


Title: Question on GCJ 
Hi All,
I am new to this mailing list and Java in general. Hope you can help me
with my problem.
I am trying to create an executable of a small Java program i wrote. I can't run
the JDK Java Virtual Machine ('java') as i would like to run my application within 
another one. I tried writing a small script but it doesn't. (the program is ok as
it runs using the virtual machine).
Somebody suggested that i can use GCJ to convert my Java app into a standalone
executable. So with this in mind i downloaded the latetst version GCC (2.95.2 includes GCJ)
and the Java Run-time library and tried building GCC first. It doesn't build !! I solved the first 
error i got with one of the make file and then i got another which i don't know what it mean- see
below for the error.
I am using HP-UNIX 10.20  via a Exceed server. 
My questions is that is the error easily solvable ? Instead of building GCJ should I use pre-built
GCJ and where can i get a copy for HP-UNIX 10.20 ?
Or is there any other way to do this ? I know about JNI but rather NOT use this method !!
Any help is appreciated .
Thx
************************* ERROR ************************************************************************
/home/nishaat/gcc/compile/egcs/objdir> make all
No suffix list.
        make all-recursive
No suffix list.
Making all in intl
Making all in lib
Making all in makeinfo
Making all in util
(cd intl && make all)
(cd po && make all)
        make GCC_FOR_TARGET="/home/nishaat/gcc/compile/egcs/objdir/gcc/xgcc -B/home/nishaat/gcc/compile/egcs/objdir/gcc/ -B/home/nishaat/gcc/hppa2.0-hp-hpux10.20/bin/ -I/home/nishaat/gcc/hppa2.0-hp-hpux10.20/include" \
          HOST_PREFIX="" HOST_PREFIX_1="loser-" \
          AR_FOR_TARGET="ar" \
          AR_CREATE_FOR_TARGET="ar  rc" \
          AR_FLAGS_FOR_TARGET="" \
          OLDCC="cc" CCLIBFLAGS="-O" CFLAGS="-g -O2" \
          RANLIB_FOR_TARGET="true" \
          RANLIB_TEST_FOR_TARGET="[ -f true ]  || ( [ "hppa2.0-hp-hpux10.20" = "hppa2.0-hp-hpux10.20" ]  && [ -f /usr/bin/ranlib -o -f /bin/ranlib ] )" \
          LIBGCC2_CFLAGS="-O2   -DIN_GCC    `echo -g -O2|sed -e 's/-pedantic//g' -e 's/-Wtraditional//g'` -isystem ./include  -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED " \
          INCLUDES="-I. -I../../gcc -I../../gcc/config -I../../gcc/../include" MAYBE_USE_COLLECT2="-DUSE_COLLECT2" \
          CONFIG_H="" MACHMODE_H="machmode.h machmode.def" \
          LIB1ASMSRC='' \
          -f libgcc.mk all
        for d in libgcc; do \
          if [ -d $d ]; then true; else mkdir $d; fi \
        done
        if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
        /home/nishaat/gcc/compile/egcs/objdir/gcc/xgcc -B/home/nishaat/gcc/compile/egcs/objdir/gcc/ -B/home/nishaat/gcc/hppa2.0-hp-hpux10.20/bin/ -I/home/nishaat/gcc/hppa2.0-hp-hpux10.20/include -O2   -DIN_GCC    -g -O2 -isystem ./include  -fPIC -g1 -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED  -I. -I../../gcc -I../../gcc/config -I../../gcc/../include -DUSE_COLLECT2 -DL_muldi3 -c ../../gcc/libgcc2.c -o libgcc/./_muldi3.o
cc1: warning: -g is only supported when using GAS on this processor,
cc1: warning: -g option disabled.
as: "/var/tmp/ccwGiNaC.s", line 10: error 1051: Illegal symbol in opcode position - :
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
*** Error exit code 1
Stop.
Nishaat Rajabali
Member of Scientific staff (MSS)
ESN 6-590-4425
Internal Web Site at: http://pndinfo.europe.nortel.com/sn/sn30/SN33/index.html
Unit 5, Concorde Road, Norrey's Drive, Maidenhead, Berkshire, SL6 4AG
E-mail: nishaat@nortelnetworks.com
Tel: +44 (0) 1628 434425
Fax: +44 (0) 1628 434832
Join AllAdvantage.com and get paid to surf the Web! Please use my ID ( BPO673 ) when asked if someone referred you. Thanks
http://www.alladvantage.com/go.asp?refid= BPO673


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /