NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

Re: [netcdfgroup] Compiling, NetCDF 3.6.2 with ifort , ubuntu

On Mon, 2008-07-28 at 17:11 +0300, Ilja Maljutenko wrote:
> 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® C++ Compiler Professional Edition for Linux*
> # Intel® 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 :) 

the following combo works for me (see CXX and flags):

export CC=icc
export FC=ifort
export F90=ifort
export CXX=icpc
export PROCESSFLAGS=-DpgiFortran
export CPPFLAGS="-DpgiFortran"
export FFLAGS="-mp -w "
export CFLAGS="-mp -w "
export F90FLAGS="-mp -w "
export LDFLAGS=M

Michael








  • 2008 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the netcdfgroup archives: