This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
gcj on HP-UX
- From: "mariner ux" <marinerux at gmx dot net>
- To: java at gcc dot gnu dot org
- Date: Fri, 28 Jan 2005 09:13:31 +0100 (MET)
- Subject: gcj on HP-UX
Hi there,
I'm trying to compile GCJ on HP-UX 10.20.
I'm doing this to compile Java source code into native Code.
I downloaded the gcc-3.3. And putted it into the folder compile:
- cd compile
- gunzip gcc-3.3.tar.gz
- tar xvf gcc-3.3.tar
- mkdir build
- cd build
- ../gcc/configure --enable-threads=posix --prefix=/opt/apps/gcc-last
--enable-shared --enable-languages=c++,java --with-gnu-as
At the start of the first error occured:
Configuring for a hppa1.1-hp-hpux10.20 host.
*** This configuration is not supported in the following subdirectories:
target-libffi target-boehm-gc target-zlib target-libjava target-libf2c
target-libobjc
(Any other directories should still work fine.)
Created "Makefile" in /mnt/bigdrive/compile/objdir using "mh-frag"
Configuring libiberty...
creating cache ../config.cache
checking whether to enable maintainer-specific portions of Makefiles... no
checking for makeinfo... no
checking for perl... perl
checking host system type... hppa1.1-hp-hpux10.20
checking build system type... hppa1.1-hp-hpux10.20
checking for ar... ar
checking for ranlib... ranlib
checking for gcc... gcc
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
Why is this configuration not supportet for "
target-libffi target-boehm-gc target-zlib target-libjava target-libf2c
target-libobjc "?
I think i need all those subdirectories to have a working java compiler,
isn't it?
- make bootstrap
The second error occured:../../gcc/gcc/gthr-posix.h:483: warning: return
makes pointer from integer without a cast
../../gcc/gcc/gthr-posix.h: At top level:
../../gcc/gcc/gthr-posix.h:487: error: parse error before "key"
../../gcc/gcc/gthr-posix.h:488: warning: function declaration isn't a
prototype
../../gcc/gcc/gthr-posix.h: In function `__gthread_setspecific':
../../gcc/gcc/gthr-posix.h:489: error: `key' undeclared (first use in this
function)
../../gcc/gcc/gthr-posix.h:489: error: `ptr' undeclared (first use in this
function)
../../gcc/gcc/gthr-posix.h: At top level:
../../gcc/gcc/gthr-posix.h:493: error: parse error before '*' token
../../gcc/gcc/gthr-posix.h:494: warning: function declaration isn't a
prototype
../../gcc/gcc/gthr-posix.h: In function `__gthread_mutex_lock':
../../gcc/gcc/gthr-posix.h:496: warning: implicit declaration of function
`pthread_mutex_lock'
../../gcc/gcc/gthr-posix.h:496: error: `mutex' undeclared (first use in this
function)
../../gcc/gcc/gthr-posix.h: At top level:
../../gcc/gcc/gthr-posix.h:502: error: parse error before '*' token
../../gcc/gcc/gthr-posix.h:503: warning: function declaration isn't a
prototype
../../gcc/gcc/gthr-posix.h: In function `__gthread_mutex_trylock':
../../gcc/gcc/gthr-posix.h:505: warning: implicit declaration of function
`pthread_mutex_trylock'
../../gcc/gcc/gthr-posix.h:505: error: `mutex' undeclared (first use in this
function)
../../gcc/gcc/gthr-posix.h: At top level:
../../gcc/gcc/gthr-posix.h:511: error: parse error before '*' token
../../gcc/gcc/gthr-posix.h:512: warning: function declaration isn't a
prototype
../../gcc/gcc/gthr-posix.h: In function `__gthread_mutex_unlock':
../../gcc/gcc/gthr-posix.h:514: warning: implicit declaration of function
`pthread_mutex_unlock'
../../gcc/gcc/gthr-posix.h:514: error: `mutex' undeclared (first use in this
function)
../../gcc/gcc/gthr-posix.h: At top level:
../../gcc/gcc/unwind-pe.h:61: warning: `size_of_encoded_value' defined but
not used
make[3]: *** [libgcc/./unwind-dw2.o] Error 1
make[3]: Leaving directory `/mnt/bigdrive/compile/objdir/gcc'
make[2]: *** [libgcc.a] Error 2
make[2]: Leaving directory `/mnt/bigdrive/compile/objdir/gcc'
make[1]: *** [stage1_build] Error 2
make[1]: Leaving directory `/mnt/bigdrive/compile/objdir/gcc'
make: *** [bootstrap] Error 2
after this error I did a:
- make all
and the installation ran to the end without an error...
When I now do a gcj -v, I see this:
sirius:root:/mnt/bigdrive/gcc-3.3> gcj -v
Reading specs from
/opt/apps/gcc-3.3.3/lib/gcc-lib/hppa1.1-hp-hpux10.20/3.3/specs
Reading specs from libgcj.spec
gcj: libgcj.spec: No such file or directory
What did I do wrong, what else can i do to bring gcj to work?
Thanks for your help,
Corsin
--
10 GB Mailbox, 100 FreeSMS http://www.gmx.net/de/go/topmail
+++ GMX - die erste Adresse für Mail, Message, More +++