This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcj on HP-UX


> >>>>> ">" == mariner ux <marinerux@gmx.net> writes:
> 
> >> 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?
> 
> Yes, you need at least boehm-gc, zlib, and libjava.
> Ordinarily ports are turned off by default until someone makes them
> work.  In some cases this is easy, though HP-UX has a bad reputation
> so you might find it difficult.
> 
> >> 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
> 
> Probably a bug in gthr-posix.h of some kind.  Maybe a missing #include.
> Or maybe HP-UX doesn't have the necessary posix thread support, I
> don't know.
> 
> Like Michael, I recommend starting with a more recent version of gcc.
> The most difficult part of the port is likely to be the GC; most of
> libjava is actually fairly easy to port to another unixy system.
> 
> Tom
> 
I did it the way you recommended, I tried to configure and compile the
version 3.4.3 of gcc.

----
CC=gcc ../configure --prefix=/opt/apps/gcc-3.4.3 --with-gnu-as
--enable-languages=c++,java  --enable-libgcj 
--enable-version-specific-runtime-libs

loading cache ./config.cache
checking host system type... hppa1.1-hp-hpux10.20
checking target system type... hppa1.1-hp-hpux10.20
checking build system type... hppa1.1-hp-hpux10.20
checking for a BSD compatible install... ../install-sh -c
*** This configuration is not supported in the following subdirectories:
     target-libf2c target-libobjc
    (Any other directories should still work fine.)
checking for hppa1.1-hp-hpux10.20-ar... no
checking for ar... ar

after make bootstrap the follow error occured:

checking how to run the C preprocessor...
/mnt/bigdrive/compile/gcc-3.4.3/build/gcc/xgcc
-B/mnt/bigdrive/compile/gcc-3.4.3/build/gcc/
-B/opt/apps/gcc-3.4.3/hppa1.1-hp-hpux10.20/bin/
-B/opt/apps/gcc-3.4.3/hppa1.1-hp-hpux10.20/lib/ -isystem
/opt/apps/gcc-3.4.3/hppa1.1-hp-hpux10.20/include -isystem
/opt/apps/gcc-3.4.3/hppa1.1-hp-hpux10.20/sys-include -E
checking for sys/mman.h... yes
checking for mmap... yes
checking whether read-only mmap of a plain file works... yes
checking whether mmap from /dev/zero works... no
checking for MAP_ANON(YMOUS)... yes
checking whether mmap with MAP_ANON(YMOUS) works... yes
configure: error: libffi has not been ported to hppa1.1-hp-hpux10.20.
make[1]: *** [configure-target-libffi] Error 1
make[1]: Leaving directory `/mnt/bigdrive/compile/gcc-3.4.3/build'
make: *** [bootstrap] Error 2

----

Parallel to the gcc-3.4.3 i tried to compile 3.2 with this configure:

----

CC=gcc ../configure --prefix=/opt/apps/gcc-3.2 --with-gnu-as --enable-libgcj
 --enable-version-specific-runtime-libs --without-libffi


No errors while "configure" and that error while "make bootstrap":

checking whether we are using GNU C... (cached) yes
checking whether /opt/apps/temp/compile/gcc-3.2/build/gcc/xgcc
-B/opt/apps/temp/compile/gcc-3.2/build/gcc/
-B/opt/apps/gcc-3.2/hppa1.1-hp-hpux10.20/bin/
-B/opt/apps/gcc-3.2/hppa1.1-hp-hpux10.20/lib/ -isystem
/opt/apps/gcc-3.2/hppa1.1-hp-hpux10.20/include accepts -g... (cached) yes
configure: error: libffi has not been ported to hppa1.1-hp-hpux10.20.
make[1]: *** [configure-target-libffi] Error 1
make[1]: Leaving directory `/opt/apps/temp/compile/gcc-3.2/build'
make: *** [bootstrap] Error 2

---

You talked about gcj should run without libffi. But how do i have to compile
the gcc, that gcj will work?

I'm new in HP-UX. It would be nice if you could explain me, what I exactly
did wrong. And how I have to do it to bring it to work...

Thanks a lot
Corsin

-- 
Sparen beginnt mit GMX DSL: http://www.gmx.net/de/go/dsl


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