Re: WRAPIT in x86_64

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Wed, 6 Sep 2006 10:45:29 -0600

Hi Melissa,

The problem with WRAPIT is that NCL was compiled with -fPIC, but WRAPIT
has no provision for adding additional options
on the compile line.

I've attached a new WRAPIT that should automatically include the -fPIC
option if it detects you are on a Linux system and
using gcc. I've only tested this on a couple of systems so please give
it a try and let me know if it works.

As for the previous WRAPIT question, I probably answered that offline
and forgot to post the answer back to the group.
We usually try to do this!


On Sep 6, 2006, at 10:34 AM, Melissa Bukovsky wrote:

> Hi,
> I am having problems compiling using WRAPIT. The code compiled and
> worked on my old linux computer, but will not on the one I am using
> now - looks like a WRAPIT needs to be compiled using -fPIC. Here's
> the output I receive:
> $ WRAPIT calc_climate_fort_utils.f
> WRAPIT Version: 042606
> /usr/bin/g77
> COMPILING calc_climate_fort_utils.f
> /usr/bin/ld: WRAPIT.o: relocation R_X86_64_32 against `a local symbol'
> can not be used when making a shared object; recompile with -fPIC
> WRAPIT.o: could not read symbols: Bad value
> collect2: ld returned 1 exit status
> A similar error was reported on Mar 6, 2006 in ncl-talk, but no
> solution was posted. The version of ncl I am using is
> 4.2.0.a033.Linux_x86_64 on an X86_64 machine running fedora 5. If
> anyone has a solution to this error, please let me know.
> Thank you,
> Melissa
> _______________________________________________
> ncl-talk mailing list

ncl-talk mailing list

Received on Wed Sep 06 2006 - 10:45:29 MDT

This archive was generated by hypermail 2.2.0 : Wed Sep 06 2006 - 10:52:20 MDT