You are not logged in.
I lived with this error some time... Trying to fix it by myself, reading quite a few of forums, wiki, and - enough
Better idea it to ask you, and maybe someone can find a simple solution???
Everytime I try to build something from AUR (and other PKGBUILDs) comes an error message as in example below
(Marked with "<==" on the right side).
# yaourt -S uae
==> Downloading uae PKGBUILD from AUR...
x uae.desktop
x PKGBUILD
x uae.png
First Submitted: Thu, 27 Mar 2008 12:48:02 +0000
uae 0.8.29-4
( Unsupported package: Potentially dangerous ! )
==> Edit PKGBUILD ? [Y/n] ("A" to abort)
==> ------------------------------------
==> n
==> uae dependencies:
- gtk2>=2.0.0 (already installed)
- sdl (already installed)
- alsa-lib (already installed)
- zlib (already installed)
==> Continue building uae ? [Y/n]
==> -----------------------------
==>
==> Building and installing package
==> WARNING: Building package as root is dangerous.
Please run yaourt as a non-privileged user.
==> Tworzę pakiet: uae 0.8.29-4 (śro, 29 sie 2012, 00:27:18 CEST)
==> Sprawdzanie zależności potrzebnych do uruchomienia...
==> Sprawdzanie zależności potrzebnych do budowy...
==> Pobieranie źródeł...
-> Pobieram uae-0.8.29.tar.bz2...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 903k 100 903k 0 0 116k 0 0:00:07 0:00:07 --:--:-- 120k
-> Znaleziono uae.desktop
-> Znaleziono uae.png
==> Sprawdzam pliki źródłowe przy użyciu md5sums...
uae-0.8.29.tar.bz2 ... Zgadza się
uae.desktop ... Zgadza się
uae.png ... Zgadza się
==> Rozpakowuję źródła...
-> Rozpakowywanie uae-0.8.29.tar.bz2 za pomocą bsdtar
==> Zaczynam build()
checking for gcc... arm-angstrom-linux-gnueabi-gcc
checking for C compiler default output file name...
configure: error: C compiler cannot create executables <==
See `config.log' for more details.
==> BŁĄD: Wystąpił błąd w build().
Przerywam...
==> ERROR: Makepkg was unable to build uae.
==> Restart building uae ? [y/N]
==> ----------------------------
==>Some stuff: (may be useful)
Sorry for spam, but I just feel that someone will maybe need those texts.
Thanks a lot in advance!
# uname -r
3.4.4-3-ARCH
# whereis gcc
gcc: /usr/bin/gcc /lib/gcc /usr/lib/gcc /usr/share/man/man1/gcc.1.gz
# whereis make
make: /usr/bin/make /usr/share/man/man1/make.1.gz
# gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.7.1/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: /build/src/gcc-4.7-20120721/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 --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-clocale=gnu --disable-libstdcxx-pch --enable-libstdcxx-time --enable-gnu-unique-object --enable-linker-build-id --with-ppl --enable-cloog-backend=isl --disable-ppl-version-check --disable-cloog-version-check --enable-lto --enable-gold --enable-ld=default --enable-plugin --with-plugin-ld=ld.gold --with-linker-hash-style=gnu --disable-multilib --disable-libssp --disable-build-with-cxx --disable-build-poststage1-with-cxx --enable-checking=release
Thread model: posix
gcc version 4.7.1 20120721 (prerelease) (GCC)
# make -v
GNU Make 3.82
Ten program został zbudowany dla systemu i686-pc-linux-gnu
Copyright (C) 2010 Free Software Foundation, Inc.
Licencja GPLv3+: GNU GPL wersja 3 lub nowsza <http://gnu.org/licenses/gpl.html>
To oprogramowanie jest wolnodostępne: można je swobodnie zmieniać i rozpowszechniać.
Nie ma ŻADNEJ GWARANCJI w zakresie dopuszczalnym przez prawo.As said:
See `config.log' for more details.
so here it is:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by UAE configure 0.8.29, which was
generated by GNU Autoconf 2.61. Invocation command line was
$ ./configure --enable-bsdsock --enable-scsi-device --with-sdl --with-sdl-gfx --with-sdl-gl --with-alsa --prefix=/usr
## --------- ##
## Platform. ##
## --------- ##
hostname = heniek
uname -m = i686
uname -r = 3.4.4-3-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Tue Jul 3 15:35:13 UTC 2012
/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/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl
PATH: /home/marzecki/development/cross/bin
PATH: /home/marzecki/development/khepera3toolbox/Scripts
PATH: /home/marzecki/development/cross/bin
PATH: /home/marzecki/development/khepera3toolbox/Scripts
## ----------- ##
## Core tests. ##
## ----------- ##
configure:1811: checking for gcc
configure:1838: result: arm-angstrom-linux-gnueabi-gcc
configure:2076: checking for C compiler version
configure:2083: arm-angstrom-linux-gnueabi-gcc --version >&5
arm-angstrom-linux-gnueabi-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:2086: $? = 0
configure:2093: arm-angstrom-linux-gnueabi-gcc -v >&5
Using built-in specs.
Target: arm-angstrom-linux-gnueabi
Configured with: /usr/local/korebot2-oetools-1.0/tmp/work/armv5te-angstrom-linux-gnueabi/gcc-cross-4.1.2-r10/gcc-4.1.2/configure --build=i686-linux --host=i686-linux --target=arm-angstrom-linux-gnueabi --prefix=/usr/local/korebot2-oetools-1.0/tmp/cross --exec_prefix=/usr/local/korebot2-oetools-1.0/tmp/cross --bindir=/usr/local/korebot2-oetools-1.0/tmp/cross/bin --sbindir=/usr/local/korebot2-oetools-1.0/tmp/cross/bin --libexecdir=/usr/local/korebot2-oetools-1.0/tmp/cross/libexec --datadir=/usr/local/korebot2-oetools-1.0/tmp/cross/share --sysconfdir=/usr/local/korebot2-oetools-1.0/tmp/cross/etc --sharedstatedir=/usr/local/korebot2-oetools-1.0/tmp/cross/com --localstatedir=/usr/local/korebot2-oetools-1.0/tmp/cross/var --libdir=/usr/local/korebot2-oetools-1.0/tmp/cross/lib --includedir=/usr/local/korebot2-oetools-1.0/tmp/cross/include --oldincludedir=/usr/local/korebot2-oetools-1.0/tmp/cross/include --infodir=/usr/local/korebot2-oetools-1.0/tmp/cross/share/info --mandir=/usr/local/korebot2-oetools-1.0/tmp/cross/share/man --with-gnu-ld --enable-shared --enable-target-optspace --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-angstrom-linux-gnueabi- --with-local-prefix=/usr/local/korebot2-oetools-1.0/tmp/staging/arm-angstrom-linux-gnueabi --with-gxx-include-dir=/usr/local/korebot2-oetools-1.0/tmp/staging/arm-angstrom-linux-gnueabi/include/c++ --enable-__cxa_atexit --with-float=soft --disable-libssp --disable-libunwind-exceptions --with-mpfr=/usr/local/korebot2-oetools-1.0/tmp/staging/i686-linux
Thread model: posix
gcc version 4.1.2
configure:2096: $? = 0
configure:2103: arm-angstrom-linux-gnueabi-gcc -V >&5
arm-angstrom-linux-gnueabi-gcc: '-V' option must have argument
configure:2106: $? = 1
configure:2129: checking for C compiler default output file name
configure:2156: arm-angstrom-linux-gnueabi-gcc -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5
Assembler messages:
Error: unknown architecture `i686'
Error: unrecognized option -march=i686
conftest.c:1: error: bad value (generic) for -mtune= switch
conftest.c:1: error: bad value (i686) for -march= switch
configure:2159: $? = 1
configure:2197: result:
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "UAE"
| #define PACKAGE_TARNAME "uae"
| #define PACKAGE_VERSION "0.8.29"
| #define PACKAGE_STRING "UAE 0.8.29"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2204: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CC_set=set
ac_cv_env_CC_value=arm-angstrom-linux-gnueabi-gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
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=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_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=arm-angstrom-linux-gnueabi-gcc
## ----------------- ##
## Output variables. ##
## ----------------- ##
ASMOBJS=''
CC='arm-angstrom-linux-gnueabi-gcc'
CFLAGS='-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
CPP=''
CPPFLAGS=''
CPUOBJS=''
DEBUGOBJS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FILEPRG=''
FSDBOBJS=''
GFXOBJS=''
GREP=''
GTK_CFLAGS=''
GTK_LIBS=''
GUIOBJS=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro'
LIBOBJS=''
LIBRARIES=''
LIBS=''
LTLIBOBJS=''
MAKEDEPPRG=''
MATHLIB=''
NO_REORDER_CFLAGS=''
NO_SCHED_CFLAGS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='UAE'
PACKAGE_STRING='UAE 0.8.29'
PACKAGE_TARNAME='uae'
PACKAGE_VERSION='0.8.29'
PATH_SEPARATOR=':'
PKG_CONFIG=''
RCLPRG=''
RESOBJS=''
SCSIOBJS=''
SDL_CONFIG=''
SET_MAKE=''
SHELL='/bin/sh'
SHM_SUPPORT_LINKS=''
TARGET=''
WRCPRG=''
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC='arm-angstrom-linux-gnueabi-gcc'
ac_cv_c_inline=''
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'
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=''
top_srcdir=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
#define PACKAGE_NAME "UAE"
#define PACKAGE_TARNAME "uae"
#define PACKAGE_VERSION "0.8.29"
#define PACKAGE_STRING "UAE 0.8.29"
#define PACKAGE_BUGREPORT ""
configure: exit 77/etc/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 -z %u %o'
'scp::/usr/bin/scp -C %u %o')
# Other common tools:
# /usr/bin/snarf
# /usr/bin/lftpget -c
# /usr/bin/wget
#########################################################################
# ARCHITECTURE, COMPILE FLAGS
#########################################################################
#
CARCH="i686"
CHOST="i686-pc-linux-gnu"
#-- Compiler and Linker Flags
# -march (or -mcpu) builds exclusively for an architecture (i686)
# -mtune optimizes for an architecture, but builds for whole processor family
#
CFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
CXXFLAGS="-march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro"
#-- Make Flags: change this for DistCC/SMP systems
#MAKEFLAGS="-j2"
#########################################################################
# BUILD ENVIRONMENT
#########################################################################
#
# Defaults: BUILDENV=(fakeroot !distcc color !ccache check !sign)
# A negated environment option will do the opposite of the comments below.
#
#-- fakeroot: Allow building packages as a non-root user
#-- 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=(fakeroot !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 emptydirs zipman purge !upx)
# 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
#-- 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
#
OPTIONS=(strip docs libtool emptydirs zipman purge !upx)
#-- 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
#-- 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=""
#########################################################################
# 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:I've played with CFLAGS, I've reinstalled gcc, make and other apps, and other things I don't remember and now I dunno what to do. Please, someone ![]()
[edit]
Forgott to say that this problem started after THIS:
http://www.archlinux.org/news/the-lib-d … a-symlink/
which (I think) I've done well but franckly I'm not that sure.
Last edited by marzecki (2012-08-28 23:06:35)
Offline
This isn't the archlinux-arm forum, and the error message is quite obvious in your config.log
configure:2156: arm-angstrom-linux-gnueabi-gcc -march=i686 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -Wl,-O1,--sort-common,--as-needed,-z,relro conftest.c >&5 Assembler messages: Error: unknown architecture `i686'
You probably shouldn't be trying to copy your makepkg.conf over from an x86 machine.
Offline
This isn't the archlinux-arm forum
I don't even expected that from You.
, and the error message is quite obvious in your config.log
If I understand it, every PKGBUILD is trying to compile with my arm compiler? I don't even know what means a line which you quoted. Please tell me what to do. This is not an archlinux-arm, it should be an error since I'm using my Arch to compile programs for arm founded in Khepera III robots. I'll try to find if some configurations disrupted my common compilation process.
Offline