[ncl-install] Install ncl_ncarg-6.0.0 in Utunbu with PGI-10.4
Mary Haley
haley at ucar.edu
Tue Oct 11 13:47:08 MDT 2011
Hi Miao,
From the output you included below, it looks like you might have made
your changes to the wrong configuration file.
You need to make the changes to $NCARG/config/LINUX. You can use
$NCARG/config/LINUX.64.PGI as an example.
Also, my recommendation is to set the lines as follows:
#define CCompiler pgcc
#define FCompiler pgf90
#define CcOptions -tp k8-64 -O -Msignextend -Mreentrant -fPIC -
D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
#define FcOptions -tp k8-64 -O -Msignextend -Mreentrant -fPIC -
D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
This isn't necessary, but it's cleaner.
--Mary
On Oct 11, 2011, at 12:22 PM, Miao Yu wrote:
> Hi NCL developers,
>
> I’m trying to install the NCL_ncarg-6.0.0 on Utunbu system with PGI
> version 10.4.
>
> I ran the commands as follows before running ./Configure -v,
>
> #define CCompiler pgcc -tp k8-64 -O -Msignextend -Mreentrant -fPIC -
> D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
> #define FCompiler pgf90 -tp k8-64 -O -Msignextend -Mreentrant -fPIC -
> D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE
>
> Then, I ran make Everything >& make-output &, and got these Error
> messages in the make-optput file
>
> make[4]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> ni/src/nyacc'
> pgcc -ansi -fPIC -O -I../../.././include -I/usr/X11R6/include -
> DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -
> DNeedFuncProto -c -o closure.o closure.c
> pgcc-Error-Unknown switch: -ansi
> make[4]: *** [closure.o] Error 1
> make[4]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> ni/src/nyacc'
> Making includes in ./ni/src/lib
> …
> Making ./config
> make[2]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> config'
> touch .home_made
> pgcc -ansi -fPIC -O -I.././include -I/usr/X11R6/include -DSYSV -
> D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped -DNeedFuncProto -c -
> o ymake-filter.o ymake-filter.c
> pgcc-Error-Unknown switch: -ansi
> make[2]: *** [ymake-filter.o] Error 1
> make[2]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> config'
> Making ./external
> make[2]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> external'
> Making ./external/blas
> make[3]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> external/blas'
> pgf90 -fPIC -fno-second-underscore -fno-range-check -O -c -o
> caxpy.o caxpy.f
> pgf90-Error-Unknown switch: -fno-second-underscore
> pgf90-Error-Unknown switch: -fno-range-check
> make[3]: *** [caxpy.o] Error 1
> make[3]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> external/blas'
> Making ./external/lapack
> make[3]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> external/lapack'
> pgf90 -fPIC -fno-second-underscore -fno-range-check -O -c -o
> cbdsqr.o cbdsqr.f
> pgf90-Error-Unknown switch: -fno-second-underscore
> pgf90-Error-Unknown switch: -fno-range-check
> make[3]: *** [cbdsqr.o] Error 1
> make[3]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> external/lapack'
> Making ./external/sphere3.1_dp
> make[3]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> external/sphere3.1_dp'
> pgf90 -fPIC -fno-second-underscore -fno-range-check -O -c -o
> divec.o divec.f
> pgf90-Error-Unknown switch: -fno-second-underscore
> pgf90-Error-Unknown switch: -fno-range-check
> make[3]: *** [divec.o] Error 1
> make[3]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> external/sphere3.1_dp'
> Making ./external/fftpack5_dp
> make[3]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> external/fftpack5_dp'
> pgf90 -fPIC -fno-second-underscore -fno-range-check -O -c -o
> c1f2kb.o c1f2kb.f
> pgf90-Error-Unknown switch: -fno-second-underscore
> pgf90-Error-Unknown switch: -fno-range-check
> make[3]: *** [c1f2kb.o] Error 1
> make[3]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> external/fftpack5_dp'
> make[2]: Leaving directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> external'
> Making ./common
> make[2]: Entering directory `/scratch/yum/source/ncl/ncl_ncarg-6.0.0/
> common'
>
> The make-output file suggests the following information at its
> beginning,
>
> NCL/NCAR Graphics - Version 6.0.0 Installation Configuration
>
> System File LINUX
> Binary Install Directory /usr/local/ncl_ncarg-6.0.0/bin
> Library Install Directory /usr/local/ncl_ncarg-6.0.0/lib
> Include Install Directory /usr/local/ncl_ncarg-6.0.0/include
> Manpage Install Directory /usr/local/ncl_ncarg-6.0.0/man
> Config Install Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/config
> Data Base Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/
> database
> Programmer Doc Dir /usr/local/ncl_ncarg-6.0.0/lib/ncarg/doc
> Reloc Obj. Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/robj
> Examples Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/
> examples
> Tutorial Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/tutorial
> Test Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/tests
> X App. Def. Directory /usr/local/ncl_ncarg-6.0.0/lib/ncarg/xapp
> f77 Compiler pgf90
> f77 Flags -fPIC -fno-second-underscore -fno-range-check -O
> C Compiler pgcc
> cc Flags -ansi -fPIC -O -I./include -I/usr/X11R6/include -
> DSYSV -D_POSIX_SOURCE -D_XOPEN_SOURCE -DByteSwapped –DneedFuncProto
>
> I’m wondering how can I set the C and C++ compiler flags correctly
> for PGI C and C++ compilers. How can I fix these problems?
>
> Any help will be appreciated.
>
> Miao
>
> _______________________________________________
> 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/20111011/84b5c3e2/attachment-0001.html
More information about the ncl-install
mailing list