WRAPIT architecture mismatch?

From: Alessandra Giannini <alesall_at_nyahnyahspammersnyahnyah>
Date: Fri May 31 2013 - 08:56:46 MDT

Hello everyone,

I realize I have an old issue, already discussed here <http://www.ncl.ucar.edu/Support/install_archives/2011/0233.html>
but I can't seem to be able to figure it out on my own...

I managed an incredible feat of archeology of my scripting memory yesterday, reviving multi-step calculations I had not attempted in many years, but all to no avail.
I had never tried this kind of calculation since getting a mac, and here lies the problem, I think.

I think the issue is that WRAPIT is not working as it should be...

I tried running the trouble-shooting example, and get these lines of error when I execute "ncl ex.ncl":

warning:An error occurred loading the external file ./ex.so, file not loaded
dlopen(./ex.so, 2): no suitable image found. Did find:
        ./ex.so: mach-o, but wrong architecture
warning:error at line 1 in file ex.ncl

fatal:syntax error: line 8 in file ex.ncl before or near :
  EX:
----^

fatal:error in statement
fatal:Syntax Error in block, block not executed
fatal:error at line 11 in file ex.ncl

When I run WRAPIT on ex.f, I get the following:

WRAPIT Version: 110125
COMPILING ex.f
LINKING
ld: warning: in /usr/local/lib/libgfortran.dylib, file was built for unsupported file format which is not the architecture being linked (i386)
END WRAPIT

If I run the file command on "ex.so", I get the following:

ex.so: Mach-O bundle i386

"uname -a" returns the following:

Darwin dhcp-111-125.ldeo.columbia.edu 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386

I am running this on a Mac OS X Version 10.6.8

"which ncl" returns the following: /usr/local/ncl_ncarg-6.0.0.MacOS_10.6_64bit_gcc421/bin/ncl

Having read the prior post thread, I've tried and downloaded a gazillion gfortran versions, but can't seem to find one that works [sorry if this is too generic a statement...]
Is this where the issue is, in the fortran compiler?
Would it be resolved by installing a more recent version of NCL?

Any and all help is much appreciated!

warm regards, alessandra

-- 
Alessandra Giannini
IRI for Climate and Society - The Earth Institute at Columbia University
P.O. Box 1000, Palisades NY 10964-8000
phone/fax: +1 845 680-4473/4864 - email: alesall@iri.columbia.edu

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Fri May 31 08:56:59 2013

This archive was generated by hypermail 2.1.8 : Tue Jun 04 2013 - 09:50:17 MDT