Re: WRAPIT error: wrong architecture

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue Feb 02 2010 - 22:22:22 MST

Mingxuan,

I have a feeling that since you are running MacOS 10.6, it may be
trying to compile your *.f code in 64-bit (-m64) mode. The version of
NCL that you have may be a 32-bit (-m32) version. You can't mix 32-
bit and 64-bit compilations in this case.

Do you know if you are running a version of NCL that was compiled for
MacOS *10.5*? If so, then this is definitely a 32-bit version.

If you think you have a 32-bit version of NCL, then try running this
attached version of WRAPIT with the "-m32" option:

     WRAPIT.test -m32 utc_lt90.stub utc_lt.f90

You may need to make it executable first:

    chmod gou+x WRAPIT.test

--Mary

On Feb 2, 2010, at 11:00 AM, Mingxuan Chen wrote:

> Hello,
> I run "WRAPIT utc_lt90.stub utc_lt.f90", and obtained
> "utc_lt90.so".
> When I use
> "external utc_lt90 "./utc_lt90.so"
> There is error message:
> warning:An error occurred loading the external file ./utc_lt90.so,
> file not loaded
> dlopen(./utc_lt90.so, 2): no suitable image found. Did find:
> ./utc_lt90.so: mach-o, but wrong architecture
> warning:error at line 5
>
> What is wrong?
> WRAPIT is version : 091416
> NCL version 5.1.1
> it run at Max Os X 10.6.2
>
> Thank you for your help
>
> Mingxuan
>
> -------
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
> external UTC_LT90 "./utc_lt90.so"
> begin
> .................
> ---------
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Feb 2 22:22:47 2010

This archive was generated by hypermail 2.1.8 : Sun Feb 07 2010 - 15:37:25 MST