GCC 3.0: "configure: error: libffi has not been ported tos390-linux-gnu."

Andreas Jaeger aj@suse.de
Sun Aug 12 01:05:00 GMT 2001


Tom Tromey <tromey@redhat.com> writes:

>>>>>> "Alexandre" == Alexandre Oliva <aoliva@redhat.com> writes:
>
>>> On Aug 11, 2001, Andreas Jaeger <aj@suse.de> wrote:
>>> Is libffi a prerequisite for gcj?  In other words would libgcj work
>>> without libffi?
>
> Alexandre> IIRC, yes, it would, but it wouldn't support the
> Alexandre> interpreter or JNI.  But please don't take my word for it.
> Alexandre> Hopefully someone in the java mailing list will know for
> Alexandre> sure.
>
> You can configure `--without-libffi' and it will be disabled.
> When ffi is disabled, the interpreter, JNI, and reflection do not work.
> If you know ffi won't work on a given host, you can set up the default
> in libjava/configure.host.


I run configure --enable-languages=c,c++,objc,java --without-libffi on
s390 and still got the message that libffi has not been ported.

What should be done for GCC 3.0.1?

Is the following patch appropriate or should we disable libgcj
completly?

I'm testing this patch now on s390,

Andreas

2001-08-12  Andreas Jaeger  <aj@suse.de>

	* configure.in: Disable libffi on s390-linux targets.

============================================================
Index: configure.in
--- configure.in	2001/07/12 17:51:50	1.90.2.16
+++ configure.in	2001/08/12 08:01:45
@@ -15,7 +15,7 @@
 ## for 'Autoconf' (autoconf.texi) and 'Configure' (configure.texi).  
 
 #   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998,
-#   1999, 2000 Free Software Foundation, Inc.
+#   1999, 2000, 2001 Free Software Foundation, Inc.
 #
 # This file is free software; you can redistribute it and/or modify it
 # under the terms of the GNU General Public License as published by
@@ -757,6 +757,12 @@
     if [ x${is_cross_compiler} != xno ] ; then
          target_configdirs="${target_configdirs} target-libstub target-cygmon"
     fi
+    ;;
+  s390*-*-linux*)
+    # linux has rx in libc
+    skipdirs="$skipdirs target-librx"
+    # The libffi port is not yet in the GCC tree
+    noconfigdirs="$noconfigdirs target-libffi"
     ;;
   *-*-linux*)
     # linux has rx in libc

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj



More information about the Java mailing list