On 26 June 2017 at 03:42, ashwin .D <[email protected]> wrote:

> Hello,
>          I already have an existing installation of HDF5 1.8.17 compiled
> with gfortran. Now for another project on the same machine I need to
> compile with PGI compilers i.e. pgcc , pgc++and pgf90. The installation
> directory will be separate as well i.e. /opt/local/lib and
> /opt/local/include.
>
> This is how I try to build hdf5
>
> CPPFLAGS=/opt/local/include CXXFLAGS=/opt//local/include
> LDFLAGS=/opt//local/lib CC=pgcc CXX=pgc++ FC=pgf90 F77=pgf77   ./configure
> --prefix=/opt/local --with-zlib=/opt/local --enable-fortran --enable-cxx.
>
> and when I try doing this I get this error message -
>
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> [...]
>
checking for gcc... pgcc
> checking whether the C compiler works... no
> configure: error: in `/home//hdf5-1.8.17':
> configure: error: C compiler cannot create executables
> See `config.log' for more details                  <<<<<<<<<<<<<<<<<<<<
>
> Any suggestions on how to build will be appreciated.
>
>
Your flags settings need "-I" or "-L" as appropriate.

If that does't solve your problem, it might help if you provide the OS and
version as well as the compiler version.
Someone on the list may have advice for your particular platform.

It  would also be helpful if you could post relevant "more details" from
the config.log file.


-- 
George N. White III <[email protected]>
Head of St. Margarets Bay, Nova Scotia
_______________________________________________
Hdf-forum is for HDF software users discussion.
[email protected]
http://lists.hdfgroup.org/mailman/listinfo/hdf-forum_lists.hdfgroup.org
Twitter: https://twitter.com/hdf5

Reply via email to