Re: WRAPIT error: wrong architecture

From: Mingxuan Chen <chen_at_nyahnyahspammersnyahnyah>
Date: Wed Feb 03 2010 - 10:09:00 MST

Hi Mary,
   
 The following is the results of WRAPIT.test

--------
talus 9:37 /temp/chen> WRAPIT.test -m32 utc_lt90.stub utc_lt.f90
 
WRAPIT Version: 100111
COMPILING utc_lt.f90
LINKING
ld: warning: in /usr/local/lib/libgfortran.dylib, file is not of required architecture
END WRAPIT
--------------------------
Is it indicate gfortran is in 64 bit.
Do you have NCL -m64 version?
  Thank you very much for your help!
Mingxuan

 

    
On Feb 2, 2010, at 10:22 PM, Mary Haley wrote:

> 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
> <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
>
Received on Wed Feb 3 10:09:18 2010

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