[ncl-install] NCL make process uses f77 instead of gfortran with GCC on Solaris 10 x86
Mary Haley
haley at ucar.edu
Mon Jun 22 15:09:47 MDT 2009
Try setting the environment variable FC and F77 to gfortran:
setenv FC gfortran
setenv F77 gfortran
or
FC=gfortran
F77=gfortran
export FC
export F77
--Mary
On Jun 22, 2009, at 3:07 PM, Alkara, Opesh wrote:
>
> Hello,
>
> I am trying to build NCL with GCC on Solaris 10 x86 machine. I found
> that make process doesn't use gfortran even after explicitly
> mentioning
> that in config/SolarisPC file. It uses Sun Studio Fortran compiler
> "f77". In the below output you can clearly see that fortran
> compiler is
> set to "gfortran" but make process is trying "f77" which is not in my
> path. I looked through all files in the config directory but couldn't
> find from where make is reading "f77". Am I missing something?
>
>
> |user at deta 22:16:11 /var/tmp/ncl_ncarg-5.1.1|make
>
> NCL/NCAR Graphics - Version 5.1.1 Installation Configuration
>
> System File Sun4Solaris
> Binary Install Directory /usr/local/ncl_ncarg-5.1.1/bin
> Library Install Directory /usr/local/ncl_ncarg-5.1.1/lib
> Include Install Directory /usr/local/ncl_ncarg-5.1.1/include
> Manpage Install Directory /usr/local/ncl_ncarg-5.1.1/man
> Config Install Directory
> /usr/local/ncl_ncarg-5.1.1/lib/ncarg/config
> Data Base Directory /usr/local/ncl_ncarg-5.1.1/lib/ncarg/database
> Programmer Doc Dir /usr/local/ncl_ncarg-5.1.1/lib/ncarg/doc
> Reloc Obj. Directory /usr/local/ncl_ncarg-5.1.1/lib/ncarg/robj
> Examples Directory /usr/local/ncl_ncarg-5.1.1/lib/ncarg/examples
> Tutorial Directory /usr/local/ncl_ncarg-5.1.1/lib/ncarg/tutorial
> Test Directory /usr/local/ncl_ncarg-5.1.1/lib/ncarg/tests
> X App. Def. Directory /usr/local/ncl_ncarg-5.1.1/lib/ncarg/xapp
> f77 Compiler gfortran
> f77 Flags -O3 -m64 -g -Wl,-R/usr/local/
> ncl_ncarg-5.1.1/lib
> -O
> C Compiler gcc
> cc Flags -O3 -m64 -g -Xt -D_FILE_OFFSET_BITS=64
> -Wl,-R/usr/local/ncl_ncarg-5.1.1/lib -O -I./include
> -I/usr/local/ncl_ncarg-5.1.1/include -I/usr/openwin/include
> -I/usr/dt/include -DSYSV -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED=1
> -D__EXTENSIONS__ -DNeedFuncProto
>
>
>
> |user at deta 22:16:13 /var/tmp/ncl_ncarg-5.1.1|make Build
>
> gcc -O3 -m64 -g -Xt -D_FILE_OFFSET_BITS=64
> -Wl,-R/usr/local/ncl_ncarg-5.1.1/lib -O -o ymake-filter
> ymake-filter.o -L/usr/local/ncl_ncarg-5.1.1/lib
> -L/usr/local/ncl_ncarg-5.1.1/lib -L/usr/openwin/lib -L/usr/dt/lib
> -lnsl -lintl -lsocket -ldl -lw
> gcc: unrecognized option '-Xt'
> make[2]: Leaving directory `/var/tmp/ncl_ncarg-5.1.1/config'
> Making ./external
> make[2]: Entering directory `/var/tmp/ncl_ncarg-5.1.1/external'
> Making ./external/blas
> make[3]: Entering directory `/var/tmp/ncl_ncarg-5.1.1/external/blas'
> f77 -O3 -m64 -g -Wl,-R/usr/local/ncl_ncarg-5.1.1/lib -O -c -o
> caxpy.o caxpy.f
> make[3]: f77: Command not found
> make[3]: *** [caxpy.o] Error 127
> make[3]: Leaving directory `/var/tmp/ncl_ncarg-5.1.1/external/blas'
> Making ./external/lapack
> make[3]: Entering directory `/var/tmp/ncl_ncarg-5.1.1/external/lapack'
> f77 -O3 -m64 -g -Wl,-R/usr/local/ncl_ncarg-5.1.1/lib -O -c -o
> cbdsqr.o cbdsqr.f
> make[3]: f77: Command not found
> make[3]: *** [cbdsqr.o] Error 127
> make[3]: Leaving directory `/var/tmp/ncl_ncarg-5.1.1/external/lapack'
> Making ./external/sphere3.1_dp
> make[3]: Entering directory
> `/var/tmp/ncl_ncarg-5.1.1/external/sphere3.1_dp'
> f77 -O3 -m64 -g -Wl,-R/usr/local/ncl_ncarg-5.1.1/lib -O -c -o
> divec.o divec.f
> make[3]: f77: Command not found
> make[3]: *** [divec.o] Error 127
> make[3]: Leaving directory
> `/var/tmp/ncl_ncarg-5.1.1/external/sphere3.1_dp'
> Making ./external/fftpack5_dp
> make[3]: Entering directory
> `/var/tmp/ncl_ncarg-5.1.1/external/fftpack5_dp'
> f77 -O3 -m64 -g -Wl,-R/usr/local/ncl_ncarg-5.1.1/lib -O -c -o
> c1f2kb.o c1f2kb.f
> make[3]: f77: Command not found
> make[3]: *** [c1f2kb.o] Error 127
> make[3]: Leaving directory
> `/var/tmp/ncl_ncarg-5.1.1/external/fftpack5_dp'
> make[2]: Leaving directory `/var/tmp/ncl_ncarg-5.1.1/external'
> ^Cmake[1]: *** [makesubdirs] Error 130
> make: *** [Build] Interrupt
>
>
>
> _______________________________________________
> ncl-install mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-install
More information about the ncl-install
mailing list