Re: wrapit error

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon, 22 Oct 2007 14:13:37 -0600 (MDT)

Micah,

The other issue here might be that the NCL you have was compiled
with the GNU compilers (g77, gcc), and you are using the Intel
compilers to build the shared object. There may be some kind
of incompatibility here.

If you don't use the "-in" option, does it work?

    WRAPIT namwind.stub namwind4.f90

--Mary

On Thu, 18 Oct 2007, Micah Sklut wrote:

> Hi Rick,
>
> The new host is a 64 bit system. It is running a Intel Core 2 Quad Core.
>
> I downloaded ncl-4.3.1.Linux_x86_64_gcc4.tar.gz and installed on fedora core
> 7.
>
> uname -A output:
> Linux Micah-PC 2.6.21-1.3194.fc7 #1 SMP Wed May 23 22:47:07 EDT 2007 x86_64
> x86_64 x86_64 GNU/Linux
>
> I tried adding the -fPIC option, and am still receiving the same error.
> NCARG_ROOT has been set correctly.
>
> Any other thoughts on this ?
>
> Thank you very much.
>
> Micah
>
> On 10/18/07, Rick Grubin <grubin_at_ucar.edu> wrote:
>>
>> Hi Micah
>>
>>> I just installed ncl on a new system.
>>
>> What type of system is this new host? 32bit or 64bit? Did you
>> download the proper binary for it?
>>
>> It would help to know this information; the output from 'uname -a' is
>> also helpful.
>>
>>> I tried to recompile my fortran files with wrapit, but encountered
>>> the following error message when I used this command:
>>>
>>> WRAPIT -in namwind.stub namwind4.f90
>>>
>>> Error:
>>> WRAPIT Version: 051007
>>> /opt/intel/fc/9.1.040/bin/ifort
>>> COMPILING namwind4.f90
>>> LINKING
>>> ld: warning: i386:x86-64 architecture of input file `WRAPIT.o' is
>>> incompatible with i386 output
>>
>> The error here indicates you have a 64bit host -- true?
>>
>> The error is telling you that you're trying to link a 32bit object
>> with 64bit objects, which you cannot do. I would
>> suggest using the option '-fPIC' on the command line ('WRAPIT -in -
>> fPIC namwind.stub namwind4.f90') to make
>> sure you're using relocatable objects.
>>
>> Please also make sure you've downloaded the correct NCL distribution
>> for your host.
>>
>> -Rick.
>> ----
>> Rick Grubin NCAR/TDD/CISL/VETS
>> Visualization + Enabling Technologies
>> grubin_at_ucar.edu 303.497.1832
>>
>>
>>
>
_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Oct 22 2007 - 14:13:37 MDT

This archive was generated by hypermail 2.2.0 : Mon Oct 22 2007 - 14:48:46 MDT