Re: so file not loading

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Tue, 26 Feb 2008 16:44:18 -0700 (MST)

On Mon, 25 Feb 2008, Micah Sklut wrote:

> I've got an interesting problem where the system I'm compiling with WRAPIT
> is getting a run time error
> while loading the .so file, while another system runs with no errors using
> the same .so file.
>
> On both machines, I have the same version of ncl 4.3.1. Both machines are
> running linux, but with
> different processors. The machine that runs the script successfully is
> running amd processors, while the
> machine which is unsuccessfully running the script is running intel xeon's.
>
>
> I'm not sure where the problem may be.
>
> This is how I compile:
>
> WRAPIT -in -fPIC wnawind2.f90 ../fort/calendar.f90 wnawind.stub
>
> The error I recieve is:
>
> warning:An error occurred loading the external file
> ~/swellinfo/ncl/wnawind2.so, file not loaded
> warning:error at line 5 in file write_ww3wind2.ncl
>
> fatal:syntax error: line 34 in file write_ww3wind2.ncl before or near :
> WRITE:
> ----------^
>
> fatal:error in statement
> fatal:Syntax Error in block, block not executed
> fatal:error at line 37 in file write_ww3wind2.ncl
>
>
> My line 5 is:
> external WRITE "~/swellinfo/ncl/wnawind2.so"
>
> Any suggestions here? Thank you!
>
> Micah Sklut

Hi Micah,

There may be an incompatibility with using the Intel compilers to
generate the shared object, and then trying to load the shared
object using a gcc/g77-compiled version of ncl.

Have you tried running WRAPIT without the "-in" option?

Also, with the NCL that's giving you problems: do you know exactly
which binary was installed? I can check if there was a problem
with the way we built it.

--Mary

_______________________________________________
ncl-talk mailing list
ncl-talk_at_ucar.edu
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Tue Feb 26 2008 - 16:44:18 MST

This archive was generated by hypermail 2.2.0 : Tue Feb 26 2008 - 16:44:49 MST