[ncl-install] NCL for Power7
Smriti Prathapan
smritip1 at umbc.edu
Wed Jun 18 10:16:55 MDT 2014
Hi,
I am trying to install NCL/NCAR Graphics from source for Power 7( PPC64). Following the instructions, I did the configure and make Everything. There are a few errors in the make-output file and some of the executables have not been created, for e.g. idt, ctrans etc.
Pasted below are some of the errors in make-output. I have attached the make-output. Please help me solve these errors.
gfortran -fPIC -fno-second-underscore -fno-range-check -fopenmp -O -o ncargworld ncargworld.o ../../../.././nc
arg2d/src/libncarg_gks/awi/ggkwdr_stub.o -L../../../.././ncarg2d/src/libncarg -lncarg -L../../../.././ncarg2d/src
/libncarg_gks -lncarg_gks -L../../../.././common/src/libncarg_c -lncarg_c -L/home/smritip1/NOAA/new_gsi/WRFV3.6/P7
/ncl_ncarg-6.2.0/lib -L/usr/lib64/X11/ -L/usr/include/freetype2/ -L/usr/local/lib64/ -L/home/smritip1/NOAA/new_gsi
/hdf5-1.8.13/hdf5/lib -L/usr/local/lib
../../../.././ncarg2d/src/libncarg_gks/libncarg_gks.a(wks.o):(.text+0x748): undefined reference to `bcopyswap'
../../../.././ncarg2d/src/libncarg_gks/libncarg_gks.a(wks.o):(.text+0x944): undefined reference to `bcopyswap'
../../../.././ncarg2d/src/libncarg_gks/libncarg_gks.a(wks.o):(.text+0xa04): undefined reference to `bcopyswap'
collect2: ld returned 1 exit status
make[5]: *** [ncargworld] Error 1
Thanks,
Smriti
On Jun 3, 2014, at 1:52 PM, Mary Haley <haley at ucar.edu> wrote:
> Dear Smriti,
>
> I don't have access to a PPC64 system, so yes, you would need to build it from source code.
>
> I can help with this, by providing suggestions on what to set in your LINUX configuration file.
>
> When you download the NCL source code, you will see a directory in the top of the tree called "config". This directory contains a bunch of sample configuration files for LINUX, like:
>
> LINUX.64.GNU
> LINUX.64.INTEL
> LINUX.64.PGI
> LINUX.INTEL
> LINUX.ppc64.xl
>
> You can look at these files to get an idea of what things you need to set.
>
> The file that ends up getting used for the NCL build is called LINUX, so this is the one you will need to make the modifications for.
>
> The most critical lines in the LINUX file that you need to worry about are these:
>
> #define StdDefines -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped
> #define ByteSwapped
> #define CCompiler gcc
> #define FCompiler gfortran
> #define CtoFLibraries -lgfortran
> #define CtoFLibrariesUser -lgfortran
> #define CcOptions -ansi -fPIC -fopenmp
> #define FcOptions -fPIC -fno-f2c -fno-second-underscore -fopenmp
>
> If you are not using the GNU compilers, then you'll need to change the CCompiler and FCompiler as desired, along with the compile options via CcOptions and FcOptions.
>
> The line
>
> #define ByteSwapped
>
> should be removed if this is a big endian machine, which I seem to remember that it is.
>
> Once you have the "config/LINUX" file set up as desired, then you can cd to the top level NCL tree and run "./Configure" as documented. See this link for full information:
>
> http://www.ncl.ucar.edu/Download/build_from_src.shtml
>
> If you have any questions about this, please post them back to this email list.
>
> Thanks,
>
> --Mary
>
> On Jun 3, 2014, at 9:05 AM, Smriti Prathapan <smritip1 at umbc.edu> wrote:
>
>> Hi,
>>
>> I was looking for the pre-buit Linux binary for Power7 (ppc64) and couldn’t find it. Do you suggest installing from source ?
>>
>> Thanks,
>> Smriti
>> _______________________________________________
>> ncl-install mailing list
>> List instructions, subscriber options, unsubscribe:
>> http://mailman.ucar.edu/mailman/listinfo/ncl-install
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20140618/41b89adb/attachment-0002.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-output
Type: application/octet-stream
Size: 1596229 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-install/attachments/20140618/41b89adb/attachment-0001.obj
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20140618/41b89adb/attachment-0003.html
More information about the ncl-install
mailing list