Configure error cannot run c compiled programs

I'm trying to build lib32-libxkbcommon 0.5.0-1 from AUR with makepkg. I already tried installing pacman (setting the default makepkg.conf) and multilib-devel with no luck.

I’m trying to build lib32-libxkbcommon 0.5.0-1 from AUR with makepkg. I already tried installing pacman (setting the default makepkg.conf) and multilib-devel with no luck.

makepkg messages:

==> Making package: lib32-libxkbcommon 0.5.0-1 (Mon May 11 00:17:05 EEST 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Found libxkbcommon-0.5.0.tar.xz
==> Validating source files with sha256sums...
    libxkbcommon-0.5.0.tar.xz ... Passed
==> Extracting sources...
  -> Extracting libxkbcommon-0.5.0.tar.xz with bsdtar
bsdtar: Failed to set default locale
==> Starting prepare()...
==> Removing existing $pkgdir/ directory...
==> Starting build()...
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for style of include used by make... GNU
checking for gcc... gcc -m32
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... configure: error: in `/mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
==> ERROR: A failure occurred in build().
    Aborting...

makepkg.conf:

#
# /etc/makepkg.conf
#
#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
#  Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/curl -fC - --ftp-pasv --retry 3 --retry-delay 3 -o %o %u'
          'http::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'https::/usr/bin/curl -fLC - --retry 3 --retry-delay 3 -o %o %u'
          'rsync::/usr/bin/rsync --no-motd -z %u %o'
          'scp::/usr/bin/scp -C %u %o')
# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget
#-- The package required by makepkg to download VCS sources
#  Format: 'protocol::package'
VCSCLIENTS=('bzr::bzr'
            'git::git'
            'hg::mercurial'
            'svn::subversion')
#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="x86_64"
CHOST="x86_64-unknown-linux-gnu"
#-- Compiler and Linker Flags
# -march (or -mcpu) builds exclusively for an architecture
# -mtune optimizes for an architecture, but builds for whole processor family
CPPFLAGS="-D_FORTIFY_SOURCE=2"
CFLAGS="-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
#-- Make Flags: change this for DistCC/SMP systems
MAKEFLAGS="-j5"
#-- Debugging flags
DEBUG_CFLAGS="-g -fvar-tracking-assignments"
DEBUG_CXXFLAGS="-g -fvar-tracking-assignments"
#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(!distcc color !ccache check !sign)
#  A negated environment option will do the opposite of the comments below.
#
#-- distcc:   Use the Distributed C/C++/ObjC compiler
#-- color:    Colorize output messages
#-- ccache:   Use ccache to cache compilation
#-- check:    Run the check() function if present in the PKGBUILD
#-- sign:     Generate PGP signature file
#
BUILDENV=(!distcc color !ccache check !sign)
#
#-- If using DistCC, your MAKEFLAGS will also need modification. In addition,
#-- specify a space-delimited list of hosts running in the DistCC cluster.
#DISTCC_HOSTS=""
#
#-- Specify a directory for package building.
#BUILDDIR=/tmp/makepkg
#########################################################################
# GLOBAL PACKAGE OPTIONS
#   These are default values for the options=() settings
#########################################################################
#
# Default: OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
#  A negated option will do the opposite of the comments below.
#
#-- strip:      Strip symbols from binaries/libraries
#-- docs:       Save doc directories specified by DOC_DIRS
#-- libtool:    Leave libtool (.la) files in packages
#-- staticlibs: Leave static library (.a) files in packages
#-- emptydirs:  Leave empty directories in packages
#-- zipman:     Compress manual (man and info) pages in MAN_DIRS with gzip
#-- purge:      Remove files specified by PURGE_TARGETS
#-- upx:        Compress binary executable files using UPX
#-- debug:      Add debugging flags as specified in DEBUG_* variables
#
OPTIONS=(strip docs !libtool !staticlibs emptydirs zipman purge !upx !debug)
#-- File integrity checks to use. Valid: md5, sha1, sha256, sha384, sha512
INTEGRITY_CHECK=(md5)
#-- Options to be used when stripping binaries. See `man strip' for details.
STRIP_BINARIES="--strip-all"
#-- Options to be used when stripping shared libraries. See `man strip' for details.
STRIP_SHARED="--strip-unneeded"
#-- Options to be used when stripping static libraries. See `man strip' for details.
STRIP_STATIC="--strip-debug"
#-- Manual (man and info) directories to compress (if zipman is specified)
MAN_DIRS=({usr{,/local}{,/share},opt/*}/{man,info})
#-- Doc directories to remove (if !docs is specified)
DOC_DIRS=(usr/{,local/}{,share/}{doc,gtk-doc} opt/*/{doc,gtk-doc})
#-- Files to be removed from all packages (if purge is specified)
PURGE_TARGETS=(usr/{,share}/info/dir .packlist *.pod)

#########################################################################
# PACKAGE OUTPUT
#########################################################################
#
# Default: put built package and cached source in build directory
#
#-- Destination: specify a fixed directory where all packages will be placed
#PKGDEST=/home/packages
#-- Source cache: specify a fixed directory where source files will be cached
#SRCDEST=/home/sources
#-- Source packages: specify a fixed directory where all src packages will be placed
#SRCPKGDEST=/home/srcpackages
#-- Log files: specify a fixed directory where all log files will be placed
#LOGDEST=/home/makepkglogs
#-- Packager: name/email of the person or organization building packages
#PACKAGER="John Doe <john@doe.com>"
#-- Specify a key to use for package signing
#GPGKEY=""

#########################################################################
# COMPRESSION DEFAULTS
#########################################################################
#
COMPRESSGZ=(gzip -c -f -n)
COMPRESSBZ2=(bzip2 -c -f)
COMPRESSXZ=(xz -c -z -)
COMPRESSLRZ=(lrzip -q)
COMPRESSLZO=(lzop -q)
COMPRESSZ=(compress -c -f)

#########################################################################
# EXTENSION DEFAULTS
#########################################################################
#
# WARNING: Do NOT modify these variables unless you know what you are
#          doing.
#
PKGEXT='.pkg.tar.xz'
SRCEXT='.src.tar.gz'

# vim: set ft=sh ts=2 sw=2 et:

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 libxkbcommon configure 0.5.0, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/usr --libdir=/usr/lib32 --disable-docs --disable-static

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

hostname = Arch
uname -m = x86_64
uname -r = 4.0.1-1-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Wed Apr 29 12:00:26 CEST 2015

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/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: /usr/bin
PATH: /usr/lib/jvm/default/bin
PATH: /usr/bin/site_perl
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl


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

configure:2424: checking for a BSD-compatible install
configure:2492: result: /usr/bin/install -c
configure:2503: checking whether build environment is sane
configure:2558: result: yes
configure:2709: checking for a thread-safe mkdir -p
configure:2748: result: /usr/bin/mkdir -p
configure:2755: checking for gawk
configure:2771: found /usr/bin/gawk
configure:2782: result: gawk
configure:2793: checking whether make sets $(MAKE)
configure:2815: result: yes
configure:2844: checking whether make supports nested variables
configure:2861: result: yes
configure:2987: checking whether to enable maintainer-specific portions of Makefiles
configure:2996: result: yes
configure:3023: checking for style of include used by make
configure:3051: result: GNU
configure:3122: checking for gcc
configure:3149: result: gcc -m32
configure:3378: checking for C compiler version
configure:3387: gcc -m32 --version >&5
gcc (GCC) 5.1.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:3398: $? = 0
configure:3387: gcc -m32 -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/5.1.0/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: /build/gcc-multilib/src/gcc-5-20150505/configure --prefix=/usr --libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/ --enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared --enable-threads=posix --enable-libmpx --with-system-zlib --with-isl --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --disable-libssp --enable-gnu-unique-object --enable-linker-build-id --enable-lto --enable-plugin --enable-install-libiberty --with-linker-hash-style=gnu --enable-gnu-indirect-function --enable-multilib --disable-werror --enable-checking=release --with-default-libstdcxx-abi=c++98
Thread model: posix
gcc version 5.1.0 (GCC) 
configure:3398: $? = 0
configure:3387: gcc -m32 -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3398: $? = 1
configure:3387: gcc -m32 -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3398: $? = 1
configure:3418: checking whether the C compiler works
configure:3440: gcc -m32 -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c  >&5
configure:3444: $? = 0
configure:3492: result: yes
configure:3495: checking for C compiler default output file name
configure:3497: result: a.out
configure:3503: checking for suffix of executables
configure:3510: gcc -m32 -o conftest -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c  >&5
configure:3514: $? = 0
configure:3536: result: 
configure:3558: checking whether we are cross compiling
configure:3566: gcc -m32 -o conftest -march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c  >&5
In file included from /usr/include/stdio.h:27:0,
                 from conftest.c:11:
/usr/include/features.h:365:25: fatal error: sys/cdefs.h: No such file or directory
compilation terminated.
configure:3570: $? = 1
configure:3577: ./conftest
./configure: line 3579: ./conftest: No such file or directory
configure:3581: $? = 127
configure:3588: error: in `/mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0':
configure:3590: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

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

ac_cv_env_CC_set=set
ac_cv_env_CC_value='gcc -m32'
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-D_FORTIFY_SOURCE=2
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_DOT_set=
ac_cv_env_DOT_value=
ac_cv_env_DOXYGEN_set=
ac_cv_env_DOXYGEN_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-Wl,-O1,--sort-common,--as-needed,-z,relro
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_PKG_CONFIG_LIBDIR_set=
ac_cv_env_PKG_CONFIG_LIBDIR_value=
ac_cv_env_PKG_CONFIG_PATH_set=set
ac_cv_env_PKG_CONFIG_PATH_value=/usr/lib32/pkgconfig
ac_cv_env_PKG_CONFIG_set=
ac_cv_env_PKG_CONFIG_value=
ac_cv_env_XCB_XKB_CFLAGS_set=
ac_cv_env_XCB_XKB_CFLAGS_value=
ac_cv_env_XCB_XKB_LIBS_set=
ac_cv_env_XCB_XKB_LIBS_value=
ac_cv_env_XORG_MALLOC_DEBUG_ENV_set=
ac_cv_env_XORG_MALLOC_DEBUG_ENV_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=
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_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/usr/bin/mkdir
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC='gcc -m32'
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes

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

ACLOCAL='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing aclocal-1.14'
ADMIN_MAN_DIR=''
ADMIN_MAN_SUFFIX=''
AMDEPBACKSLASH=''
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH=''
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
APP_MAN_DIR=''
APP_MAN_SUFFIX=''
AR=''
AUTOCONF='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing autoconf'
AUTOHEADER='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing autoheader'
AUTOMAKE='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing automake-1.14'
AWK='gawk'
BASE_CFLAGS=''
BUILD_LINUX_TESTS_FALSE=''
BUILD_LINUX_TESTS_TRUE=''
CC='gcc -m32'
CCDEPMODE=''
CFLAGS='-march=core2 -m64 -mfpmath=sse -O2 -fomit-frame-pointer -pipe -fstack-protector --param=ssp-buffer-size=4'
CHANGELOG_CMD=''
CPP=''
CPPFLAGS='-D_FORTIFY_SOURCE=2'
CWARNFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DOT=''
DOXYGEN=''
DRIVER_MAN_DIR=''
DRIVER_MAN_SUFFIX=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
ENABLE_DOCS_FALSE=''
ENABLE_DOCS_TRUE=''
ENABLE_X11_FALSE=''
ENABLE_X11_TRUE=''
EXEEXT=''
FGREP=''
FILE_MAN_DIR=''
FILE_MAN_SUFFIX=''
GREP=''
HAVE_DOT=''
HAVE_DOT_FALSE=''
HAVE_DOT_TRUE=''
HAVE_DOXYGEN_FALSE=''
HAVE_DOXYGEN_TRUE=''
HAVE_NO_UNDEFINED_FALSE=''
HAVE_NO_UNDEFINED_TRUE=''
INSTALL_CMD=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIB_MAN_DIR=''
LIB_MAN_SUFFIX=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE='#'
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/missing makeinfo'
MANIFEST_TOOL=''
MAN_SUBSTS=''
MISC_MAN_DIR=''
MISC_MAN_SUFFIX=''
MKDIR_P='/usr/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='libxkbcommon'
PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon'
PACKAGE_NAME='libxkbcommon'
PACKAGE_STRING='libxkbcommon 0.5.0'
PACKAGE_TARNAME='libxkbcommon'
PACKAGE_URL='http://xkbcommon.org'
PACKAGE_VERSION='0.5.0'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
RANLIB=''
RT_LIBS=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRICT_CFLAGS=''
STRIP=''
VERSION='0.5.0'
XCB_XKB_CFLAGS=''
XCB_XKB_LIBS=''
XKBCONFIGROOT=''
XLOCALEDIR=''
XORG_MALLOC_DEBUG_ENV=''
XORG_MAN_PAGE=''
YACC=''
YACC_INST=''
YFLAGS=''
ac_ct_AR=''
ac_ct_CC='gcc -m32'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include='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=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /mnt/tmp/yaourt-tmp-tsester/aur-lib32-libxkbcommon/src/libxkbcommon-0.5.0/build-aux/install-sh'
libdir='/usr/lib32'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/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='${prefix}/etc'
target_alias=''

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

/* confdefs.h */
#define PACKAGE_NAME "libxkbcommon"
#define PACKAGE_TARNAME "libxkbcommon"
#define PACKAGE_VERSION "0.5.0"
#define PACKAGE_STRING "libxkbcommon 0.5.0"
#define PACKAGE_BUGREPORT "[url]https://bugs.freedesktop.org/enter_bug.cgi?product=libxkbcommon[/url]"
#define PACKAGE_URL "[url]http://xkbcommon.org[/url]"
#define PACKAGE "libxkbcommon"
#define VERSION "0.5.0"

configure: exit 1

other info:
core/pacman 4.2.1-1
multilib/gcc-multilib 4.9.2-4 (multilib-devel) [installed]
    The GNU Compiler Collection — C and C++ frontends for multilib
multilib/lib32-fakeroot 1.20.2-1 (multilib-devel) [installed]
    Tool for simulating superuser privileges (32-bit)
multilib/lib32-libltdl 2.4.5-1 (multilib-devel) [installed]
    A generic library support script (32-bit)

Last edited by tsester (2015-05-10 22:10:28)

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

It was created by ntopng configure 4.1.200409, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure

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

hostname = pfSense.localdomain
uname -m = amd64
uname -r = 11.3-STABLE
uname -s = FreeBSD
uname -v = FreeBSD 11.3-STABLE #236 21cbb70bbd1(RELENG_2_4_5): Tue Mar 24 15:26:53 EDT 2020     root@buildbot1-nyi.netgate.com:/build/ce-crossbuild-245/obj/amd64/YNx4Qq3j/build/ce-crossbuild-245/sources/FreeBSD-src/sys/pfSense

/usr/bin/uname -p = amd64
/bin/uname -X     = unknown

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

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


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

configure:2272: checking for gcc
configure:2288: found /usr/local/bin/gcc
configure:2299: result: gcc
configure:2528: checking for C compiler version
configure:2537: gcc --version >&5
gcc (FreeBSD Ports Collection) 9.3.0
Copyright (C) 2019 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:2548: $? = 0
configure:2537: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc9/gcc/x86_64-portbld-freebsd11.3/9.3.0/lto-wrapper
Target: x86_64-portbld-freebsd11.3
Configured with: /wrkdirs/usr/ports/lang/gcc9/work/gcc-9.3.0/configure --enable-multilib --enable-plugin --with-build-config=bootstrap-debug --disable-nls --enable-gnu-indirect-function --libdir=/usr/local/lib/gcc9 --libexecdir=/usr/local/libexec/gcc9 --program-suffix=9 --with-as=/usr/local/bin/as --with-gmp=/usr/local --with-gxx-include-dir=/usr/local/lib/gcc9/include/c++/ --with-ld=/usr/local/bin/ld --with-pkgversion='FreeBSD Ports Collection' --with-system-zlib --enable-languages=c,c++,objc,fortran --prefix=/usr/local --localstatedir=/var --mandir=/usr/local/man --infodir=/usr/local/share/info/gcc9 --build=x86_64-portbld-freebsd11.3
Thread model: posix
gcc version 9.3.0 (FreeBSD Ports Collection)
configure:2548: $? = 0
configure:2537: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2548: $? = 1
configure:2537: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'; did you mean '--version'?
gcc: fatal error: no input files
compilation terminated.
configure:2548: $? = 1
configure:2568: checking whether the C compiler works
configure:2590: gcc    conftest.c  >&5
configure:2594: $? = 0
configure:2642: result: yes
configure:2645: checking for C compiler default output file name
configure:2647: result: a.out
configure:2653: checking for suffix of executables
configure:2660: gcc -o conftest    conftest.c  >&5
configure:2664: $? = 0
configure:2686: result:
configure:2708: checking whether we are cross compiling
configure:2716: gcc -o conftest    conftest.c  >&5
conftest.c:9:10: fatal error: stdio.h: No such file or directory
    9 | #include <stdio.h>
      |          ^~~~~~~~~
compilation terminated.
configure:2720: $? = 1
configure:2727: ./conftest
eval: ./conftest: not found
configure:2731: $? = 127
configure:2738: error: in `/root/ntopng':
configure:2742: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details

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

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=''
ac_cv_env_CFLAGS_value=''
ac_cv_env_CPPFLAGS_set=''
ac_cv_env_CPPFLAGS_value=''
ac_cv_env_CPP_set=''
ac_cv_env_CPP_value=''
ac_cv_env_CXXFLAGS_set=''
ac_cv_env_CXXFLAGS_value=''
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_NDPI_CFLAGS_set=''
ac_cv_env_NDPI_CFLAGS_value=''
ac_cv_env_NDPI_LIBS_set=''
ac_cv_env_NDPI_LIBS_value=''
ac_cv_env_PKG_CONFIG_LIBDIR_set=''
ac_cv_env_PKG_CONFIG_LIBDIR_value=''
ac_cv_env_PKG_CONFIG_PATH_set=''
ac_cv_env_PKG_CONFIG_PATH_value=''
ac_cv_env_PKG_CONFIG_set=''
ac_cv_env_PKG_CONFIG_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_prog_ac_ct_CC=gcc

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

APP=''
CC='gcc'
CENTOS_N2N_DEP=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
DATE=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTN=''
GIT_DATE=''
GIT_INDEX=''
GIT_RELEASE=''
GMAKE=''
GPP=''
GREP=''
HIREDIS_INC=''
HIREDIS_LIB=''
INSTALL_DIR=''
JSON_INC=''
JSON_LIB=''
KERNEL=''
LDFLAGS=''
LIBOBJS=''
LIBRRD_LD_FLAGS=''
LIBS=''
LINK_OPTS=''
LTLIBOBJS=''
MACHINE=''
MAN_DIR=''
MARIADB=''
MAXMINDDB_LIB=''
MYSQL=''
MYSQL_DEP=''
MYSQL_INC=''
MYSQL_LIB=''
NDPI_CFLAGS=''
NDPI_HOME=''
NDPI_INC=''
NDPI_LIB=''
NDPI_LIBS=''
NDPI_LIB_DEP=''
NEDGE=''
NTOPNG_SHORT_VERSION=''
NTOPNG_VERSION=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='ntopng'
PACKAGE_STRING='ntopng 4.1.200409'
PACKAGE_TARNAME='ntopng'
PACKAGE_URL=''
PACKAGE_VERSION='4.1.200409'
PATH_SEPARATOR=':'
PFRING_GIT_RELEASE=''
PFRING_VERSION=''
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
PRO_HEADERS=''
PRO_INCS=''
PRO_LIBS=''
PRO_MAKEFILE_INC=''
PRO_OBJECTS=''
PWD='/root/ntopng'
RADCLI_LIB=''
REVISION=''
RPM_SIGN_CMD=''
SERVICE_AFTER=''
SERVICE_ALIAS=''
SERVICE_REQUIRES=''
SERVICE_WANTS=''
SHELL='/bin/sh'
SQLITE_LIB=''
SSL_INC=''
SSL_LIB=''
STABLE_SUFFIX=''
SYSTEM=''
UGLIFYJS_MAJOR_VERSION=''
ac_ct_CC='gcc'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

/* confdefs.h */
#define PACKAGE_NAME "ntopng"
#define PACKAGE_TARNAME "ntopng"
#define PACKAGE_VERSION "4.1.200409"
#define PACKAGE_STRING "ntopng 4.1.200409"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""

configure: exit 1


0

1

hecking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc
checking environment state... ok
checking for i686-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc -m32
checking whether the C compiler works... checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
checking whether we are cross compiling... 
checking whether we are cross compiling... no
checking for suffix of object files... configure: error: in `/var/tmp/portage/sys-apps/sandbox-2.5/work/build-x86':
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
o
checking whether we are using the GNU C compiler... yes
checking whether x86_64-pc-linux-gnu-gcc accepts -g... 
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/sys-apps/sandbox-2.5/work/build-x86/config.log
 * ERROR: sys-apps/sandbox-2.5 failed (compile phase):
 *   econf failed
 * 
 * Call stack:
yes
checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89...  *          ebuild.sh, line   85:  Called src_compile
 *        environment, line 2562:  Called multijob_child_init 'sb_configure'
 *        environment, line 2090:  Called sb_configure
 *        environment, line 2509:  Called econf
 *   phase-helpers.sh, line  467:  Called die
 * The specific snippet of code:
 *                      die "econf failed"
 * 
 * If you need support, post the output of `emerge --info '=sys-apps/sandbox-2.5'`,
 * the complete build log and the output of `emerge -pqv '=sys-apps/sandbox-2.5'`.
 * If configure failed with a 'cannot run C compiled programs' error, try this:
none needed
 * FEATURES=-sandbox emerge sandbox
checking for style of include used by make... /usr/lib64/portage/bin/isolated-functions.sh: line 214: wait: `econf failed': не идентификатор  процесса или правильное имя задачи
 * The complete build log is located at '/var/tmp/portage/sys-apps/sandbox-2.5/temp/build.log'.
GNU
 * The ebuild environment file is located at '/var/tmp/portage/sys-apps/sandbox-2.5/temp/environment'.
checking dependency style of x86_64-pc-linux-gnu-gcc...  * Working directory: '/var/tmp/portage/sys-apps/sandbox-2.5/work/build-x86'
 * S: '/var/tmp/portage/sys-apps/sandbox-2.5/work/sandbox-2.5'
gcc3
checking whether x86_64-pc-linux-gnu-gcc and cc understand -c and -o together... yes
checking for library containing strerror... none required
checking how to run the C preprocessor... x86_64-pc-linux-gnu-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -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 minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes

С -sandbox какая же ситуация.
Как это поправить?
cast megabaks

Common error when you run configure before make && make install:

checking whether the C compiler works… configure: error: in /root/downloads/libzmq-master': configure: error: cannot run C compiled programs. If you meant to cross compile, use –host’.

Add the following into your /root/.bashrc or /home/{username}/.bashrc

[sourcecode language=»jscript”]

export CPATH=/usr/local/include
export LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH=/usr/local/lib
export LD_RUN_PATH=/usr/local/lib

[/sourcecode]

Logout and login to reinitialize .bashrc or do the following:

[sourcecode language=»jscript”]

source /root/.bashrc

or

source /home/{username}/.bashrc

[/sourcecode]

Return back to running “configure” and that should get you past the error.

Cheers

Venkatt Guhesan avatar

Enterprise Software Architect and Developer currently working at Leidos as a consultant for the Modern Development Environment Group at SSA.gov developing the next generation of DevOps solutions and services. My passions include all things Open Source including Java, Python, GoLang, JavaScript, Linux, Arduino, ARM, Embedded Devices, Web Development and micro controllers. Coming from an Electrical and Computer Engineering background, working in developing and designing enterprise grade distributed, highly scalable software requires a unique set of software skills with a good understanding of the hardware. This makes my work challenging and interesting each and every day. I enjoy spending my free time with my family, friends and our pet dog. I enjoy researching on topics including — world ancient history, yoga, science, biology, chemistry and all things interesting. Visit the ‘About’ section up top for more details.

View previous topic :: View next topic  
Author Message
h2sammo
Veteran
Veteran

Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Sat Mar 12, 2011 2:47 pm    Post subject: configure: error: cannot run C compiled programs Reply with quote

so, i could not start wine, bash complained about it not being in /usr/bin/wine, even though it is there. i tried to recompile wine and it gave me the above error message. then i tried to recompile gcc (after some digging around) and and it gave me the above error message. then i tried to follow instructions for updating gcc (even though i currently have one version only) and upon emerging system sandbox is now failing with that message even after

Code:
 FEATURES=-sandbox emerge sandbox

. So this seems to be some major breakage but i dont know how to fix it. any help?

Code:

bobby@main ~ $ emerge —info

Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36-gentoo-r5 x86_64)

=================================================================

System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-1.12.14

Timestamp of tree: Fri, 11 Mar 2011 12:00:01 +0000

ccache version 2.4 [disabled]

app-shells/bash:     4.1_p9

dev-java/java-config: 2.1.11-r3

dev-lang/python:     2.6.6-r2, 3.1.3-r1

dev-util/ccache:     2.4-r9

dev-util/cmake:      2.8.4

sys-apps/baselayout: 1.12.14-r1

sys-apps/sandbox:    2.4

sys-devel/autoconf:  2.13, 2.65-r1

sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1

sys-devel/binutils:  2.20.1-r1

sys-devel/gcc:       4.4.5

sys-devel/gcc-config: 1.4.1

sys-devel/libtool:   2.2.10

sys-devel/make:      3.81-r2

virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)

ACCEPT_KEYWORDS=»amd64″

ACCEPT_LICENSE=»*»

CBUILD=»x86_64-pc-linux-gnu»

CFLAGS=»-O2 -march=native -pipe -ggdb»

CHOST=»x86_64-pc-linux-gnu»

CONFIG_PROTECT=»/etc /usr/share/config /usr/share/gnupg/qualified.txt»

CONFIG_PROTECT_MASK=»/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c»

CXXFLAGS=»-O2 -march=native -pipe -ggdb»

DISTDIR=»/usr/portage/distfiles»

FEATURES=»assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch»

FFLAGS=»»

GENTOO_MIRRORS=»http://distfiles.gentoo.org»

LANG=»C»

LDFLAGS=»-Wl,-O1 -Wl,—as-needed»

LINGUAS=»en»

MAKEOPTS=»-j3″

PKGDIR=»/usr/portage/packages»

PORTAGE_CONFIGROOT=»/»

PORTAGE_RSYNC_OPTS=»—recursive —links —safe-links —perms —times —compress —force —whole-file —delete —stats —timeout=180 —exclude=/distfiles —exclude=/local —exclude=/packages»

PORTAGE_TMPDIR=»/var/tmp»

PORTDIR=»/usr/portage»

PORTDIR_OVERLAY=»/var/lib/layman/x11 /var/lib/layman/cj-overlay /var/lib/layman/zugaina /var/lib/layman/stormfront /var/lib/layman/bgo-overlay /var/lib/layman/kde-sunset /usr/local/portage»

SYNC=»rsync://rsync.gentoo.org/gentoo-portage»

USE=»64bit X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gnome gpm gtk hal iconv ipv6 java jpeg kde lcms ldap libnotify libv4l2 lm_sensors lock mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype udev unicode usb v4l v4l2 vdpau vorbis wifi x264 xcb xml xorg xulrunner xv xvid xvmc zlib» ALSA_CARDS=»ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci» ALSA_PCM_PLUGINS=»adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol» APACHE2_MODULES=»actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias» CAMERAS=»ptp2″ COLLECTD_PLUGINS=»df interface irq load memory rrdtool swap syslog» ELIBC=»glibc» GPSD_PROTOCOLS=»ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx» INPUT_DEVICES=»evdev» KERNEL=»linux» LCD_DEVICES=»bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text» LINGUAS=»en» PHP_TARGETS=»php5-3″ RUBY_TARGETS=»ruby18″ USERLAND=»GNU» VIDEO_CARDS=»nvidia» XTABLES_ADDONS=»quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account»

Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Back to top

View user's profile Send private message

acarstoiu
Apprentice
Apprentice

Joined: 20 Oct 2004
Posts: 188

PostPosted: Sat Mar 12, 2011 3:09 pm    Post subject: Reply with quote

Check the answers in this forum page.

Succes!
Back to top

View user's profile Send private message

h2sammo
Veteran
Veteran

Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Sat Mar 12, 2011 3:52 pm    Post subject: Reply with quote

i only have 1 gcc version present:

Code:

main bobby # gcc-config -l

 [1] x86_64-pc-linux-gnu-4.4.5 *

also odd:

Code:

main bobby # /sbin/fix_libtool_files.sh 4.4

 * fix_libtool_files.sh: /lib/rcscripts/awk/fixlafiles.awk does not exist!

revdep-rebuild doesnot pickup anything

Quote:

bobby@main ~ $ cat /etc/make.conf

CFLAGS=»-O2 -march=native -pipe -ggdb»

CXXFLAGS=»${CFLAGS}»

CHOST=»x86_64-pc-linux-gnu»

USE=»vdpau 64bit hal java jpeg -minimal lock session startup-notification

thunar branding lm_sensors wifi xvmc X alsa dbus udev

libv4l2 v4l v4l2 gnome gtk kde -svga»

MAKEOPTS=»-j3″

INPUT_DEVICES=»evdev»

VIDEO_CARDS=»nvidia»

FEATURES=»splitdebug»

PORTDIR_OVERLAY=»/usr/local/portage»

ACCEPT_LICENSE=»*»

LINGUAS=»en»

source /var/lib/layman/make.conf

PORTAGE_ELOG_CLASSES=»log»

PORTAGE_ELOG_SYSTEM=»save»

CCACHE_SIZE=»2G

Back to top

View user's profile Send private message

acarstoiu
Apprentice
Apprentice

Joined: 20 Oct 2004
Posts: 188

PostPosted: Sat Mar 12, 2011 4:44 pm    Post subject: Reply with quote

Try this:

Code:
gcc-config -f 1



Then, recompile your compiler:

Code:
emerge -1 =sys-devel/gcc-4.4.5



If that works, you should be able to fix anything else… If not, I have to recommend the last resort solution of booting from a Live CD, mount your partitions under /mnt/gentoo, run chroot mnt/gentoo (so far, everything is just as described in the installation handbook) and recompile your compiler.

Baftă!

Back to top

View user's profile Send private message

Hu
Moderator
Moderator

Joined: 06 Mar 2007
Posts: 19770

PostPosted: Sat Mar 12, 2011 6:04 pm    Post subject: Reply with quote

Perhaps it would be worthwhile to examine why the configure script cannot run C compiled programs, before resorting to more drastic measures. The explanation can be found in the config.log for the package, which the instructions should have told you to post when seeking support.
Back to top

View user's profile Send private message

h2sammo
Veteran
Veteran

Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Sat Mar 12, 2011 7:37 pm    Post subject: Reply with quote

well, here is the complete build log (failed) of gcc compilation: http://ompldr.org/vN3M3Nw

and the config.log: http://ompldr.org/vN3M4Yg

i am a bit confused about the bootstrapping error. i am not cross compiling or anything similar. this is my amd64 gentoo machine which has been compiling everything just fine up until 2-3 days ago. all the packages on it are to be used on this machine.

Code:

build/x86_64-pc-linux-gnu/32/libgcc’:

configure: error: cannot run C compiled programs.

If you meant to cross compile, use `—host’.

See `config.log’ for more details.

make[2]: *** [configure-stage1-target-libgcc] Error 1

make[2]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.5/work/build’

make[1]: *** [stage1-bubble] Error 2

make[1]: Leaving directory `/var/tmp/portage/sys-devel/gcc-4.4.5/work/build’

make: *** [bootstrap-lean] Error 2

emake failed

 * ERROR: sys-devel/gcc-4.4.5 failed (compile phase):

 *   emake failed with bootstrap-lean

 *

 * Call stack:

 *     ebuild.sh, line   56:  Called src_compile

 *   environment, line 5067:  Called toolchain_src_compile

 *   environment, line 5662:  Called gcc_src_compile

 *   environment, line 3206:  Called gcc_do_make

 *   environment, line 2988:  Called die

 * The specific snippet of code:

 *       emake LDFLAGS=»${LDFLAGS}» STAGE1_CFLAGS=»${STAGE1_CFLAGS}» LIBPATH=»${LIBPATH}» BOOT_CFLAGS=»${BOOT_CFLAGS}» ${GCC_MAKE_TARGET} || die «emake failed with ${GCC_MAKE_TARGET}»;

 *

 * If you need support, post the output of ’emerge —info =sys-devel/gcc-4.4.5′,

 * the complete build log and the output of ’emerge -pqv =sys-devel/gcc-4.4.5′.

 * The complete build log is located at ‘/var/tmp/portage/sys-devel/gcc-4.4.5/temp/build.log’.

 * The ebuild environment file is located at ‘/var/tmp/portage/sys-devel/gcc-4.4.5/temp/environment’.

 * S: ‘/var/tmp/portage/sys-devel/gcc-4.4.5/work/build’

>>> Failed to emerge sys-devel/gcc-4.4.5, Log file:

>>>  ‘/var/tmp/portage/sys-devel/gcc-4.4.5/temp/build.log’

thx for the livecd idea. i dont have any CDs around me so I cant make one right now. I have been hit by this in the past and i hope I can figure out how to fix it again. If you have any ideas please suggest them.

Code:
bobby@main ~ $ emerge —info =sys-devel/gcc-4.4.5

Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/kde, gcc-4.4.5, glibc-2.11.3-r0, 2.6.36-gentoo-r5 x86_64)

=================================================================

                        System Settings

=================================================================

System uname: Linux-2.6.36-gentoo-r5-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4200+-with-gentoo-1.12.14

Timestamp of tree: Fri, 11 Mar 2011 12:00:01 +0000

ccache version 2.4 [disabled]

app-shells/bash:     4.1_p9

dev-java/java-config: 2.1.11-r3

dev-lang/python:     2.6.6-r2, 3.1.3-r1

dev-util/ccache:     2.4-r9

dev-util/cmake:      2.8.4

sys-apps/baselayout: 1.12.14-r1

sys-apps/sandbox:    2.4

sys-devel/autoconf:  2.13, 2.65-r1

sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1

sys-devel/binutils:  2.20.1-r1

sys-devel/gcc:       4.4.5

sys-devel/gcc-config: 1.4.1

sys-devel/libtool:   2.2.10

sys-devel/make:      3.81-r2

virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)

ACCEPT_KEYWORDS=»amd64″

ACCEPT_LICENSE=»*»

CBUILD=»x86_64-pc-linux-gnu»

CFLAGS=»-O2 -march=native -pipe -ggdb»

CHOST=»x86_64-pc-linux-gnu»

CONFIG_PROTECT=»/etc /usr/share/config /usr/share/gnupg/qualified.txt»

CONFIG_PROTECT_MASK=»/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c»

CXXFLAGS=»-O2 -march=native -pipe -ggdb»

DISTDIR=»/usr/portage/distfiles»

FEATURES=»assume-digests binpkg-logs distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch»

FFLAGS=»»

GENTOO_MIRRORS=»http://distfiles.gentoo.org»

LANG=»C»

LDFLAGS=»-Wl,-O1 -Wl,—as-needed»

LINGUAS=»en»

MAKEOPTS=»-j3″

PKGDIR=»/usr/portage/packages»

PORTAGE_CONFIGROOT=»/»

PORTAGE_RSYNC_OPTS=»—recursive —links —safe-links —perms —times —compress —force —whole-file —delete —stats —timeout=180 —exclude=/distfiles —exclude=/local —exclude=/packages»

PORTAGE_TMPDIR=»/var/tmp»

PORTDIR=»/usr/portage»

PORTDIR_OVERLAY=»/var/lib/layman/x11 /var/lib/layman/cj-overlay /var/lib/layman/zugaina /var/lib/layman/stormfront /var/lib/layman/bgo-overlay /var/lib/layman/kde-sunset /usr/local/portage»

SYNC=»rsync://rsync.gentoo.org/gentoo-portage»

USE=»64bit X a52 aac acl acpi alsa amd64 berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gnome gpm gtk hal iconv ipv6 java jpeg kde lcms ldap libnotify libv4l2 lm_sensors lock mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell sse sse2 ssl startup-notification svg sysfs tcpd thunar tiff truetype udev unicode usb v4l v4l2 vdpau vorbis wifi x264 xcb xml xorg xulrunner xv xvid xvmc zlib» ALSA_CARDS=»ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci» ALSA_PCM_PLUGINS=»adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol» APACHE2_MODULES=»actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias» CAMERAS=»ptp2″ COLLECTD_PLUGINS=»df interface irq load memory rrdtool swap syslog» ELIBC=»glibc» GPSD_PROTOCOLS=»ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx» INPUT_DEVICES=»evdev» KERNEL=»linux» LCD_DEVICES=»bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text» LINGUAS=»en» PHP_TARGETS=»php5-3″ RUBY_TARGETS=»ruby18″ USERLAND=»GNU» VIDEO_CARDS=»nvidia» XTABLES_ADDONS=»quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account»

Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================

                        Package Settings

=================================================================

sys-devel/gcc-4.4.5 was built with the following:

USE=»fortran gtk mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-hardened) (-libffi) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla»



Code:
bobby@main ~ $ emerge -pqv =sys-devel/gcc-4.4.5

[ebuild   R   ] sys-devel/gcc-4.4.5  USE=»fortran gtk mudflap (multilib) nls nptl openmp (-altivec) -bootstrap -build -doc (-fixed-point) -gcj -graphite (-hardened) (-libffi) -multislot (-n32) (-n64) -nocxx -nopie -nossp -objc -objc++ -objc-gc -test -vanilla»

Back to top

View user's profile Send private message

Hu
Moderator
Moderator

Joined: 06 Mar 2007
Posts: 19770

PostPosted: Sat Mar 12, 2011 8:58 pm    Post subject: Reply with quote

That config.log appears to be from the successful 64-bit build, not the failed 32-bit libgcc.
Back to top

View user's profile Send private message

h2sammo
Veteran
Veteran

Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Sat Mar 12, 2011 9:10 pm    Post subject: Reply with quote

i grabbed it from here: /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/config.log where would the right config.log be?
Back to top

View user's profile Send private message

h2sammo
Veteran
Veteran

Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Sat Mar 12, 2011 9:12 pm    Post subject: Reply with quote

Hu wrote:
That config.log appears to be from the successful 64-bit build, not the failed 32-bit libgcc.

maybe this one? http://ompldr.org/vN3M5aA

from /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/x86_64-pc-linux-gnu/32/libgcc/config.log

Quote:

configure:2380: checking for C compiler version

configure:2383: /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/$

xgcc (Gentoo 4.4.5 p1.2, pie-0.4.5) 4.4.5

Copyright (C) 2010 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:2386: $? = 0

configure:2388: /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/$

Reading specs from /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/specs

Target: x86_64-pc-linux-gnu

Configured with: /var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/configure —prefix=/usr —bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/4.4.5 —includedir=/usr/lib/gcc/x86_$

Thread model: posix

gcc version 4.4.5 (Gentoo 4.4.5 p1.2, pie-0.4.5)

configure:2391: $? = 0

configure:2393: /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/$

xgcc: ‘-V’ must come at the start of the command line

configure:2396: $? = 1

configure:2415: /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/$

configure:2418: $? = 0

configure:2452: checking for C compiler default output file name

configure:2455: /var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/xgcc -B/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/./gcc/ -B/usr/x86_64-pc-linux-gnu/bin/ -B/usr/$

configure:2458: $? = 0

configure:2506: result: a.out

configure:2511: checking whether the C compiler works

configure:2517: ./a.out

/var/tmp/portage/sys-devel/gcc-4.4.5/work/gcc-4.4.5/libgcc/configure: line 2518: ./a.out: No such file or directory

configure:2520: $? = 127

configure:2527: error: in `/var/tmp/portage/sys-devel/gcc-4.4.5/work/build/x86_64-pc-linux-gnu/32/libgcc’:

configure:2531: error: cannot run C compiled programs.

If you meant to cross compile, use `—host’.

See `config.log’ for more details.



Code:
bobby@main ~ $ locate /a.out

/usr/include/a.out.h

/usr/include/asm/a.out.h

/usr/include/bits/a.out.h

/usr/include/linux/a.out.h

/usr/lib64/bcc/include/a.out.h

/usr/lib64/klibc/include/asm-x86/a.out-core.h

/usr/lib64/klibc/include/asm-x86/a.out.h

/usr/lib64/klibc/include/linux/a.out.h

/usr/src/linux-2.6.36-gentoo-r5/arch/alpha/include/asm/a.out-core.h

/usr/src/linux-2.6.36-gentoo-r5/arch/alpha/include/asm/a.out.h

/usr/src/linux-2.6.36-gentoo-r5/arch/arm/include/asm/a.out-core.h

/usr/src/linux-2.6.36-gentoo-r5/arch/arm/include/asm/a.out.h

/usr/src/linux-2.6.36-gentoo-r5/arch/m68k/include/asm/a.out-core.h

/usr/src/linux-2.6.36-gentoo-r5/arch/m68k/include/asm/a.out.h

/usr/src/linux-2.6.36-gentoo-r5/arch/um/include/asm/a.out-core.h

/usr/src/linux-2.6.36-gentoo-r5/arch/x86/include/asm/a.out-core.h

/usr/src/linux-2.6.36-gentoo-r5/arch/x86/include/asm/a.out.h

/usr/src/linux-2.6.36-gentoo-r5/include/linux/a.out.h

Back to top

View user's profile Send private message

h2sammo
Veteran
Veteran

Joined: 11 Mar 2009
Posts: 1025
Location: Michigan

PostPosted: Mon Mar 14, 2011 3:49 am    Post subject: Reply with quote

acarstoiu wrote:
Try this:

Code:
gcc-config -f 1



Then, recompile your compiler:

Code:
emerge -1 =sys-devel/gcc-4.4.5



If that works, you should be able to fix anything else… If not, I have to recommend the last resort solution of booting from a Live CD, mount your partitions under /mnt/gentoo, run chroot mnt/gentoo (so far, everything is just as described in the installation handbook) and recompile your compiler.

Baftă!

i chrooted and recompiled gcc but it failed with the same error. wow?! i dont get this. if i chroot, dont i use the compilers on the livecd? how can i get the same error then?

also, i want to mention that when i use this machine i can compile most programs. it is only a few programs which fail to compile. i noticed wine, gcc and sandbox.

Back to top

View user's profile Send private message

Hu
Moderator
Moderator

Joined: 06 Mar 2007
Posts: 19770

PostPosted: Tue Mar 15, 2011 2:53 am    Post subject: Reply with quote

This is probably sys-libs/glibc-2.11.3: update from 2.11.2-r3 removed /lib -> /lib64 symlink. The root cause is not clear from the bug report, but it broke x86 support on quite a few systems.
Back to top

View user's profile Send private message

spootboy
n00b
n00b

Joined: 02 Oct 2008
Posts: 8

PostPosted: Fri Mar 25, 2011 6:43 pm    Post subject: Reply with quote

Had the same problem. The string of commands at the bottom of the bug link that Hu posted fix it for me.

Thanks!

Back to top

View user's profile Send private message

nixnut
Bodhisattva
Bodhisattva

Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Sat Apr 16, 2011 6:06 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads.

see https://forums.gentoo.org/viewtopic-t-297935.html
_________________
Please add [solved] to the initial post’s subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand

Back to top

View user's profile Send private message

Display posts from previous:   

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Понравилась статья? Поделить с друзьями:
  • Connection error 87 check how to fix
  • Connection error 809 bright vpn
  • Connection error 595 no route to host
  • Connection error 1005 ssh
  • Connection error 1001