[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 20050518:Building and installing Netcdf-3.6.0-p1
- Subject: Re: 20050518:Building and installing Netcdf-3.6.0-p1
- Date: Wed, 18 May 2005 13:43:34 -0600
Unidata Support <address@hidden> writes:
> ------- Forwarded Message
>
>>To: address@hidden
>>From: "peter Msikela" <address@hidden>
>>Subject: Building and installing Netcdf-3.6.0-p1
>>Organization: UCAR/Unidata
>>Keywords: 200505181810.j4IIADP3000477
>
> This is a multi-part message in MIME format.
>
> ------=_NextPart_000_651a_56d4_6b12
> Content-Type: text/html; format=flowed
>
> <html><div style='background-color:'><P>Hi,</P>
> <P>I have a problem in building and installing a netcf-3.6.0-p1.At
> ./configure step, i got the error which says <STRONG>C compiler cannot run c
> compiled programs</STRONG>.I tried to compile and run a simple hello world
> program with the same compiler and it was fine.So i wonder where i mess
> up!</P>
> <P>Also, i have attached the netcdf version,my machine type,output for
> ./configure,make,make test</P>
> <P>Thanks in advance,</P>
> <P>Peter Msikela.<BR><BR><BR></P>
> <DIV>
> <DIV> </DIV></DIV></div></html>
>
> ------=_NextPart_000_651a_56d4_6b12
> Content-Type: text/plain; name="output.txt"; format=flowed
> Content-Transfer-Encoding: 8bit
> Content-Disposition: attachment; filename="output.txt"
>
>
> Netcdf Version:3.6.0-p1
>
> [root@drizzle src]# uname -a
> Linux drizzle.hupas.howard.edu 2.4.20-28.8 #1 Thu Dec 18 12:53:39 EST 2003
> i686 i686 i386 GNU/Linux
>
> [root@drizzle src]# ./configure -prefix=/tmp/final
> checking build system type... i686-pc-linux-gnu
> checking host system type... i686-pc-linux-gnu
> checking for top-level source-directory... /tmp/working/netcdf-3.6.0-p1/src
> checking for C compiler default output file name... b.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.
>
> [root@drizzle src]# vi config.log
> This file contains any messages produced by compilers while
> running configure, to aid debugging if configure makes a mistake.
>
> It was created by netCDF configure 3.6.0, which was
> generated by GNU Autoconf 2.59. Invocation command line was
>
> $ ./configure -prefix=/tmp/final
>
> ## --------- ##
> ## Platform. ##
> ## --------- ##
>
> hostname = drizzle.hupas.howard.edu
> uname -m = i686
> uname -r = 2.4.20-28.8
> uname -s = Linux
> uname -v = #1 Thu Dec 18 12:53:39 EST 2003
>
> /usr/bin/uname -p = unknown
> /bin/uname -X = unknown
>
> /bin/arch = i686
> /usr/bin/arch -k = unknown
> /usr/convex/getsysinfo = unknown
> hostinfo = unknown
> /bin/machine = unknown
> /usr/bin/oslevel = unknown
> /bin/universe = unknown
>
> PATH: /usr/local/lf9562/bin
> PATH: /usr/local/lf9562/bin
> PATH: /usr/local/bin
> PATH: /bin
> PATH: /usr/bin
> PATH: /usr/X11R6/bin
> PATH: /home/3dvar/bin
> PATH: /bin
> PATH: /usr/pgi/linux86/6.0/bin
> PATH: /usr/bin/perl
> PATH: /usr/local/bin
> PATH: /sbin
> PATH: /usr/bin
> PATH: /usr/sbin
>
>
> [root@drizzle src]# make
> Makefile:4: macros.make: No such file or directory
> rules.make:118: warning: overriding commands for target `/'
> Makefile:173: warning: ignoring old commands for target `/'
> rules.make:120: warning: overriding commands for target `/'
> rules.make:118: warning: ignoring old commands for target `/'
> rules.make:122: warning: overriding commands for target `/'
> rules.make:120: warning: ignoring old commands for target `/'
> rules.make:124: warning: overriding commands for target `/'
> rules.make:122: warning: ignoring old commands for target `/'
> rules.make:127: warning: overriding commands for target `/'
> rules.make:124: warning: ignoring old commands for target `/'
> rules.make:130: warning: overriding commands for target `/'
> rules.make:127: warning: ignoring old commands for target `/'
> rules.make:145: warning: overriding commands for target `/man1'
> rules.make:142: warning: ignoring old commands for target `/man1'
> rules.make:147: warning: overriding commands for target `/man3'
> rules.make:142: warning: ignoring old commands for target `/man3'
> rules.make:150: warning: overriding commands for target `/man3f'
> rules.make:142: warning: ignoring old commands for target `/man3f'
> rules.make:154: warning: overriding commands for target `/man3f90'
> rules.make:142: warning: ignoring old commands for target `/man3f90'
> make: *** No rule to make target `macros.make'. Stop.
>
> [root@drizzle src]# make test
> Makefile:4: macros.make: No such file or directory
> rules.make:118: warning: overriding commands for target `/'
> Makefile:173: warning: ignoring old commands for target `/'
> rules.make:120: warning: overriding commands for target `/'
> rules.make:118: warning: ignoring old commands for target `/'
> rules.make:122: warning: overriding commands for target `/'
> rules.make:120: warning: ignoring old commands for target `/'
> rules.make:124: warning: overriding commands for target `/'
> rules.make:122: warning: ignoring old commands for target `/'
> rules.make:127: warning: overriding commands for target `/'
> rules.make:124: warning: ignoring old commands for target `/'
> rules.make:130: warning: overriding commands for target `/'
> rules.make:127: warning: ignoring old commands for target `/'
> rules.make:145: warning: overriding commands for target `/man1'
> rules.make:142: warning: ignoring old commands for target `/man1'
> rules.make:147: warning: overriding commands for target `/man3'
> rules.make:142: warning: ignoring old commands for target `/man3'
> rules.make:150: warning: overriding commands for target `/man3f'
> rules.make:142: warning: ignoring old commands for target `/man3f'
> rules.make:154: warning: overriding commands for target `/man3f90'
> rules.make:142: warning: ignoring old commands for target `/man3f90'
> make: *** No rule to make target `macros.make'. Stop.
> ## ----------- ##
> ## Core tests. ##
> ## ----------- ##
>
> configure:1369: checking build system type
> configure:1387: result: i686-pc-linux-gnu
> configure:1395: checking host system type
> configure:1409: result: i686-pc-linux-gnu
> configure:1421: checking for top-level source-directory
> configure:1424: result: /tmp/working/netcdf-3.6.0-p1/src
> configure:1531: checking for C compiler version
> configure:1534: /usr/pgi/linux86/6.0/bin/pgcc --version </dev/null >&5
> pgcc-Warning-Unknown switch: --version
> pgcc-Warning-No files to process
> configure:1537: $? = 0
> configure:1539: /usr/pgi/linux86/6.0/bin/pgcc -v </dev/null >&5
> pgcc-Warning-No files to process
> configure:1542: $? = 0
> configure:1544: /usr/pgi/linux86/6.0/bin/pgcc -V </dev/null >&5
>
> pgcc 6.0-4 32-bit target on x86 Linux
> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
> Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
> configure:1547: $? = 0
> configure:1570: checking for C compiler default output file name
> configure:1573: /usr/pgi/linux86/6.0/bin/pgcc -o2 -Msignextend -V -DNDEBUG
> -DpgiFortran conftest.c >&5
> PGC/x86 Linux/x86 6.0-4
> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
> Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
>
> pgcc 6.0-4 32-bit target on x86 Linux
> Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
> Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
> configure:1576: $? = 0
> ot@drizzle src]#
> configure:1622: result: b.out
> configure:1627: checking whether the C compiler works
> configure:1633: ./b.out
> ./configure: line 1: ./b.out: No such file or directory
> configure:1636: $? = 127
> configure:1645: error: cannot run C compiled programs.
> If you meant to cross compile, use `--host'.
> See `config.log' for more details.
>
> ## ---------------- ##
> ## Cache variables. ##
> ## ---------------- ##
>
> ac_cv_build=i686-pc-linux-gnu
> ac_cv_build_alias=i686-pc-linux-gnu
> ac_cv_env_CC_set=set
> ac_cv_env_CC_value=/usr/pgi/linux86/6.0/bin/pgcc
> ac_cv_env_CFLAGS_set=set
> ac_cv_env_CFLAGS_value='-o2 -Msignextend -V'
> ac_cv_env_CPPFLAGS_set=set
> ac_cv_env_CPPFLAGS_value='-DNDEBUG -DpgiFortran'
> ac_cv_env_CPP_set=
> ac_cv_env_CPP_value=
> ac_cv_env_CXXFLAGS_set=set
> ac_cv_env_CXXFLAGS_value=-g
> ac_cv_env_CXX_set=set
> ac_cv_env_CXX_value=/usr/pgi/linux86/6.0/bin/pgCC
> ac_cv_env_FCFLAGS_set=
> ac_cv_env_FCFLAGS_value=
> ac_cv_env_FC_set=set
> ac_cv_env_FC_value=/usr/pgi/linux86/6.0/bin/pgf90
> ac_cv_env_LDFLAGS_set=
> ac_cv_env_LDFLAGS_value=
> ac_cv_env_LDFLAGS_set=
> ac_cv_env_LDFLAGS_value=
> ac_cv_env_build_alias_set=
> ac_cv_env_build_alias_value=
> ac_cv_env_host_alias_set=
> ac_cv_env_host_alias_value=
> ac_cv_env_target_alias_set=
> ac_cv_env_target_alias_value=
> ac_cv_exeext=
> ac_cv_host=i686-pc-linux-gnu
> ac_cv_host_alias=i686-pc-linux-gnu
>
> ## ----------------- ##
> ## Output variables. ##
> ## ----------------- ##
>
> ALLOCA=''
> AR=''
> ARFLAGS=''
> CC='/usr/pgi/linux86/6.0/bin/pgcc'
> CC_MAKEDEPEND=''
> CFLAGS='-o2 -Msignextend -V'
> COMPILE_F=''
> CPP=''
> CPPFLAGS='-DNDEBUG -DpgiFortran'
> CXX='/usr/pgi/linux86/6.0/bin/pgCC'
> CXXFLAGS='-g'
> DEFS=''
> ECHO_C=''
> ECHO_N='-n'
> ECHO_T=''
> EGREP=''
> EXEEXT=''
> F90='/usr/pgi/linux86/6.0/bin/pgf90'
> F90FLAGS='-g'
> F90LIBS=''
> FC='/usr/pgi/linux86/6.0/bin/pgf90'
> FCFLAGS=''
> FFLAGS='-o2 -w -V'
> FLIBS=''
> FPP=''
> FPPFLAGS=''
> FTPBINDIR=''
> IGNORE_FPE=''
> INSTALL_DATA=''
> INSTALL_PROGRAM=''
> INSTALL_SCRIPT=''
> LDFLAGS=''
> LIBOBJS=''
> LIBS=''
> LTLIBOBJS=''
> M4=''
> M4FLAGS=''
> MAKEWHATIS_CMD=''
> MATHLIB=''
> NM=''
> NMFLAGS=''
> OBJEXT=''
> PACKAGE_BUGREPORT='address@hidden'
> PACKAGE_NAME='netCDF'
> PACKAGE_STRING='netCDF 3.6.0'
> PACKAGE_TARNAME='netcdf'
> PACKAGE_VERSION='3.6.0'
> PATH_SEPARATOR=':'
> RANLIB=''
> SHELL='/bin/sh'
> SRCDIR='/tmp/working/netcdf-3.6.0-p1/src'
> WHATIS=''
> ac_ct_CC=''
> ac_ct_CXX=''
> ac_ct_FC=''
> ac_ct_RANLIB=''
> bindir='${exec_prefix}/bin'
> build='i686-pc-linux-gnu'
> build_alias=''
> build_cpu='i686'
> build_os='linux-gnu'
> build_vendor='pc'
> datadir='${prefix}/share'
> exec_prefix='NONE'
> host='i686-pc-linux-gnu'
> host_alias=''
> host_cpu='i686'
> host_os='linux-gnu'
> host_vendor='pc'
> includedir='${prefix}/include'
> infodir='${prefix}/info'
> libdir='${exec_prefix}/lib'
> libexecdir='${exec_prefix}/libexec'
> localstatedir='${prefix}/var'
> mandir='${prefix}/man'
> oldincludedir='/usr/include'
> prefix='/tmp/final'
> prog=''
> program_transform_name='s,x,x,'
> sbindir='${exec_prefix}/sbin'
> sharedstatedir='${prefix}/com'
> sysconfdir='${prefix}/etc'
> target_alias=''
>
> ## ----------- ##
> ## confdefs.h. ##
> ## ----------- ##
>
> #define PACKAGE_BUGREPORT "address@hidden"
> #define PACKAGE_NAME "netCDF"
> #define PACKAGE_STRING "netCDF 3.6.0"
> #define PACKAGE_TARNAME "netcdf"
> #define PACKAGE_VERSION "3.6.0"
>
> configure: exit 1
>
>
>
> ------=_NextPart_000_651a_56d4_6b12--
>
> --
> NOTE: All email exchanges with Unidata User Support are recorded in the
> Unidata inquiry tracking system and then made publicly available
> through the web. If you do not want to have your interactions made
> available in this way, you must let us know in each email you send to us.
>
> ------- End of Forwarded Message
>
>
As you can see here:
pgcc 6.0-4 32-bit target on x86 Linux
Copyright 1989-2000, The Portland Group, Inc. All Rights Reserved.
Copyright 2000-2005, STMicroelectronics, Inc. All Rights Reserved.
configure:1576: $? = 0
ot@drizzle src]#
configure:1622: result: b.out
configure:1627: checking whether the C compiler works
configure:1633: ./b.out
./configure: line 1: ./b.out: No such file or directory
It cannot find the b.out that it thinks the portland group compiler
should have generated.
When you compile a test program, is the output really b.out?
And can you then run b.out?
Thanks,
Ed
--
Ed Hartnett -- address@hidden