parallel-netcdf Digest, Vol 68, Issue 7

Dhirendra Kumar dhirendra.cub at gmail.com
Wed Jul 29 00:19:23 CDT 2015


Dear Rob,

Thanx for the prompt reply..

I also tried with
./configure CC=icc, CXX=icpc FC=ifort --prefix=$RLIB
--with-mpi=/opt/intel/impi/4.1.0.024/intel64/


I got one message while configure was being processed,

checking whether /opt/intel/impi/4.1.0.024/intel64//bin/mpif77 accepts
-g... no
checking for Fortran flag needed to accept free-form source... unknown
configure: WARNING: Fortran does not accept free-form source
configure: WARNING:
         ------------------------------------------------------------
           Either MPI Fortran 77 or 90 compiler is not working:
               "MPIF77 = /opt/intel/impi/4.1.0.024/intel64//bin/mpif77"
               "MPIF90 = /opt/intel/impi/4.1.0.024/intel64//bin/mpif90"
           Disable Fortran feature ...
         ------------------------------------------------------------
however configure completed successfully but the make command gave the
error-

/opt/intel/impi/4.1.0.024/intel64/include/mpicxx.h:95:2: error: #error
"SEEK_SET is #defined but must not be for the C++ binding of MPI. Include
mpi.h before stdio.h"
/opt/intel/impi/4.1.0.024/intel64/include/mpicxx.h:99:2: error: #error
"SEEK_CUR is #defined but must not be for the C++ binding of MPI. Include
mpi.h before stdio.h"
/opt/intel/impi/4.1.0.024/intel64/include/mpicxx.h:104:2: error: #error
"SEEK_END is #defined but must not be for the C++ binding of MPI. Include
mpi.h before stdio.h"
make[2]: *** [ncmpiType.o] Error 1
make[2]: Leaving directory
`/home/dkumar/RLIB/parallel-netcdf-1.6.1/src/libcxx'
make[1]: *** [libcxx] Error 2
make[1]: Leaving directory `/home/dkumar/RLIB/parallel-netcdf-1.6.1/src'
make: *** [all] Error 2


I am attaching the config.log file for your reference, please have a look.

Thanks in anticipation

Sincerely
Dhirendra

On Tue, Jul 28, 2015 at 10:30 PM, <parallel-netcdf-request at lists.mcs.anl.gov
> wrote:

> Send parallel-netcdf mailing list submissions to
>         parallel-netcdf at lists.mcs.anl.gov
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://lists.mcs.anl.gov/mailman/listinfo/parallel-netcdf
> or, via email, send a message with subject or body 'help' to
>         parallel-netcdf-request at lists.mcs.anl.gov
>
> You can reach the person managing the list at
>         parallel-netcdf-owner at lists.mcs.anl.gov
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of parallel-netcdf digest..."
>
>
> Today's Topics:
>
>    1. Configure error: with Intel MPI compilers. (Dhirendra Kumar)
>    2. Re: Configure error: with Intel MPI compilers. (Rob Latham)
>    3. Re: Configure error: with Intel MPI compilers. (Wei-keng Liao)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 28 Jul 2015 17:13:27 +0530
> From: Dhirendra Kumar <dhirendra.cub at gmail.com>
> To: parallel-netcdf at lists.mcs.anl.gov
> Subject: Configure error: with Intel MPI compilers.
> Message-ID:
>         <CANSz=
> 03xgZvxQAcXbHA_TLT0mz3GoNc+Yt_tNx7ut7M4Tvbsqw at mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> Dear All,
>
> I am trying to compile parallel-netcdf-1.6.1 on a linux cluster. I have a
> preinstalled Intel MPI library and thus I have intel compilers wrapped as
> mpiicc, mpiicpc and mpiifort in the directory /opt/intel/impi/
> 4.1.0.024/intel64/bin-
>
> I have successfully installed the HDF5 library using the above compilers
> and I wish to build the netcdf-4.3.3.1 with parallel support. Before doing
> that as I came to know that I need to install the pnetcdf library so tried
> I with the following configure options-
>
> ./configure CC=mpiicc CXX=mpiicpc FC=mpiifort
> --prefix=/export/home/dkumar/RLIB
> CPPFLAGS=-I/export/home/dkumar/RLIB/include
> LDFLAGS=-L/export/home/dkumar/RLIB/lib
>
> and I am getting the following error:
> checking for mpicc... /opt/intel/impi/4.1.0.024/intel64/bin/mpicc
> checking for gcc... /opt/intel/impi/4.1.0.024/intel64/bin/mpicc
> checking whether the C compiler works... no
> configure: error: in `/home/dkumar/RLIB/parallel-netcdf-1.6.1':
> configure: error: C compiler cannot create executables
> See `config.log' for more details
> configure: WARNING: cache variable ac_cv_env_FCFLAGS_value contains a
> newline
>
> I am not able to figure out what went wrong, but I think the configure
> script could not identify the mpicc (i.e. mpiicc is not being used for
> compiling).
>
> Any help would be appreciated. I am attaching the config.log file for the
> reference.
>
> Regards
> Dhirendra Kumar
>
> --
> ========================================
> Dhirendra Kumar
> UGC-JRF
> School of Environmental Sciences, JNU
> New Delhi (India)
> Contact: +91 9910778043
> Alternate email: dhirendra.cub at outlook.com
> =========================================
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <
> http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20150728/45fcd20c/attachment-0001.html
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: config.log
> Type: application/octet-stream
> Size: 12210 bytes
> Desc: not available
> URL: <
> http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20150728/45fcd20c/attachment-0001.obj
> >
>
> ------------------------------
>
> Message: 2
> Date: Tue, 28 Jul 2015 08:38:20 -0500
> From: Rob Latham <robl at mcs.anl.gov>
> To: <parallel-netcdf at lists.mcs.anl.gov>
> Subject: Re: Configure error: with Intel MPI compilers.
> Message-ID: <55B785CC.8060307 at mcs.anl.gov>
> Content-Type: text/plain; charset="utf-8"; format=flowed
>
>
>
> On 07/28/2015 06:43 AM, Dhirendra Kumar wrote:
> > Dear All,
> >
> > I am trying to compile parallel-netcdf-1.6.1 on a linux cluster. I have
> > a preinstalled Intel MPI library and thus I have intel compilers wrapped
> > as mpiicc, mpiicpc and mpiifort in the directory
> > /opt/intel/impi/4.1.0.024/intel64/bin- <http://4.1.0.024/intel64/bin->
> >
> > I have successfully installed the HDF5 library using the above compilers
> > and I wish to build the netcdf-4.3.3.1 with parallel support. Before
> > doing that as I came to know that I need to install the pnetcdf library
> > so tried I with the following configure options-
> >
> > ./configure CC=mpiicc CXX=mpiicpc FC=mpiifort
> > --prefix=/export/home/dkumar/RLIB
> > CPPFLAGS=-I/export/home/dkumar/RLIB/include
> > LDFLAGS=-L/export/home/dkumar/RLIB/lib
>
>
> Well, mpiicc is not your C compiler.  icc is your C compiler.
>
> try either --with-mpi=/opt/intel/impi/4.1.0.024/intel64/
>
> or
>
> set CC=icc CXX=icxx, FC=ifort  etc.
>
> ==rob
>
> >
> > and I am getting the following error:
> > checking for mpicc... /opt/intel/impi/4.1.0.024/intel64/bin/mpicc
> > <http://4.1.0.024/intel64/bin/mpicc>
> > checking for gcc... /opt/intel/impi/4.1.0.024/intel64/bin/mpicc
> > <http://4.1.0.024/intel64/bin/mpicc>
> > checking whether the C compiler works... no
> > configure: error: in `/home/dkumar/RLIB/parallel-netcdf-1.6.1':
> > configure: error: C compiler cannot create executables
> > See `config.log' for more details
> > configure: WARNING: cache variable ac_cv_env_FCFLAGS_value contains a
> > newline
> >
> > I am not able to figure out what went wrong, but I think the configure
> > script could not identify the mpicc (i.e. mpiicc is not being used for
> > compiling).
> >
> > Any help would be appreciated. I am attaching the config.log file for
> > the reference.
> >
> > Regards
> > Dhirendra Kumar
> >
> > --
> > ========================================
> > Dhirendra Kumar
> > UGC-JRF
> > School of Environmental Sciences, JNU
> > New Delhi (India)
> > Contact: +91 9910778043
> > Alternate email: dhirendra.cub at outlook.com
> > <mailto:dhirendra.cub at outlook.com>
> > =========================================
>
> --
> Rob Latham
> Mathematics and Computer Science Division
> Argonne National Lab, IL USA
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 28 Jul 2015 11:13:26 -0500
> From: Wei-keng Liao <wkliao at eecs.northwestern.edu>
> To: Dhirendra Kumar <dhirendra.cub at gmail.com>
> Cc: parallel-netcdf at lists.mcs.anl.gov
> Subject: Re: Configure error: with Intel MPI compilers.
> Message-ID:
>         <5EDDC338-6EDC-4071-949B-E12D365E71D4 at eecs.northwestern.edu>
> Content-Type: text/plain; charset=us-ascii
>
> Hi, Dhirendra
>
> From your config.log file, it appears mpicc is also available under the
> same directory as mpiicc /opt/intel/impi/4.1.0.024/intel64/bin
>
> Please note PnetCDF checks environment variable MPICC, MPICXX, MPIF77, and
> MPIF90, rather than CC, CXX, FC.
>
> Could you try the following?
> ./configure MPICC=mpiicc MPICXX=mpiicpc MPIF77=mpiifort MPIF90=mpiifort
> --prefix=/export/home/dkumar/RLIB
>
>
> Could you send me the config.log file for my information, no matter if the
> above command succeeds or fails? Thanks.
>
> Wei-keng
>
> On Jul 28, 2015, at 6:43 AM, Dhirendra Kumar wrote:
>
> > Dear All,
> >
> > I am trying to compile parallel-netcdf-1.6.1 on a linux cluster. I have
> a preinstalled Intel MPI library and thus I have intel compilers wrapped as
> mpiicc, mpiicpc and mpiifort in the directory /opt/intel/impi/
> 4.1.0.024/intel64/bin-
> >
> > I have successfully installed the HDF5 library using the above compilers
> and I wish to build the netcdf-4.3.3.1 with parallel support. Before doing
> that as I came to know that I need to install the pnetcdf library so tried
> I with the following configure options-
> >
> > ./configure CC=mpiicc CXX=mpiicpc FC=mpiifort
> --prefix=/export/home/dkumar/RLIB
> CPPFLAGS=-I/export/home/dkumar/RLIB/include
> LDFLAGS=-L/export/home/dkumar/RLIB/lib
> >
> > and I am getting the following error:
> > checking for mpicc... /opt/intel/impi/4.1.0.024/intel64/bin/mpicc
> > checking for gcc... /opt/intel/impi/4.1.0.024/intel64/bin/mpicc
> > checking whether the C compiler works... no
> > configure: error: in `/home/dkumar/RLIB/parallel-netcdf-1.6.1':
> > configure: error: C compiler cannot create executables
> > See `config.log' for more details
> > configure: WARNING: cache variable ac_cv_env_FCFLAGS_value contains a
> newline
> >
> > I am not able to figure out what went wrong, but I think the configure
> script could not identify the mpicc (i.e. mpiicc is not being used for
> compiling).
> >
> > Any help would be appreciated. I am attaching the config.log file for
> the reference.
> >
> > Regards
> > Dhirendra Kumar
> >
> > --
> > ========================================
> > Dhirendra Kumar
> > UGC-JRF
> > School of Environmental Sciences, JNU
> > New Delhi (India)
> > Contact: +91 9910778043
> > Alternate email: dhirendra.cub at outlook.com
> > =========================================
> > <config.log>
>
>
>
> ------------------------------
>
> _______________________________________________
> parallel-netcdf mailing list
> parallel-netcdf at lists.mcs.anl.gov
> https://lists.mcs.anl.gov/mailman/listinfo/parallel-netcdf
>
>
> End of parallel-netcdf Digest, Vol 68, Issue 7
> **********************************************
>



-- 
========================================
Dhirendra Kumar
UGC-JRF
School of Environmental Sciences, JNU
New Delhi (India)
Contact: +91 9910778043
Alternate email: dhirendra.cub at outlook.com
=========================================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20150729/4ed78c97/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.log
Type: application/octet-stream
Size: 111611 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/parallel-netcdf/attachments/20150729/4ed78c97/attachment-0001.obj>


More information about the parallel-netcdf mailing list