PDA

View Full Version : [lubuntu] C compiler cannot create executables



Nathrak
February 27th, 2013, 04:17 PM
Hi everyone,

I am trying to install PyTyle3 on my freshly installed Lubuntu System. Therefor i try to compile xpyb, but after runnin ./configure i get the error:

configure: error: C compiler cannot create executables
See `config.log' for more details


config log is:


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

It was created by xpyb configure 1.3.1, which was
generated by GNU Autoconf 2.69. Invocation command line was

$ ./configure

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

hostname = lubuntuFTW
uname -m = x86_64
uname -r = 3.5.0-25-generic
uname -s = Linux
uname -v = #38-Ubuntu SMP Mon Feb 18 23:27:42 UTC 2013

/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/lib/lightdm/lightdm
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
PATH: /usr/local/games


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

configure:2371: checking build system type
configure:2385: result: x86_64-unknown-linux-gnu
configure:2405: checking host system type
configure:2418: result: x86_64-unknown-linux-gnu
configure:2459: checking how to print strings
configure:2486: result: printf
configure:2555: checking for gcc
configure:2571: found /usr/bin/gcc
configure:2582: result: gcc
configure:2811: checking for C compiler version
configure:2820: gcc --version >&5
gcc (Ubuntu/Linaro 4.7.2-2ubuntu1) 4.7.2
Copyright (C) 2012 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:2831: $? = 0
configure:2820: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.7/lto-wrapper
Target: x86_64-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.7.2-2ubuntu1' --with-bugurl=file:///usr/share/doc/gcc-4.7/README.Bugs --enable-languages=c,c++,go,fortran,objc,obj-c++ --prefix=/usr --program-suffix=-4.7 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.7 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-gnu-unique-object --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu
Thread model: posix
gcc version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1)
configure:2831: $? = 0
configure:2820: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:2831: $? = 4
configure:2820: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:2831: $? = 4
configure:2851: checking whether the C compiler works
configure:2873: gcc conftest.c >&5
gcc: error trying to exec 'as': execvp: No such file or directory
configure:2877: $? = 1
configure:2915: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "xpyb"
| #define PACKAGE_TARNAME "xpyb"
| #define PACKAGE_VERSION "1.3.1"
| #define PACKAGE_STRING "xpyb 1.3.1"
| #define PACKAGE_BUGREPORT "xcb@lists.freedesktop.org"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2920: error: in `/home/adrian/Dokumente/pytyle/xpybutil_master/xpyb':
configure:2922: error: C compiler cannot create executables
See `config.log' for more details

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

ac_cv_build=x86_64-unknown-linux-gnu
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_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIBXCB_CFLAGS_set=
ac_cv_env_LIBXCB_CFLAGS_value=
ac_cv_env_LIBXCB_LIBS_set=
ac_cv_env_LIBXCB_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_PYTHON_set=
ac_cv_env_PYTHON_value=
ac_cv_env_XCBPROTO_CFLAGS_set=
ac_cv_env_XCBPROTO_CFLAGS_value=
ac_cv_env_XCBPROTO_LIBS_set=
ac_cv_env_XCBPROTO_LIBS_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_host=x86_64-unknown-linux-gnu
ac_cv_prog_ac_ct_CC=gcc

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

ACLOCAL=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR=''
AR=''
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK=''
BUILD_COMPOSITE_FALSE=''
BUILD_COMPOSITE_TRUE=''
BUILD_DAMAGE_FALSE=''
BUILD_DAMAGE_TRUE=''
BUILD_DPMS_FALSE=''
BUILD_DPMS_TRUE=''
BUILD_GLX_FALSE=''
BUILD_GLX_TRUE=''
BUILD_RANDR_FALSE=''
BUILD_RANDR_TRUE=''
BUILD_RECORD_FALSE=''
BUILD_RECORD_TRUE=''
BUILD_RENDER_FALSE=''
BUILD_RENDER_TRUE=''
BUILD_RESOURCE_FALSE=''
BUILD_RESOURCE_TRUE=''
BUILD_SCREENSAVER_FALSE=''
BUILD_SCREENSAVER_TRUE=''
BUILD_SELINUX_FALSE=''
BUILD_SELINUX_TRUE=''
BUILD_SHAPE_FALSE=''
BUILD_SHAPE_TRUE=''
BUILD_SHM_FALSE=''
BUILD_SHM_TRUE=''
BUILD_SYNC_FALSE=''
BUILD_SYNC_TRUE=''
BUILD_XEVIE_FALSE=''
BUILD_XEVIE_TRUE=''
BUILD_XFIXES_FALSE=''
BUILD_XFIXES_TRUE=''
BUILD_XFREE86_DRI_FALSE=''
BUILD_XFREE86_DRI_TRUE=''
BUILD_XINERAMA_FALSE=''
BUILD_XINERAMA_TRUE=''
BUILD_XINPUT_FALSE=''
BUILD_XINPUT_TRUE=''
BUILD_XPRINT_FALSE=''
BUILD_XPRINT_TRUE=''
BUILD_XTEST_FALSE=''
BUILD_XTEST_TRUE=''
BUILD_XVMC_FALSE=''
BUILD_XVMC_TRUE=''
BUILD_XV_FALSE=''
BUILD_XV_TRUE=''
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CWARNFLAGS=''
CYGPATH_W=''
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_STRIP_PROGRAM=''
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIBXCB_CFLAGS=''
LIBXCB_LIBS=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAKEINFO=''
MANIFEST_TOOL=''
MKDIR_P=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE=''
PACKAGE_BUGREPORT='xcb@lists.freedesktop.org'
PACKAGE_NAME='xpyb'
PACKAGE_STRING='xpyb 1.3.1'
PACKAGE_TARNAME='xpyb'
PACKAGE_URL=''
PACKAGE_VERSION='1.3.1'
PATH_SEPARATOR=':'
PKG_CONFIG=''
PKG_CONFIG_LIBDIR=''
PKG_CONFIG_PATH=''
PYTHON=''
PYTHON_EXEC_PREFIX=''
PYTHON_INCLUDE=''
PYTHON_PLATFORM=''
PYTHON_PREFIX=''
PYTHON_VERSION=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
STRIP=''
VERSION=''
XCBPROTO_CFLAGS=''
XCBPROTO_LIBS=''
XCBPROTO_XCBINCLUDEDIR=''
XCBPROTO_XCBPYTHONDIR=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot=''
am__nodep=''
am__quote=''
am__tar=''
am__untar=''
bindir='${exec_prefix}/bin'
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-unknown-linux-gnu'
host_alias=''
host_cpu='x86_64'
host_os='linux-gnu'
host_vendor='unknown'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
pkgpyexecdir=''
pkgpythondir=''
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
pyexecdir=''
pythondir=''
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

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

/* confdefs.h */
#define PACKAGE_NAME "xpyb"
#define PACKAGE_TARNAME "xpyb"
#define PACKAGE_VERSION "1.3.1"
#define PACKAGE_STRING "xpyb 1.3.1"
#define PACKAGE_BUGREPORT "xcb@lists.freedesktop.org"
#define PACKAGE_URL ""

configure: exit 77


I haven't done any other compiling yet, so i guess its a general Problem with my C Compiler. I have installed gcc multilib, gcc -v gives:
gcc-Version 4.7.2 (Ubuntu/Linaro 4.7.2-2ubuntu1)

"build essential" is installed too.

Any ideas?

Greetings,
Nathrak

sdgiffin
May 2nd, 2013, 05:12 PM
Are you trying to compile in 32 bits on a 64 bit distro?

MAFoElffen
May 3rd, 2013, 05:52 PM
LOL... I'm no C wizard, (about 25 years), but the configure script that came with your source is just a bit ascew. configure builds a makefile based on questions it asks and the answers it gets back... But if the source is trusted you could just invoke make and it would build it's own makefile assuming all the resources where there and everything was kosher. But better to be safe, eh? On the configure script...

First clue, it error'ed out on


gcc -V

Which they are expecting it to return the version of the gcc compiler... but that syntax is incorrect. It should have been


gcc --version

Because that syntax was wrong, it exited because it couldn't tell if the compiler was new enough to compile it.

If you are checking gcc, the correct syntax is


which gcc && gcc --version

So look for the configure script file present in that source directory and either change that line to the correct syntax ("gcc --version")... or post your configure file and I'll check it for what you should need...