Re: WRAPIT error: wrong architecture

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Sat Feb 06 2010 - 10:19:51 MST

Mingxuan,

I didn't realize this was an OPeNDAP-enabled version of NCL.

I've got another one for you to try, but I don't know what state it's
in because my Mac OS 10.6 system is still out.

Go to the same ftp location, and download ncl.nodap.

Then:

   chmod gou+x ncl.nodap
   mv ncl.nodap $NCARG_ROOT/bin

Now try using "ncl.nodap" instead of "ncl".

I should warn you that this executable has other shared library
dependencies:

        /usr/lib/libz.1.dylib (compatibility version 1.0.0, current version
1.2.3)
        /usr/X11/lib/libpng12.0.dylib (compatibility version 36.0.0, current
version 36.0.0)
        /usr/X11/lib/libcairo.2.dylib (compatibility version 10803.0.0,
current version 10803.6.0)
        /usr/X11/lib/libfreetype.6.dylib (compatibility version 10.0.0,
current version 10.20.0)
        /usr/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current
version 16.0.0)
        /usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current
version 9.0.0)
        /usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current
version 11.0.0)
        /usr/local/gfortran/lib/x86_64/libgfortran.3.dylib (compatibility
version 4.0.0, current version 4.0.0)
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 125.0.0)
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0, current
version 7.9.0)

The X11 stuff should be there if you installed the X11 developer's
tools off your MacOS CD (maybe it's the default for Mac OS 10.6).
You may need to install gfortran, if you haven't already, in order to
get the "/usr/local/gfortran/lib/x86_64/libgfortran.3.dylib" file.

--Mary

On Feb 5, 2010, at 4:03 PM, Mingxuan Chen wrote:

> 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
>>>>
>>>
>>
>

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Sat Feb 6 10:19:58 2010

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