Re: WRAPIT error: wrong architecture

From: Mingxuan Chen <chen_at_nyahnyahspammersnyahnyah>
Date: Fri Feb 05 2010 - 16:03:07 MST

Hi Mary,
   As previous email, WRAPIT.test is successful.
  But ncl didn't work anymore.
  Would you please look at it?
  Thank you very much!
Mingxuan
-----------------------
talus DING! /Users/chen/Diurnal> ncl rd_cam.ncl
dyld: Library not loaded: /opt/local/lib/libnc-dap.3.dylib
  Referenced from: /usr/local/bin/ncl
  Reason: image not found
Trace/BPT trap
---------------------

On Feb 4, 2010, at 9:01 AM, Mary Haley wrote:

> Mingxuan (and others),
>
> We have a test MacOS 10.6 binary if anybody wants to try it. Many thanks go to Guangshan Chen for being very patient and building this on his machine after much trial and error.
>
> To get the gzipped tar file:
>
> ftp ftp.ucar.edu
> <log in as "anonymous">
> <Use email address as password>
> cd /pub/scd/haley
> get ncl_ncarg-5.1.1.MacOS10.6_i386.tar.gz
> quit
>
> Once you have the file, you need to uncompress and untar it wherever
> you want the software to reside. For example, if you want the software
> in /usr/local, then move the file to /usr/local and type the
> following:
>
> gunzip ncl_ncarg-5.1.1.MacOS10.6_i386.tar.gz
> tar -xvf ncl_ncarg-5.1.1.MacOS10.6_i386.tar
>
> You can then remove the file ncl_ncarg-5.1.1.MacOS10.6_i386.tar or save it
> somewhere.
>
> You also need to setenv NCARG_ROOT to the parent directory (/usr/local
> in this case), and make sure $NCARG_ROOT/bin (/usr/local/bin in this
> case) is on your search path.
>
> Mingxuan: once you have this file, try WRAPIT.test again, with the "-m64" option.
>
> --Mary
>
>
> On Feb 3, 2010, at 10:09 AM, Mingxuan Chen wrote:
>
>> 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 Fri Feb 5 16:03:21 2010

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