delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2011/04/12/22:25:57

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL
X-Spam-Check-By: sourceware.org
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AnwHABYJpU0yI+jm/2dsb2JhbACYXI0pxRyFbgSFXIwR
X-Previous-IP: 50.35.232.230
Message-ID: <4DA509A0.5070702@frontier.com>
Date: Tue, 12 Apr 2011 19:25:36 -0700
From: Jerry DeLisle <jvdelisle AT frontier DOT com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110307 Fedora/3.1.9-0.39.b3pre.fc14 Thunderbird/3.1.9
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: 64bit (g)fortran JNI
References: <io1o4k$euu$1 AT dough DOT gmane DOT org>
In-Reply-To: <io1o4k$euu$1@dough.gmane.org>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

On 04/12/2011 07:38 AM, Hans Horn wrote:
> Folks,
>
> has anybody got any experience interfacing (g)fortran routines with Java via JNI?
>
> I'm on 64bit Windows7 using cygwin
> x86_64-w64-mingw32-gcc and x86_64-w64-mingw32-gfortran, both v4.5.2
>
> Java: jdk-6u24-windows-x64
>
> Even though I can statically link the JNI code successfully (using gfortran as
> linker), calling any native method from Java crashes the JVM - even when no
> fortran code is called at all.
>
What do you mean by native method?  Are you trying to call Fortran procedures 
from Java?

In what way does it crash?  Can you get a back trace from a debugger?

Jerry

PS I have no experience with this, just asking some questions to glean 
additional information. Fortran calling conventions are no exactly the same as C.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019