[ncl-install] NCL for Power7

Smriti Prathapan smritip1 at umbc.edu
Wed Jun 25 21:04:54 MDT 2014


Hi, 
Thanks for the reply, I could fix some errors including cairo. However, there are a few more. I still couldn’t get the “ncl” executable. Pasted some of the errors below and I have also attached the make-output and LINUX file. 

NclHDF.c:32:19: error: mfhdf.h: No such file or directory
In file included from NclHDF.c:38:
NclHDF.h:84: error: expected specifier-qualifier-list before ‘int32’
NclHDF.h:111: error: expected specifier-qualifier-list before ‘nc_type’

gcc -ansi -fPIC -fopenmp -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -O  -I../../.././include -I/usr/include
/X11/ -I/usr/include/freetype2/ -I/usr/include/ -I/usr/include/cairo/ -I/home/smritip1/NOAA/new_gsi/hdf5-1.
8.13/hdf5/include/ -I/usr/local/include  -DLinux -DMAJOR=2                                                 
                                               -DBuildGRIB2 -D__64BIT__                        -DUSE_NETCDF
4_FEATURES                                             -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOUR
CE_EXTENDED=1 -DNGLONG2XINT -Dppc64 -DNeedFuncProto    -c -o NclGRIB2.o NclGRIB2.c
NclGRIB2.c:30:20: error: grib2.h: No such file or directory

gcc -ansi -fPIC -fopenmp  -O  -I../../../.././include -I/usr/include/X11/ -I/usr/include/freetype2/ -I/usr/
include/ -I/usr/include/cairo/ -I/home/smritip1/NOAA/new_gsi/hdf5-1.8.13/hdf5/include/ -I/usr/local/include
  -DXAPPDIR='"xapp"'                      -DTRANSLATOR='"ictrans"' -DBINDIR='"bin"'                       -
DNGVERSION='"6.2.0"'  -DNCLVERSION='"6.2.0"' -DLinux  -DMAJOR=2   -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -D
_XOPEN_SOURCE_EXTENDED=1 -DNGLONG2XINT -Dppc64 -DNeedFuncProto    -c -o w_idt.o w_idt.c
w_idt.c:29:31: error: X11/Xaw/AsciiText.h: No such file or directory
w_idt.c:30:29: error: X11/Xaw/Command.h: No such file or directory



Thanks,
Smriti 
On Jun 24, 2014, at 2:11 PM, Mary Haley <haley at ucar.edu> wrote:

> The modified -DByteSwapped and StdDefines line needs to happen in the LINUX file, and not the LINUX.ppc64.xl file. Did you do this?  The fact that "bcopyswap" is still be looked for indicates that "-DByteSwapped" is still ending up on your compile line.
> 
> Also, did you rerun "make Everything" ?  This is necessary, because you need to remake all the Makefiles so they no longer have the -DByteSwapped reference.
> 
> The undefined cairo references mean that your version of cairo is not the correct version. What version are you linking against?  We recommend cairo version 1.12.16.
> 
> If you continue to have problems, please email me the new "make-output" file and the LINUX file.
> 
> --Mary
> 
> 
> 
> On Sun, Jun 22, 2014 at 8:20 PM, Smriti Prathapan <smritip1 at umbc.edu> wrote:
> Hi, 
> 
> I have removed the "-DByteSwapped” macro and modified#define StdDefines in LINUX as per "LINUX.ppc64.xl” file. However, I still get the following errors:
> Could you please help me fix this?
> 
> ../../../.././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]: *** [tgks0a] Error 1
> 
> 
> /usr/local/lib64/ -L/home/smritip1/NOAA/new_gsi/hdf5-1.8.13/hdf5/lib -L/usr/local/lib  -lX11 -lXext  
> ../../../.././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'
> ../../../.././ncarg2d/src/libncarg_gks/libncarg_gks.a(cro.o):(.text+0x525c): undefined reference to `cairo_recor
> ding_surface_create'
> ../../../.././ncarg2d/src/libncarg_gks/libncarg_gks.a(cro.o):(.text+0x6688): undefined reference to `cairo_recor
> ding_surface_create'
> collect2: ld returned 1 exit status
> make[5]: *** [tdpackdemo] Error 1
> 
> Thanks,
> Smriti 
> On Jun 19, 2014, at 2:47 PM, Mary Haley <haley at ucar.edu> wrote:
> 
>> This is a ppc64 system, correct?  If so, I think you want to be sure the "StdDefines" line in your $NCARG/LINUX file does *not* have the "-DByteSwapped" macro set.  Also, make sure you do *not* have this line in the file:
>> 
>> #define ByteSwapped
>> 
>> I would look at the "LINUX.ppc64.xl" file for guidance on what the "LINUX" file should look like. For example, the StdDefines line should probably look like this:
>> 
>> #define StdDefines    -DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1 -DNGLONG2XINT -Dppc64
>> 
>> I say "probably" because I don't know the details of the compiler you are using. But, you definitely want "-DNGLONG2XINT -Dppc64" in the file.  The "-Dppc64" is probably redundant, but shouldn't hurt.
>> 
>> --Mary
>> 
>> 
>> 
>> 
>> On Wed, Jun 18, 2014 at 10:16 AM, Smriti Prathapan <smritip1 at umbc.edu> wrote:
>> 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
>>> 
>> 
>> 
>> _______________________________________________
>> 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/20140625/d5a3377d/attachment-0003.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: LINUX
Type: application/octet-stream
Size: 1671 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-install/attachments/20140625/d5a3377d/attachment-0002.obj 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20140625/d5a3377d/attachment-0004.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-output6
Type: application/octet-stream
Size: 1768997 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-install/attachments/20140625/d5a3377d/attachment-0003.obj 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-install/attachments/20140625/d5a3377d/attachment-0005.html 


More information about the ncl-install mailing list