Article 5MD1B configure: error: C compiler cannot create executables

configure: error: C compiler cannot create executables

by
lattimro
from LinuxQuestions.org on (#5MD1B)
I tried to install sbopkg and something is missing from my system.

Code:bash-5.1# ./libconfig.SlackBuild
.....
......
configure: error: C compiler cannot create executablesthis is config.log

Code:This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by libconfig configure 1.7.2, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure --prefix=/usr --libdir=/usr/lib64 --sysconfdir=/etc --localstatedir=/var --mandir=/usr/man --infodir=/usr/info --docdir=/usr/doc/libconfig-1.7.2 --disable-static --disable-examples --build=x86_64-slackware-linux

## --------- ##
## Platform. ##
## --------- ##

hostname = slacky.gattaca.net
uname -m = x86_64
uname -r = 5.10.17
uname -s = Linux
uname -v = #1 SMP Wed Feb 17 12:55:35 CST 2021

/usr/bin/uname -p = Intel(R) Pentium(R) CPU N3520 @ 2.16GHz
/bin/uname -X = unknown

/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown

PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /bin
PATH: /usr/bin

## ----------- ##
## Core tests. ##
## ----------- ##

configure:2411: checking build system type
configure:2425: result: x86_64-slackware-linux-gnu
configure:2445: checking host system type
configure:2458: result: x86_64-slackware-linux-gnu
configure:2478: checking target system type
configure:2491: result: x86_64-slackware-linux-gnu
configure:2533: checking for a BSD-compatible install
configure:2601: result: /bin/ginstall -c
configure:2612: checking whether build environment is sane
configure:2667: result: yes
configure:2818: checking for a thread-safe mkdir -p
configure:2857: result: /bin/mkdir -p
configure:2864: checking for gawk
configure:2880: found /bin/gawk
configure:2891: result: gawk
configure:2902: checking whether make sets $(MAKE)
configure:2928: result: no
configure:2953: checking whether make supports nested variables
configure:2970: result: no
configure:3110: checking whether make supports nested variables
configure:3127: result: no
configure:3139: libconfig - made with pride in Colorado
configure:3162: checking for style of include used by make
configure:3190: result: none
configure:3261: checking for gcc
configure:3277: found /usr/bin/gcc
configure:3288: result: gcc
configure:3517: checking for C compiler version
configure:3526: gcc --version >&5
gcc (GCC) 5.5.0
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:3537: $? = 0
configure:3526: gcc -v >&5
Reading specs from /usr/lib64/gcc/x86_64-slackware-linux/5.5.0/specs
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-slackware-linux/5.5.0/lto-wrapper
Target: x86_64-slackware-linux
Configured with: ../gcc-5.5.0/configure --prefix=/usr --libdir=/usr/lib64 --mandir=/usr/man --infodir=/usr/info --enable-shared --enable-bootstrap --enable-languages=ada,c,c++,fortran,go,java,lto,objc --enable-threads=posix --enable-checking=release --enable-objc-gc --with-system-zlib --with-python-dir=/lib64/python2.7/site-packages --enable-libstdcxx-dual-abi --with-default-libstdcxx-abi=gcc4-compatible --disable-libunwind-exceptions --enable-__cxa_atexit --enable-libssp --enable-lto --disable-install-libiberty --with-gnu-ld --verbose --enable-java-home --with-java-home=/usr/lib64/jvm/jre --with-jvm-root-dir=/usr/lib64/jvm --with-jvm-jar-dir=/usr/lib64/jvm/jvm-exports --with-arch-directory=amd64 --with-antlr-jar=/tmp/slackware64-14.2/gcc/antlr-runtime-3.4.jar --enable-java-awt=gtk --disable-gtktest --disable-multilib --target=x86_64-slackware-linux --build=x86_64-slackware-linux --host=x86_64-slackware-linux
Thread model: posix
gcc version 5.5.0 (GCC)
configure:3537: $? = 0
configure:3526: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3537: $? = 1
configure:3526: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3537: $? = 1
configure:3557: checking whether the C compiler works
configure:3579: gcc -O2 -fPIC conftest.c >&5
/usr/libexec/gcc/x86_64-slackware-linux/5.5.0/cc1: error while loading shared libraries: libmpfr.so.4: cannot open shared object file: No such file or directory
configure:3583: $? = 1
configure:3621: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "libconfig"
| #define PACKAGE_TARNAME "libconfig"
| #define PACKAGE_VERSION "1.7.2"
| #define PACKAGE_STRING "libconfig 1.7.2"
| #define PACKAGE_BUGREPORT "hyperrealm@gmail.com"
| #define PACKAGE_URL "https://hyperrealm.github.io/libconfig/"
| #define PACKAGE "libconfig"
| #define VERSION "1.7.2"
| #define TARGET "x86_64-slackware-linux-gnu"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3626: error: in `/tmp/SBo/libconfig-1.7.2':
configure:3628: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-slackware-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -fPIC'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
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='-O2 -fPIC'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-slackware-linux
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-slackware-linux-gnu
ac_cv_path_install='/bin/ginstall -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=no
ac_cv_target=x86_64-slackware-linux-gnu
am_cv_make_support_nested_variables=no

## ----------------- ##
## Output variables. ##
## ----------------- ##

ACLOCAL='${SHELL} /tmp/SBo/libconfig-1.7.2/aux-build/missing aclocal-1.15'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='0'
AM_DEFAULT_VERBOSITY='0'
AM_V='0'
AR=''
AS=''
AUTOCONF='${SHELL} /tmp/SBo/libconfig-1.7.2/aux-build/missing autoconf'
AUTOHEADER='${SHELL} /tmp/SBo/libconfig-1.7.2/aux-build/missing autoheader'
AUTOMAKE='${SHELL} /tmp/SBo/libconfig-1.7.2/aux-build/missing automake-1.15'
AWK='gawk'
BUILDCXX_FALSE=''
BUILDCXX_TRUE=''
BUILDEXAMPLES_FALSE=''
BUILDEXAMPLES_TRUE=''
CC='gcc'
CCDEPMODE=''
CFLAGS='-O2 -fPIC'
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-O2 -fPIC'
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GNU_WIN_FALSE=''
GNU_WIN_TRUE=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LEX=''
LEXLIB=''
LEX_OUTPUT_ROOT=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} /tmp/SBo/libconfig-1.7.2/aux-build/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='libconfig'
PACKAGE_BUGREPORT='hyperrealm@gmail.com'
PACKAGE_NAME='libconfig'
PACKAGE_STRING='libconfig 1.7.2'
PACKAGE_TARNAME='libconfig'
PACKAGE_URL='https://hyperrealm.github.io/libconfig/'
PACKAGE_VERSION='1.7.2'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE='MAKE=make'
SHELL='/bin/sh'
STRIP=''
VERSION='1.7.2'
YACC=''
YFLAGS=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='#'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-slackware-linux-gnu'
build_alias='x86_64-slackware-linux'
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='slackware'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='/usr/doc/libconfig-1.7.2'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-slackware-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='slackware'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='/usr/info'
install_sh='${SHELL} /tmp/SBo/libconfig-1.7.2/aux-build/install-sh'
libdir='/usr/lib64'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='/var'
mandir='/usr/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='/etc'
target='x86_64-slackware-linux-gnu'
target_alias=''
target_cpu='x86_64'
target_os='linux-gnu'
target_vendor='slackware'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "libconfig"
#define PACKAGE_TARNAME "libconfig"
#define PACKAGE_VERSION "1.7.2"
#define PACKAGE_STRING "libconfig 1.7.2"
#define PACKAGE_BUGREPORT "hyperrealm@gmail.com"
#define PACKAGE_URL "https://hyperrealm.github.io/libconfig/"
#define PACKAGE "libconfig"
#define VERSION "1.7.2"
#define TARGET "x86_64-slackware-linux-gnu"

configure: exit 77Code:[ installed ] - gcc-5.5.0-x86_64-1_slack14.2
[ installed ] - gcc-g++-5.5.0-x86_64-1_slack14.2
[ installed ] - gcc-gfortran-5.5.0-x86_64-1_slack14.2
[ installed ] - gcc-gnat-5.5.0-x86_64-1_slack14.2
[ installed ] - gcc-go-5.5.0-x86_64-1_slack14.2
[ installed ] - gcc-java-5.5.0-x86_64-1_slack14.2
[ installed ] - gcc-objc-5.5.0-x86_64-1_slack14.2
[ installed ] - acct-6.5.4-x86_64-2
[ installed ] - ccache-3.2.4-x86_64-1
[ installed ] - distcc-3.1-x86_64-1
[ installed ] - kaccessible-4.14.3-x86_64-2
[ installed ] - libnetfilter_acct-1.0.2-x86_64-1
[ installed ] - nfacct-1.0.1-x86_64-1
[ installed ] - gccmakedep-1.0.3-noarch-1
[ installed ] - libpciaccess-0.13.4-x86_64-1latest?d=yIl2AUoC8zA latest?i=V_dFul0T2Kc:rhF0jeqSonY:F7zBnMy latest?i=V_dFul0T2Kc:rhF0jeqSonY:V_sGLiP latest?d=qj6IDK7rITs latest?i=V_dFul0T2Kc:rhF0jeqSonY:gIN9vFwV_dFul0T2Kc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments