Hi,
I have issue with compileing NetCDF 3.6.2 on my Linux machine (ubuntu v 10
)
i picked Intel Fortran free versions(for IA-32)
# Intel(R) C++ Compiler Professional Edition for Linux*
# Intel(R) Fortran Compiler Professional Edition for Linux
[http://www.intel.com/cd/software/products/asmo-na/eng/340679.htm]
basically did as it was guided here:
[according to :
http://www.unidata.ucar.edu/software/netcdf/docs/other-builds.html#linux_ifort_10
]
I set the env. variables
export CC=icc
export FC=ifort
export F90=ifort
export F77=ifort
export CPPFLAGS=-DpggFortran
export CXX=''
export CFLAGS='-O3 -xT -ip -no-prec-div -static -no-multibyte-chars'
export FFLAGS='-O3 -xT -ip -no-prec-div -static'
After that i did:
source /home/ilja/intel/cc/10.1.015/bin/iccvars.sh
source /home/ilja/intel/fc/bin/ifortvars.sh
that supose to activate compilers? if im correct ? anyway it worked
because..
ilja@Jali:~$ ifort
ifort: command line error: no files specified; for help type "ifort
-help"
ilja@Jali:~$ icc
icc: command line error: no files specified; for help type "icc -help"
then
cd /~netcdfdir
./configure
and it ended with
/.../
configure: finding C compiler
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.
cross compile? i didnt meant that :(
to not spamm much here is config.log on my google page ...
[http://iljamal.googlepages.com/fail]
what i am doing wrong or misdoing ?
Would be very grateful for any help :)
PS: Terminal Log
#environmental variables ( as it was told to do )
ilja@Jali:~$ export PATH=/home/ilja/intel/cc/10.1.015/bin:${PATH}
ilja@Jali:~$ export PATH=/home/ilja/intel/fc/bin:${PATH}
ilja@Jali:~$
ilja@Jali:~$ export LD_LIBRARY_PATH=/home/ilja/intel/cc/10.1.015/lib
ilja@Jali:~$ export
LD_LIBRARY_PATH=/home/ilja/intel/fc/lib:${LD_LIBRARY_PATH}
ilja@Jali:~$ export
NLSPATH=/home/ilja/intel/cc/10.1.015/lib/locale/en_US
ilja@Jali:~$ export
NLSPATH=/home/ilja/intel/fc/lib/locale/en_US:${NLSPATH}
ilja@Jali:~$ export MANPATH=/home/ilja/intel/cc/10.1.015/man:`manpath`
ilja@Jali:~$ export MANPATH=/home/ilja/intel/fc/man:${MANPATH}
ilja@Jali:~$ export
INTEL_LICENSE_FILE="/home/ilja/intel/cc/10.1.015/licenses:/opt/intel/licenses:${HOME}/intel/licenses:/Users/Shared/Library/Application
Support/Intel/Licenses"
ilja@Jali:~$ export
INTEL_LICENSE_FILE="/home/ilja/intel/fc/licenses:/opt/intel/licenses:${HOME}/intel/licenses:/Users/Shared/Library/Application
Support/Intel/Licenses:${INTEL_LICENSE_FILE}"
ilja@Jali:~$
ilja@Jali:~$ export CC=icc
ilja@Jali:~$ export FC=ifort
ilja@Jali:~$ export F90=ifort
ilja@Jali:~$ export F77=ifort
ilja@Jali:~$ export CPPFLAGS=-DpggFortran
ilja@Jali:~$ export CXX=''
ilja@Jali:~$
ilja@Jali:~$ export CFLAGS='-O3 -xT -ip -no-prec-div -static
-no-multibyte-chars'
ilja@Jali:~$ export FFLAGS='-O3 -xT -ip -no-prec-div -static'
ilja@Jali:~$ cd netcdf-3.6.2/
# doing ./configure
ilja@Jali:~/netcdf-3.6.2$ ./configure
configure: netCDF 3.6.2
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
configure: checking user options
checking whether CXX is set to ''... yes
checking whether FC is set to ''... no
checking whether F90 is set to ''... no
checking whether documentation is to be installed... no
checking whether Fortran compiler(s) should be tested during
configure... yes
checking whether configure should try to set compiler flags... yes
checking whether FFIO will be used... no
checking whether to skip C++, F77, or F90 APIs if compiler is broken...
yes
checking whether only the C library is desired... no
checking whether examples should be built... yes
checking whether F77 API is desired... yes
checking whether F90 API is desired... yes
checking whether fortran type sizes should be checked... yes
checking whether C API is desired... yes
checking where to get netCDF C-only library for separate fortran
libraries...
checking whether CXX API is desired... no
checking whether v2 netCDF API should be built... yes
checking whether the ncgen/ncdump should be built... yes
checking whether large file (> 2GB) tests should be run... no
checking whether extreme numbers should be used in tests... yes
checking where to put large temp files if large file tests are run... .
checking whether a win32 DLL is desired... no
checking whether separate fortran libs are desired... no
configure: finding C compiler
checking for C compiler default output file name... a.out
checking whether the C compiler works... configure: error: cannot run C
compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details.