Questions on WRAPIT command

From: Lu, Xu <luxu_at_nyahnyahspammersnyahnyah>
Date: Thu Dec 13 2012 - 10:05:46 MST

Hello~
Greetings!!

I'm trying to plot some pictures in bufr format. So I Googled and found this using the WRAPIT command, http://www.ncl.ucar.edu/Support/talk_archives/2004/0455.html<http://www.ncl.ucar.edu/Support/talk_archives/2004/0455.html.>
I tried that and found the syntax error occurred.

I Googled again and found this http://www.ncl.ucar.edu/Support/talk_archives/2009/2230.html
According to that, it might be the unix form problems.

But when I use the simple test program it gives and dos2unix it, it failed again.
Still the syntax error.

And I have tried to change several versions of ncl while always get the similar result. If there's anyone have an idea about this? Do I need to set any special thing on this WRAPIT command? Since I've never used this before.

Here's the simple test.f,
      SUBROUTINE computeone(N,X,Y,Z)
      REAL X(N),Y(N),Z(N)
      DO 10 I=1,N
        Z(I) = X(I)+Y(I)
10 CONTINUE
      RETURN
      END

And this is the WRAPIT -d information:
WRAPIT Version: 120209
OPERATING SYSTEM: Linux
nbits = 64
FORTRAN COMPILER (f90c): gfortran
FORTRAN COMPILER OPTIONS (fopts): -m64 -fPIC -v -c -fno-second-underscore
A syntax error occurred while parsing:
gcc -fPIC -m64 -c -I/home/luxu/softwares/NCL1/include WRAPIT.c
COMPILING test.f
gfortran -m64 -fPIC -v -c -fno-second-underscore test.f
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.6 20120305 (Red Hat 4.4.6-4) (GCC)
COLLECT_GCC_OPTIONS='-m64' '-fPIC' '-v' '-c' '-fno-second-underscore' '-mtune=generic'
 /usr/libexec/gcc/x86_64-redhat-linux/4.4.6/f951 test.f -ffixed-form -quiet -dumpbase test.f -m64 -mtune=generic -auxbase test -version -fPIC -fno-second-underscore -fintrinsic-modules-path /usr/lib/gcc/x86_64-redhat-linux/4.4.6/finclude -o /tmp/ccUp41HC.s
GNU Fortran (GCC) version 4.4.6 20120305 (Red Hat 4.4.6-4) (x86_64-redhat-linux)
        compiled by GNU C version 4.4.6 20120305 (Red Hat 4.4.6-4), GMP version 4.3.1, MPFR version 2.4.1.
GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072
COLLECT_GCC_OPTIONS='-m64' '-fPIC' '-v' '-c' '-fno-second-underscore' '-mtune=generic'
 as -V -Qy --64 -o test.o /tmp/ccUp41HC.s
GNU assembler version 2.20.51.0.2 (x86_64-redhat-linux) using BFD version version 2.20.51.0.2-5.34.el6 20100205
COMPILER_PATH=/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.4.6/:/usr/lib/gcc/x86_64-redhat-linux/:/usr/libexec/gcc/x86_64-redhat-linux/4.4.6/:/usr/libexec/gcc/x86_64-redhat-linux/:/usr/lib/gcc/x86_64-redhat-linux/4.4.6/:/usr/lib/gcc/x86_64-redhat-linux/
LIBRARY_PATH=/usr/lib/gcc/x86_64-redhat-linux/4.4.6/:/usr/lib/gcc/x86_64-redhat-linux/4.4.6/:/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/usr/lib/gcc/x86_64-redhat-linux/4.4.6/../../../:/lib/:/usr/lib/
COLLECT_GCC_OPTIONS='-m64' '-fPIC' '-v' '-c' '-fno-second-underscore' '-mtune=generic'
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

Thanks,
Xu

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Thu Dec 13 10:06:04 2012

This archive was generated by hypermail 2.1.8 : Fri Dec 21 2012 - 10:43:23 MST