You are not logged in.
I was trying to install aMSN-CVS from the latest AUR package and I keep running into this error:
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables
See `config.log' for more details.
make: *** [Makefile] Error 77
==> ERROR: Build Failed. Aborting...
Following the trail, I checked out config.log to see what was going wrong and this is the part that seems to be causing the issue:
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1988: checking for gcc
configure:2004: found /usr/bin/gcc
configure:2015: result: gcc
configure:2253: checking for C compiler version
configure:2260: gcc --version >&5
gcc (GCC) 4.1.2
Copyright (C) 2006 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:2263: $? = 0
configure:2270: gcc -v >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc-4.1.2/configure --prefix=/usr --enable-shared --enable-languages=c,c++,objc --enable-threads=posix$
Thread model: posix
gcc version 4.1.2
configure:2273: $? = 0
configure:2280: gcc -V >&5
gcc: '-V' option must have argument
configure:2283: $? = 1
configure:2306: checking for C compiler default output file name
configure:2333: gcc -march=i686 -O2 -pipe -O2 -w -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/i$
gcc: svnversion: No such file or directory
gcc: >: No such file or directory
gcc: &&: No such file or directory
gcc: svnversion`"': No such file or directory
gcc: >: No such file or directory
gcc: &&: No such file or directory
gcc: svnversion`"': No such file or directory
configure:2336: $? = 1
configure:2374: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2381: error: C compiler cannot create executables
See `config.log' for more details.
Does anyone have any ideas what could be causing this? I'm rather stumped. I can post the whole config.log if that would help.
I've tried some basic tests with other things and everything else I've tried to compile works just fine, it only seems to be the aMSN package having the issues, yet it looks like it's a problem with the GCC config and not aMSN.
Any help would be greatly appreciated.
Offline
I too am having this problem..
Offline
Ok this is driving me nuts.. can some other users please try building amsn-cvs from AUR?
when I makepkg or even use yaourt it fails with the errors above. but if I just makepkg
then manually enter the src/amsn and src/amsn-build directory's and do the following
./configure --prefix=/usr
make all
it compiles just fine. This is the same lines used in the PKGBUILD.
Is there a problem with my setup somewhere or is it the PKGBUILD?
If someone would try to build amsn-svn real quick and check if it builds as expected it would be greatly appreciated.
Thank You
Offline
I can tell you it's a problem with your setup, I've had this myself on some installs. The problem is quite pesky to point out though... I can't help with that I'm afraid.
Got Leenucks? :: Arch: Power in simplicity :: Get Counted! Registered Linux User #392717 :: Blog thingy
Offline
Ah well.. Thank you for your input.. I'll post here again once I figure it out.
Offline
This happened to me too, i can't update it using versionpkg anymore. Has anyone found a solution?
PS: package name is amsn-svn, not amsn-cvs.
Offline
Same problem here, with a fresh installation. If it is really a configuration problem, could somebody help us to check what is the problem ?
The config.log extract posted by Locri is missing some information, probably due to the use of nano...
Here is an extract from mine :
configure:2263: $? = 0
configure:2270: gcc -v >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 20070423 (prerelease)
configure:2273: $? = 0
configure:2280: gcc -V >&5
gcc: '-V' option must have argument
configure:2283: $? = 1
configure:2306: checking for C compiler default output file name
configure:2333: gcc -march=i686 -O2 -pipe -O2 -w -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include -I. -I./utils/linux/capture -I./utils/linux/capture/libng -I./utils/linux/capture/structs -I./utils/webcamsn/src -I./utils/tcl_siren/src -I./utils/TkCximage/src -I./utils/TkCximage/src/CxImage -DPACKAGE='"amsn"' -DVERSION='"0.97b-svn`which svnversion > /dev/null && svnversion`"' -DLIBDIR='"/var/abs/local/yaourtbuild/amsn-svn
/src/amsn-build"' -fPIC conftest.c >&5
gcc: svnversion: No such file or directory
gcc: >: No such file or directory
gcc: &&: No such file or directory
gcc: svnversion`"': No such file or directory
configure:2336: $? = 1
configure:2374: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2381: error: C compiler cannot create executables
And the complete version, just in case :
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by configure, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure --prefix=/usr
## --------- ##
## Platform. ##
## --------- ##
hostname = DeepThought
uname -m = i686
uname -r = 2.6.21-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri May 25 18:51:33 CEST 2007
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /bin
PATH: /usr/bin
PATH: /sbin
PATH: /usr/sbin
PATH: /usr/X11R6/bin
PATH: /opt/bin
PATH: /opt/java/bin
PATH: /opt/java/jre/bin
PATH: /opt/mozilla/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1988: checking for gcc
configure:2004: found /usr/bin/gcc
configure:2015: result: gcc
configure:2253: checking for C compiler version
configure:2260: gcc --version >&5
gcc (GCC) 4.1.2 20070423 (prerelease)
Copyright (C) 2006 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:2263: $? = 0
configure:2270: gcc -v >&5
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../configure --prefix=/usr --enable-shared --enable-languages=c,c++,objc --enable-threads=posix --enable-__cxa_atexit --disable-multilib --libdir=/usr/lib --libexecdir=/usr/lib --enable-clocale=gnu
Thread model: posix
gcc version 4.1.2 20070423 (prerelease)
configure:2273: $? = 0
configure:2280: gcc -V >&5
gcc: '-V' option must have argument
configure:2283: $? = 1
configure:2306: checking for C compiler default output file name
configure:2333: gcc -march=i686 -O2 -pipe -O2 -w -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include -I. -I./utils/linux/capture -I./utils/linux/capture/libng -I./utils/linux/capture/structs -I./utils/webcamsn/src -I./utils/tcl_siren/src -I./utils/TkCximage/src -I./utils/TkCximage/src/CxImage -DPACKAGE='"amsn"' -DVERSION='"0.97b-svn`which svnversion > /dev/null && svnversion`"' -DLIBDIR='"/var/abs/local/yaourtbuild/amsn-svn/src/amsn-build"' -fPIC conftest.c >&5
gcc: svnversion: No such file or directory
gcc: >: No such file or directory
gcc: &&: No such file or directory
gcc: svnversion`"': No such file or directory
configure:2336: $? = 1
configure:2374: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2381: error: C compiler cannot create executables
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=set
ac_cv_env_CFLAGS_value='-march=i686 -O2 -pipe -O2 -w -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include -I. -I./utils/linux/capture -I./utils/linux/capture/libng -I./utils/linux/capture/structs -I./utils/webcamsn/src -I./utils/tcl_siren/src -I./utils/TkCximage/src -I./utils/TkCximage/src/CxImage -DPACKAGE='\''"amsn"'\'' -DVERSION='\''"0.97b-svn`which svnversion > /dev/null && svnversion`"'\'' -DLIBDIR='\''"/var/abs/local/yaourtbuild/amsn-svn/src/amsn-build"'\'' -fPIC'
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=set
ac_cv_env_CXXFLAGS_value='-march=i686 -O2 -pipe -O2 -w -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include -I. -I./utils/linux/capture -I./utils/linux/capture/libng -I./utils/linux/capture/structs -I./utils/webcamsn/src -I./utils/tcl_siren/src -I./utils/TkCximage/src -I./utils/TkCximage/src/CxImage -DPACKAGE='\''"amsn"'\'' -DVERSION='\''"0.97b-svn`which svnversion > /dev/null && svnversion`"'\'' -DLIBDIR='\''"/var/abs/local/yaourtbuild/amsn-svn/src/amsn-build"'\'' -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_XMKMF_set=
ac_cv_env_XMKMF_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. ##
## ----------------- ##
APPNAME='amsn'
APPRELEASE='1'
APPSTABLE='no'
APPVERSION='0.97b'
BUILD_DIR=''
CC='gcc'
CFLAGS='-march=i686 -O2 -pipe -O2 -w -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include -I. -I./utils/linux/capture -I./utils/linux/capture/libng -I./utils/linux/capture/structs -I./utils/webcamsn/src -I./utils/tcl_siren/src -I./utils/TkCximage/src -I./utils/TkCximage/src/CxImage -DPACKAGE='\''"amsn"'\'' -DVERSION='\''"0.97b-svn`which svnversion > /dev/null && svnversion`"'\'' -DLIBDIR='\''"/var/abs/local/yaourtbuild/amsn-svn/src/amsn-build"'\'' -fPIC'
CONFIGURE_ARGS='/usr/share/config.site /usr/etc/config.site'
CPP=''
CPPFLAGS=''
CXX=''
CXXFLAGS='-march=i686 -O2 -pipe -O2 -w -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include -I/usr/include -I. -I./utils/linux/capture -I./utils/linux/capture/libng -I./utils/linux/capture/structs -I./utils/webcamsn/src -I./utils/tcl_siren/src -I./utils/TkCximage/src -I./utils/TkCximage/src/CxImage -DPACKAGE='\''"amsn"'\'' -DVERSION='\''"0.97b-svn`which svnversion > /dev/null && svnversion`"'\'' -DLIBDIR='\''"/var/abs/local/yaourtbuild/amsn-svn/src/amsn-build"'\'' -fPIC'
CXX_LIB=''
DEBUG='no'
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FOUND_OS='linux'
FOUND_X11=''
GREP=''
LDFLAGS=''
LDLIBS=''
LIBDIR=''
LIBOBJS=''
LIBPTHREAD=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PWC='no'
SHELL='/bin/sh'
STATIC='no'
TCLSH='/usr/bin/tclsh'
TCL_INC_SPEC=''
TCL_LIB_DIR=''
TCL_STUB_LIB_SPEC=''
TK_INC_SPEC=''
TK_LIB=''
TK_LIBS=''
TK_LIB_DIR=''
TK_STUB_LIB_SPEC=''
TK_VERSION=''
TOP_DIR=''
USE_MMX=''
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_prefix_program=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
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='/usr'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
configure: exit 77
Last edited by Skippy le Grand Gourou (2007-06-12 22:31:48)
Offline
I had to comment out my CFLAGS and CXXFLAGS in /etc/makepkg.conf to avoid the error.
Offline
I know this is an old thread, but I was having a similar problem and wanted to share my solution so that other googlers could benefit. For me, I completely uninstalled binutils (pacman -Rd binutils) and reinstalled it.
Offline