From: Joseph Jones Date: 2015-12-17T21:06:15-07:00 Subject: [ruby-core:72262] [Ruby trunk - Bug #11765] [Open] Trouble using fiddle to call Fortran from C --56738637_b03e0c6_16c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Joseph Jones liked your message with Boxer. On December 2, 2015 at 13:11:= 54 MST, lxh37=40psu.edu wrote:Issue =2311765 has been reported by Liz Hua= ng.----------------------------------------Bug =2311765: Trouble using fi= ddle to call =46ortran from Chttps://bugs.ruby-lang.org/issues/11765* Aut= hor: Liz Huang* Status: Open* Priority: Normal* Assignee: * ruby -v: ruby= 2.2.1p85 (2015-02-26 revision 49769) =5Bx86=5F64-linux=5D* Backport: 2.0= .0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN----------------------------------= ------Hi, I tried to transfer my project from Mac to Linux, but have trou= ble to use fiddle to callthe dynamic library which I generated using same= =46ortran and C codes I used in Mac. I used sameversion of Ruby both in = Mac and Linux. To narrow the cause, I created a simple C program, Icould = call it using fiddle, then I tried to create a simple C and =46ortran, bu= t couldn't callit from Ruby On Rails. I posted the codes in Intel =46ortr= an for Linux =46orum to make sure is no bug in my code. I attached error=5F= log, development=5Flog and also =46ortran and C code, hope they are helpf= ul for debug.---=46iles--------------------------------development.log (1= KB)error=5Flog (467 KB)add.c (1.12 KB)add.h (261 Bytes)addsize.f90 (1.09= KB)-- https://bugs.ruby-lang.org/ --56738637_b03e0c6_16c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Joseph Jones liked your message with Boxer.


= On December 2, 2015 at 13:11:54 MST, lxh37=40psu.edu wrote:
Issue =2311765 has been reported by= Liz Huang.

----------------------------------------
Bug = =2311765: Trouble using fiddle to call =46ortran from C
https://bugs= .ruby-lang.org/issues/11765

* Author: Liz Huang
* Status:= Open
* Priority: Normal
* Assignee:
* ruby -v: ruby 2.2.= 1p85 (2015-02-26 revision 49769) =5Bx86=5F64-linux=5D
* Backport: 2.= 0.0: UNKNOWN, 2.1: UNKNOWN, 2.2: UNKNOWN
---------------------------= -------------

Hi, I tried to transfer my project from Mac to L= inux, but have trouble to use fiddle to call
the dynamic library whi= ch I generated using same =46ortran and C codes I used in Mac. I used sam= e
version of Ruby both in Mac and Linux. To narrow the cause, I crea= ted a simple C program, I
could call it using fiddle, then I tried t= o create a simple C and =46ortran, but couldn't call
it from Ruby On= Rails. I posted the codes in Intel =46ortran for Linux =46orum to make s= ure
is no bug in my code. I attached error=5Flog, development=5Flog= and also =46ortran and C code,
hope they are helpful for debug.
---=46iles--------------------------------
development.log = (1 KB)
error=5Flog (467 KB)
add.c (1.12 KB)
add.h (261 Byt= es)
addsize.f90 (1.09 KB)


--
https://bugs.rub= y-lang.org/
--56738637_b03e0c6_16c--