Re: Errors compiling NCL 6.0 NCARG with ifort and icc hlu ncl

From: Mary Haley <haley_at_nyahnyahspammersnyahnyah>
Date: Mon Dec 19 2011 - 07:50:41 MST

On Dec 18, 2011, at 12:50 AM, wxtofly wrote:

> All,
> I finally got everything including ncl compiled. The error below was being caused by the existence of the triangle makefile in the src/ncl directory. Fedora turns out not to provide statically compiled libraries for things like -X11, so a fully static build was impossible. The pre-existence of dependency libraries and headers that were other versions or had been built with other compilers and compiler options was the biggest issue. By creating a special compilation environment and carefully controlling the -L -l and -I to be the right version compiled with the icc and ifort compilers, I was able to get it to work. A last hiccup was one Makefile that had a hardcoded g\+\+ compiler in it that had to be changed to icc.
>
> I never did get it to compile automatically but had to manually tailor the ncl build after it failed.
>
> Next question: Can I now move everything that was installed to the new $NCARG directory anywhere, or are there relative paths compiled in that will break if moved form where it was first installed. ( I understand that I would have to change the env NCARG_ROOT to it's location.)

Yes, you can move the installed software wherever you like. There are no path dependencies. You just need to update your NCARG_ROOT, and make sure $NCARG_ROOT/bin is on your search path.

>
> Unfortunately, after all this effort, it appears that a fortran module that I have been using, for which I do not have source code, will not load giving the error: undefined symbol: NclGetArgValue. Is there any way to fix this kind of problem without the module source?

There's not enough information to go on here. I assume you are running WRAPIT? If so, what arguments are you using? If you know how this module was compiled, then you want to have WRAPIT use the same compiler and flags, if possible.

WRAPIT -h

 will show you the various options you can try for changing the compiler. "WRAPIT -in" will invoke the Intel compilers.

--Mary

>
> Thanks, TJ Olney
>
> On 12/16/2011 04:34 PM, wxtofly wrote:
>>
>>
>> I'm trying to compile ncl 6.0 from source with ifort and icc with -O3 xssse3 . I've read what I could find in prior emails here and on ncl-talk.
>> However, the next make all install ended here in $NCARG/ni/src/ncl
>> make[3]: *** No rule to make target `../../.././ni/src/lib/hlu/libhlu.a', needed by `ncl'. Stop.
>>
>> Thoughts? What must I backtrack to for that one.
>>
>> TJ Olney
>
> _______________________________________________
> 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 Mon Dec 19 07:50:52 2011

This archive was generated by hypermail 2.1.8 : Wed Dec 21 2011 - 10:44:06 MST