wrapit trouble

From: Coly SAR <colysar_at_nyahnyahspammersnyahnyah>
Date: Fri Aug 05 2011 - 09:40:25 MDT

Hi all,

I am learning wrapit with a fortran subroutine but I am having : A syntax
error occurred while parsing:

as indicated on the web I used dos2linux command to make sure the file is
fine.

The .so is created but when I run it I am having a segmentation fault.
below is the output from -d command:

COMPILING test.f
gfortran -m64 -fPIC -v -c -fno-second-underscore test.f
Utilisation des specs internes.
Target: x86_64-redhat-linux
Configuré avec: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk
--disable-dssi --disable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre --with-cpu=generic
--host=x86_64-redhat-linux
Modèle de thread: posix
version gcc 4.1.2 20080704 (Red Hat 4.1.2-50)
 /usr/libexec/gcc/x86_64-redhat-linux/4.1.2/f951 test.f -ffixed-form -quiet
-dumpbase test.f -m64 -mtune=generic -auxbase test -version -fPIC
-fno-second-underscore -I /usr/lib/gcc/x86_64-redhat-linux/4.1.2/finclude -o
/tmp/cc547GUV.s
GNU F95 version 4.1.2 20080704 (Red Hat 4.1.2-50) (x86_64-redhat-linux)
        compiled by GNU C version 4.1.2 20080704 (Red Hat 4.1.2-50).
heuristiques GGC: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
 as -V -Qy --64 -o test.o /tmp/cc547GUV.s
GNU assembler version 2.17.50.0.6-14.el5 (x86_64-redhat-linux) using BFD
version 2.17.50.0.6-14.el5 20061020
SHARED OBJECT NAME (SharedObj): test.so
LINKER SUFFIX (ld_suffix): WRAPIT.o test.o -o test.so

LINKING
gcc -m64 -fPIC -shared WRAPIT.o test.o -o test.so -lgfortran
END WRAPIT

Any hint, on this useful topic I am learning.

Best Regards,

Coly

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri Aug 5 09:40:32 2011

This archive was generated by hypermail 2.1.8 : Fri Aug 05 2011 - 14:53:54 MDT