[netcdfgroup] Configure error with PGI: Could not compile conftest.c

I have a problem to install netCDF4.0.1 on my linux 64bit machine, with PGI-10.6

I followed the instruction on this page for netCDF4.0.1 and PGI2010 exactly
http://www.pgroup.com/resources/netcdf/netcdf40_pgi2010.htm

I used 
export FC=$PGIHOME/linux86-64/10.6/bin/pgf90 and so on to set the env.

But I still had this error when executed "./configure 
--prefix=/home/netcdf-4.0.1"

=============
checking if Fortran "byte" is C "signed char"... configure: error: Could not 
compile conftest.c
=============

Any change that I need to do to make it work? Thank you very much.


A complete output from configure is attached below

--------------------------------------------------------------
configure: netCDF 4.0.1
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: checking user options
checking whether CXX is set to ''... no
checking whether FC is set to ''... no
checking whether F90 is set to ''... no
checking whether a NCIO_MINBLOCKSIZE was specified... 256
checking whether this is a netCDF-4.x build... yes
checking whether extra valgrind tests should be run... no
configure: Processing NetCDF-4 options.
checking whether netCDF-4 is to be built... no
checking whether new netCDF-4 C++ API is to be built... no
checking whether HDF5 should do data conversions... no
checking whether extra example tests should be run... no
checking whether parallel IO tests should be run... no
checking whether a location for the HDF5 library was specified... 
checking whether a location for the ZLIB library was specified... 
checking whether a location for the SZLIB library was specified... 
checking whether a default cache size for HDF5 was specified... 32000000
checking whether a default cache maximum number of elements for HDF5 was 
specified... 1000
checking whether a default cache preemption for HDF5 was specified... 0.75
checking whether netCDF-4 logging is enabled... no
checking whether DAP client is to be built... no
checking whether dap remote testing should be enabled... no
checking whether netCDF extra tests should be run (developers only)... no
checking whether documentation is to be installed... no
checking whether Fortran compiler(s) should be tested during configure... 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... yes
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 benchmaks should be run (experimental)... 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... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... no
checking whether /home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC accepts -g... yes
checking for /home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC option to accept ISO 
C89... unsupported
checking for style of include used by make... GNU
checking dependency style of /home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC... none
checking whether /home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC and cc understand 
-c and -o together... yes
checking for an ANSI C-conforming const... yes
configure: finding Fortran compiler (will not be used if Fortran API is not 
desired)
checking whether we are using the GNU Fortran compiler... no
checking whether /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 accepts -g... yes
checking whether we are using the GNU Fortran 77 compiler... no
checking whether /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 accepts -g... yes
configure: setting up Fortran 90
checking for Fortran flag to compile .f90 files... none
checking fortran 90 modules inclusion flag... -I
checking if Fortran compiler can handle Fortran-90... yes
configure: finding C++ compiler (will not be used if C++ API is not desired)
checking whether we are using the GNU C++ compiler... no
checking whether /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp accepts -g... yes
checking dependency style of /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp... none
configure: setting up libtool
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for non-GNU ld... /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90
checking if the linker (/home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90) is GNU 
ld... no
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 98304
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 option to reload 
object files... -r
checking how to recognize dependent libraries... pass_all
checking for ar... ar
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from 
/home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC object... ok
checking how to run the C preprocessor... 
/home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... yes
checking whether we are using the GNU C++ compiler... (cached) no
checking whether /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp accepts -g... 
(cached) yes
checking dependency style of /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp... 
(cached) none
checking how to run the C++ preprocessor... 
/home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp -E
checking whether we are using the GNU Fortran 77 compiler... (cached) no
checking whether /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 accepts -g... 
(cached) yes
checking whether we are using the GNU Fortran compiler... (cached) no
checking whether /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 accepts -g... 
(cached) yes
checking for objdir... .libs
checking for /home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC option to produce 
PIC...  -DPIC
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC PIC flag  -DPIC works... 
yes
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC static flag  works... yes
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC supports -c -o file.o... 
yes
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC supports -c -o file.o... 
(cached) yes
checking whether the /home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC linker 
(/home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 -m elf_x86_64) supports shared 
libraries... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking whether the /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp linker 
(/home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 -m elf_x86_64) supports shared 
libraries... yes
checking for /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp option to produce 
PIC... -fpic -DPIC
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp PIC flag -fpic -DPIC 
works... yes
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp static flag -Bstatic 
works... yes
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp supports -c -o 
file.o... yes
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp supports -c -o 
file.o... (cached) yes
checking whether the /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp linker 
(/home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 -m elf_x86_64) supports shared 
libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 option to produce 
PIC... -fpic
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 PIC flag -fpic works... 
yes
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 static flag -Bstatic 
works... yes
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 supports -c -o 
file.o... yes
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 supports -c -o 
file.o... (cached) yes
checking whether the /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 linker 
(/home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 -m elf_x86_64) supports shared 
libraries... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
checking if libtool supports shared libraries... no
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking for /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 option to produce 
PIC... -fpic
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 PIC flag -fpic works... 
yes
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 static flag -Bstatic 
works... yes
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 supports -c -o 
file.o... yes
checking if /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 supports -c -o 
file.o... (cached) yes
checking whether the /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 linker 
(/home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 -m elf_x86_64) supports shared 
libraries... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... unsupported
configure: finding other utilities
checking for a BSD-compatible install... /usr/bin/install -c
configure: trying to set fortran flags for this platform
checking if we need to set _LARGE_FILES despite results of previous tests... 
_LARGE_FILES=
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
configure: displaying some results
checking CPPFLAGS... -DpgiFortran
checking CC CFLAGS... /home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC -O2
checking type /home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC... 
/home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC is 
/home/ru1/pgi10.6/linux86-64/10.6/bin/pgCC
checking CXX... /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp
checking CXXFLAGS... -g
checking type /home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp... 
/home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp is 
/home/ru1/pgi10.6/linux86-64/10.6/bin/pgcpp
checking FC... /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90
checking FFLAGS... -O2 -Msignextend
checking type /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90... 
/home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 is 
/home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90
checking F90... /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90
checking FCFLAGS... -g
checking type /home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90... 
/home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90 is 
/home/ru1/pgi10.6/linux86-64/10.6/bin/pgf90
checking AR... ar
checking AR_FLAGS... cru
checking type ar... ar is /usr/bin/ar
checking NM... /usr/bin/nm -B
checking NMFLAGS... 
checking for /usr/bin/nm... /usr/bin/nm -B
checking nm flags... 
checking for C-equivalent to Fortran routine "SUB"... sub_
checking for Fortran "byte"... yes
checking for Fortran "integer*2"... yes
checking if Fortran "byte" is C "signed char"... configure: error: Could not 
compile conftest.c
  



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