[openib-general] configure: error: C compiler cannot create executables
vishal
vishal at endace.com
Mon Oct 23 16:02:27 PDT 2006
Hi,
I got the following error when trying to install OFED 1.1 on SUSE
10.1 Enterprise x86_64:-
checking for C compiler default output file name... configure: error: C
compiler cannot create executables
See `config.log' for more details.
Failed to execute: ./configure
--cache-file=/var/tmp/OFEDRPM/BUILD/openib-1.1/configure.cache
--disable-libcheck --prefix /usr/local/ofed --libdir /usr/local/ofed/lib
CPPFLAGS="-I../libibverbs/include"
error: Bad exit status from /var/tmp/rpm-tmp.30870 (%install)
>From config.log:-
configure:2466: $? = 0
configure:2468: gcc -v </dev/null >&5
Using built-in specs.
Target: x86_64-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib64 --libexecdir=/usr/lib64
--enable-languages=c,c++,objc,fortran,java,ada --enable-checking=release
--with-gxx-include-dir=/usr/include/c++/4.1.0 --enable-ssp
--disable-libssp --enable-java-awt=gtk --enable-gtk-cairo
--disable-libjava-multilib --with-slibdir=/lib64 --with-system-zlib
--enable-shared --enable-__cxa_atexit --enable-libstdcxx-allocator=new
--without-system-libunwind --with-cpu=generic --host=x86_64-suse-linux
Thread model: posix
gcc version 4.1.0 (SUSE Linux)
configure:2471: $? = 0
configure:2473: gcc -V </dev/null >&5
gcc: '-V' option must have argument
configure:2476: $? = 1
configure:2499: checking for C compiler default output file name
configure:2502: gcc -m32 -g -O2 -I../libibverbs/include -m32 -g -O2
-L/usr/lib conftest.c >&5
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../libc.so when searching for -lc
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../libc.a when searching for -lc
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libc.so when searching for -lc
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: skipping incompatible /usr/lib64/libc.a when searching for -lc
/usr/lib64/gcc/x86_64-suse-linux/4.1.0/../../../../x86_64-suse-linux/bin/ld: cannot find -lc
collect2: ld returned 1 exit status
configure:2505: $? = 1
configure: failed program was:
| /* confdefs.h. */
|
| #define PACKAGE_NAME "libibverbs"
| #define PACKAGE_TARNAME "libibverbs"
| #define PACKAGE_VERSION "1.0.4"
| #define PACKAGE_STRING "libibverbs 1.0.4"
| #define PACKAGE_BUGREPORT "openib-general at openib.org"
| #define PACKAGE "libibverbs"
| #define VERSION "1.0.4"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2544: error: C compiler cannot create executables
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_build_alias=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-m32 -g -O2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-I../libibverbs/include
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-m32 -g -O2'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=set
ac_cv_env_FFLAGS_value='-m32 -g -O2'
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-m32 -g -O2 -L/usr/lib'
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_host=x86_64-unknown-linux-gnu
ac_cv_host_alias=x86_64-unknown-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/libibverbs/config/missing --run aclocal-1.9'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/libibverbs/config/missing --run tar'
AR=''
AUTOCONF='${SHELL} /var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/libibverbs/config/missing --run autoconf'
AUTOHEADER='${SHELL} /var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/libibverbs/config/missing --run autoheader'
AUTOMAKE='${SHELL} /var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/libibverbs/config/missing --run automake-1.9'
AWK='gawk'
CC='gcc'
CCDEPMODE=''
CFLAGS='-m32 -g -O2'
CPP=''
CPPFLAGS='-I../libibverbs/include'
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-m32 -g -O2'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
ECHO='echo'
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS='-m32 -g -O2'
HAVE_LD_VERSION_SCRIPT_FALSE=''
HAVE_LD_VERSION_SCRIPT_TRUE=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-m32 -g -O2 -L/usr/lib'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/libibverbs/config/missing --run makeinfo'
OBJEXT=''
PACKAGE='libibverbs'
PACKAGE_BUGREPORT='openib-general at openib.org'
PACKAGE_NAME='libibverbs'
PACKAGE_STRING='libibverbs 1.0.4'
PACKAGE_TARNAME='libibverbs'
PACKAGE_VERSION='1.0.4'
PATH_SEPARATOR=':'
RANLIB=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.0.4'
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_F77=''
ac_ct_RANLIB=''
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__leading_dot='.'
am__quote=''
am__tar='${AMTAR} chof - "$$tardir"'
am__untar='${AMTAR} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${prefix}/share'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/var/tmp/OFEDRPM/BUILD/openib-1.1/src/userspace/libibverbs/config/install-sh'
libdir='/usr/local/ofed/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='${prefix}/man'
mkdir_p='mkdir -p --'
oldincludedir='/usr/include'
prefix='/usr/local/ofed'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE "libibverbs"
#define PACKAGE_BUGREPORT "openib-general at openib.org"
#define PACKAGE_NAME "libibverbs"
#define PACKAGE_STRING "libibverbs 1.0.4"
#define PACKAGE_TARNAME "libibverbs"
#define PACKAGE_VERSION "1.0.4"
#define VERSION "1.0.4"
configure: exit 77
I tried to compile a simple program, and gcc does create the executable.
Not sure whats missing! Any help would be appreciated.
Thanks!
Vishal
More information about the general
mailing list