[SOLVED] cross compiling libopenfst makepkg error

Hello there,
I am trying to cross compile openfst on my 64 bit arch setup since it is taking too long on my raspberry pi (which also happily runs arch). I thought I would be ok with the following makepkg to get me a binary package which I could transfer to my pi and then install with pacman-U:
# Maintainer: Christoph Drexler <chrdr at gmx dot at>
pkgname=openfst
pkgver=1.4.1
pkgrel=1
pkgdesc="Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs)"
arch=('i686' 'x86_64' 'armv6h')
url="http://www.openfst.org/"
license=('APACHE')
depends=('gcc-libs' 'glibc')
options=(!libtool)
source=("http://openfst.cs.nyu.edu/twiki/pub/FST/FstDownload/${pkgname}-${pkgver}.tar.gz")
md5sums=('ca8f1730b9b9b281e515611fa9ae23c0')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
#export CXX=arm-linux-gnueabi-g++
#export CC=arm-linux-gnueabi-gcc
# Options according to http://openfst.cs.nyu.edu/twiki/bin/view/FST/ReadMe
OPTIONS="--prefix=/usr --disable-dependency-tracking"
OPTIONS+=" --enable-bin" # Enable fst::script and command-line binaries; Default: yes
OPTIONS+=" --enable-compact-fsts" # Enable all CompactFst classes; Default: no
OPTIONS+=" --enable-const-fsts" # Enable all ConstFst classes; Default: no
OPTIONS+=" --enable-far" # Enable FAR (FST Archive) extension; Default: no
OPTIONS+=" --enable-linear-fsts" # Enable Linear{Tagger,Classifier}Fst extensions; Default: no
OPTIONS+=" --enable-lookahead-fsts" # Enable LookAheadFst classes; Default: no
OPTIONS+=" --enable-pdt" # Experimental push-down transducer extensions; Default: no
OPTIONS+=" --host=arm-linux-gnueabi" # Experimental push-down transducer extensions; Default: no
OPTIONS+=" --build=x86_64" # Experimental push-down transducer extensions; Default: no
LIBS="-ldl" ./configure $OPTIONS
make
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
(basically adding the host and build option)
However, I get an error in the output:
==> Making package: openfst 1.4.1-1 (Sun Jan 11 16:13:22 CET 2015)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found openfst-1.4.1.tar.gz
==> Validating source files with md5sums...
openfst-1.4.1.tar.gz ... Passed
==> Extracting sources...
-> Extracting openfst-1.4.1.tar.gz with bsdtar
==> 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 arm-linux-gnueabi-strip... arm-linux-gnueabi-strip
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for arm-linux-gnueabi-g++... arm-linux-gnueabi-g++
checking whether the C++ compiler works... no
configure: error: in `/home/tom/openfst-1.4.1/src/openfst-1.4.1':
configure: error: C++ compiler cannot create executables
See `config.log' for more details
==> ERROR: A failure occurred in build().
Aborting...
the error being that the C++ compiler cannot create excecutables makes sense since they are not meant to be excecuted on x86_64 but for armv6h (cross compilation). I have checked with arm-linux-gnueabi-g++ and its excecutables I can run on my pi so this should be ok. I am guessing that I am either missing an option to disable the compiler check, or I should change the configure script and remove this check, but I cannot figure out how to do either...
//edit: I'm not sure this topic is in the right place btw, maybe it should be in scripting...
Last edited by tomzooi (2015-01-11 18:23:35)

that seems to do the trick, I'm not gonna test it since my pi just finished compiling it locally (which took 12+hours or so), but the compile seems to work since they are not excecutable on 64 bit, so pkgbuild for raspi cross compilation using makepkg -s:
# Maintainer: Christoph Drexler <chrdr at gmx dot at>
pkgname=openfst
pkgver=1.4.1
pkgrel=1
pkgdesc="Library for constructing, combining, optimizing, and searching weighted finite-state transducers (FSTs)"
arch=('i686' 'x86_64' 'armv6h')
url="http://www.openfst.org/"
license=('APACHE')
depends=('gcc-libs' 'glibc')
options=(!libtool !buildflags)
source=("http://openfst.cs.nyu.edu/twiki/pub/FST/FstDownload/${pkgname}-${pkgver}.tar.gz")
md5sums=('ca8f1730b9b9b281e515611fa9ae23c0')
build() {
cd ${srcdir}/${pkgname}-${pkgver}
# Options according to http://openfst.cs.nyu.edu/twiki/bin/view/FST/ReadMe
OPTIONS="--prefix=/usr --disable-dependency-tracking"
OPTIONS+=" --enable-bin" # Enable fst::script and command-line binaries; Default: yes
OPTIONS+=" --enable-compact-fsts" # Enable all CompactFst classes; Default: no
OPTIONS+=" --enable-const-fsts" # Enable all ConstFst classes; Default: no
OPTIONS+=" --enable-far" # Enable FAR (FST Archive) extension; Default: no
OPTIONS+=" --enable-linear-fsts" # Enable Linear{Tagger,Classifier}Fst extensions; Default: no
OPTIONS+=" --enable-lookahead-fsts" # Enable LookAheadFst classes; Default: no
OPTIONS+=" --enable-pdt" # Experimental push-down transducer extensions; Default: no
OPTIONS+=" --host=arm-linux-gnueabi" # Experimental push-down transducer extensions; Default: no
OPTIONS+=" --build=x86_64" # Experimental push-down transducer extensions; Default: no
LIBS="-ldl" ./configure $OPTIONS
make
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make DESTDIR=${pkgdir} install
to get some stuff which I think I can ignore:
strip: Unable to recognise the format of the input file `./usr/bin/fstprint'
strip: Unable to recognise the format of the input file `./usr/bin/farprintstrings'
strip: Unable to recognise the format of the input file `./usr/bin/fstmap'
strip: Unable to recognise the format of the input file `./usr/bin/fstsynchronize'
strip: Unable to recognise the format of the input file `./usr/bin/fstdraw'
strip: Unable to recognise the format of the input file `./usr/bin/fstepsnormalize'
strip: Unable to recognise the format of the input file `./usr/bin/fstdisambiguate'
strip: Unable to recognise the format of the input file `./usr/bin/fstunion'
strip: Unable to recognise the format of the input file `./usr/bin/pdtexpand'
strip: Unable to recognise the format of the input file `./usr/bin/fstminimize'
strip: Unable to recognise the format of the input file `./usr/bin/fsttopsort'
strip: Unable to recognise the format of the input file `./usr/bin/pdtreplace'
strip: Unable to recognise the format of the input file `./usr/bin/fstreverse'
strip: Unable to recognise the format of the input file `./usr/bin/fstsymbols'
strip: Unable to recognise the format of the input file `./usr/bin/farequal'
strip: Unable to recognise the format of the input file `./usr/bin/fstequal'
strip: Unable to recognise the format of the input file `./usr/bin/fstcompile'
strip: Unable to recognise the format of the input file `./usr/bin/fstshortestpath'
strip: Unable to recognise the format of the input file `./usr/bin/farinfo'
strip: Unable to recognise the format of the input file `./usr/bin/fstrandgen'
strip: Unable to recognise the format of the input file `./usr/bin/fstshortestdistance'
strip: Unable to recognise the format of the input file `./usr/bin/fstarcsort'
strip: Unable to recognise the format of the input file `./usr/bin/fstrmepsilon'
strip: Unable to recognise the format of the input file `./usr/bin/fstconvert'
strip: Unable to recognise the format of the input file `./usr/bin/fstreplace'
strip: Unable to recognise the format of the input file `./usr/bin/farcompilestrings'
strip: Unable to recognise the format of the input file `./usr/bin/fstencode'
strip: Unable to recognise the format of the input file `./usr/bin/fstpush'
strip: Unable to recognise the format of the input file `./usr/bin/pdtshortestpath'
strip: Unable to recognise the format of the input file `./usr/bin/fstinfo'
strip: Unable to recognise the format of the input file `./usr/bin/fstrelabel'
strip: Unable to recognise the format of the input file `./usr/bin/fstinvert'
strip: Unable to recognise the format of the input file `./usr/bin/fstconcat'
strip: Unable to recognise the format of the input file `./usr/bin/fstintersect'
strip: Unable to recognise the format of the input file `./usr/bin/pdtreverse'
strip: Unable to recognise the format of the input file `./usr/bin/fstclosure'
strip: Unable to recognise the format of the input file `./usr/bin/fstdeterminize'
strip: Unable to recognise the format of the input file `./usr/bin/fstcompose'
strip: Unable to recognise the format of the input file `./usr/bin/fstlinear'
strip: Unable to recognise the format of the input file `./usr/bin/pdtcompose'
strip: Unable to recognise the format of the input file `./usr/bin/farcreate'
strip: Unable to recognise the format of the input file `./usr/bin/fstdifference'
strip: Unable to recognise the format of the input file `./usr/bin/fstloglinearapply'
strip: Unable to recognise the format of the input file `./usr/bin/fstprune'
strip: Unable to recognise the format of the input file `./usr/bin/pdtinfo'
strip: Unable to recognise the format of the input file `./usr/bin/fstproject'
strip: Unable to recognise the format of the input file `./usr/bin/farextract'
strip: Unable to recognise the format of the input file `./usr/bin/fstequivalent'
strip: Unable to recognise the format of the input file `./usr/bin/fstconnect'
strip: Unable to recognise the format of the input file `./usr/bin/fstreweight'
strip: Unable to recognise the format of the input file `./usr/lib/libfst.so.3.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact8_acceptor-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact8_string-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstfar.so.1.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/const16-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact8_weighted_string-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/arc_lookahead-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/const64-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstlinearscript.so.1.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact16_string-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact16_unweighted-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstlookahead.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/linear_classifier-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/linear_tagger-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact16_acceptor-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstcompact.so.1.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/olabel_lookahead-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/const8-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact16_weighted_string-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact16_unweighted_acceptor-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact64_string-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstconst.so.1.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/ilabel_lookahead-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact64_unweighted-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact64_weighted_string-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstfarscript.so.1.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact8_unweighted_acceptor-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/libfstpdtscript.so.1.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact8_unweighted-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact64_unweighted_acceptor-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/fst/compact64_acceptor-fst.so.0.0.0'
strip: Unable to recognise the format of the input file `./usr/lib/libfstscript.so.1.0.0'
I will check soon I hope , for now will mark it as solved.

Similar Messages

  • [SOLVED] Krusader compilation via abs error

    I tried to compile Krusader using PKGBUILD from abs. I have base-devel installed, but I got in the end error:
    Linking CXX static library ../../lib/libPanel.a
    [ 76%] Built target Panel
    make: *** [all] Error 2
    ==> ERROR: A failure occurred in build().
    Aborting...
    Application is compiled via Cmake. Ive made litle research but couldn't find solution. Sorry for so few info but I don't really know what would you like more to be able to help, so please just let me know so I could deliver more information.
    Thanks for any help!
    Last edited by Eithrial (2012-06-25 17:05:10)

    Eithrial wrote:I tried to compile Krusader using PKGBUILD from abs. I have base-devel installed, but I got in the end error.....
    I tried your compilation from abs on my system and got your same build failure.  I always build with the "--log" option to makepkg and in a case like this open the build log file and search for the error.  There are lots of warnings about things like "unused parameter" "ignoring return value" and such.  Find the first error.  In your case I searched for the word "error" and came to a line with "error: ‘make_pair’ was not declared in this scope". 
    So enter that error into a google search (krusader error: ‘make_pair’ was not declared in this scope) and near the top of the list is a link to an Archlinux bug report page for the krusader package, https://bugs.archlinux.org/task/29429
    There you find a Comment by Karol (Kudlaty) - Tuesday, 17 April 2012, 16:00 GMT
    ok, compiling error fixed by changing:
    make_pair => std::make_pair
    There's your fix
    The file with the error, from the build log, was src/krusader-2.4.0-beta1/krusader/UserAction/tstring.h (of course open that file and see where make_pair is used).  The two invocations of make_pair need to become std::make_pair, so the fixed build function in our PKGBUILD becomes
    build() {
    cd "${srcdir}"
    sed -i 's/make_pair/std::make_pair/' krusader-2.4.0-beta1/krusader/UserAction/tstring.h
    mkdir build
    cd build
    cmake ../${pkgname}-${_pkgver} \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr
    make
    With the addition of that one sed line to the pkgbuild the krusader package now builds ok.  Always run namcap on your built package: in this case namcap tells us that we got all of the dependencies right and the package looks ok.

  • [Solved] Cannot compile, data dump error (Perl)

    I'm not a developer, so this may be something simple. I'm trying to get a package to compile and I get this error:
    autoreconf: Entering directory `.'
    autoreconf: configure.in: not using Gettext
    autoreconf: running: aclocal --force
    Perl API version v5.14.0 of Data::Dumper does not match v5.16.0 at /usr/share/perl5/core_perl/XSLoader.pm line 92.
    Compilation failed in require at /usr/share/autoconf/Autom4te/C4che.pm line 33.
    BEGIN failed--compilation aborted at /usr/share/autoconf/Autom4te/C4che.pm line 33.
    Compilation failed in require at /usr/bin/autom4te line 37.
    BEGIN failed--compilation aborted at /usr/bin/autom4te line 37.
    aclocal: error: /usr/bin/autom4te failed with exit status: 255
    autoreconf: aclocal failed with exit status: 255
    ==> ERROR: A failure occurred in build().
    Aborting...
    I tried uninstalling and re-installing Perl as I imagine this was caused by upgrading pacman.
    Any ideas?
    **UPDATE**
    Removed the Data Dumper module, works fine now. I don't remember installing it in the first place, oh well
    Last edited by jskier (2012-06-04 23:23:06)

    ravicious wrote:How did you manage to remove the data dumper module? Also you've got it installed, because the perl package includes it.
    I also had one in AUR installed for some reason (this is the one I removed):
    https://aur.archlinux.org/packages.php?ID=59760

  • [Solved]Mutt compile and flag error

    I had a working setup and decided to patch it with the sidebar patch. The compilation screwed up the flags for some reason and when launching mutt I get this error:
    Error in /home/hiro/.mutt/muttrc, line 7: imap_user: unknown variable
    Error in /home/hiro/.mutt/muttrc, line 8: imap_pass: unknown variable
    Error in /home/hiro/.mutt/muttrc, line 9: smtp_url: unknown variable
    Error in /home/hiro/.mutt/muttrc, line 42: imap_passive: unknown variable
    Error in /home/hiro/.mutt/muttrc, line 43: imap_keepalive: unknown variable
    Error in /home/hiro/.mutt/muttrc, line 71: ssl_force_tls: unknown variable
    Error in /home/hiro/.mutt/muttrc, line 72: ssl_starttls: unknown variable
    source: errors in /home/hiro/.mutt/muttrc
    Press any key to continue...
    I reinstalled mutt being unable to determine the problem. The problem persists.
    The article here describes the same issue and identifies it as the install failing to activate the compile options. The solution presented is to change the flag options before compiling but this person is on Gentoo and I don't see why $ pacman -S mutt won't suffice.
    As expected $ mutt -v reads:
    Mutt 1.5.21 (2010-09-15)
    Copyright (C) 1996-2009 Michael R. Elkins and others.
    Mutt comes with ABSOLUTELY NO WARRANTY; for details type `mutt -vv'.
    Mutt is free software, and you are welcome to redistribute it
    under certain conditions; type `mutt -vv' for details.
    System: Linux 3.8.6-1-ARCH (x86_64)
    ncurses: ncurses 5.9.20110404 (compiled with 5.9)
    libidn: 1.26 (compiled with 1.26)
    Compile options:
    -DOMAIN
    -DEBUG
    -HOMESPOOL -USE_SETGID +USE_DOTLOCK -DL_STANDALONE +USE_FCNTL -USE_FLOCK
    -USE_POP -USE_IMAP -USE_SMTP
    -USE_SSL_OPENSSL -USE_SSL_GNUTLS -USE_SASL -USE_GSS -HAVE_GETADDRINFO
    +HAVE_REGCOMP -USE_GNU_REGEX
    +HAVE_COLOR +HAVE_START_COLOR +HAVE_TYPEAHEAD +HAVE_BKGDSET
    +HAVE_CURS_SET +HAVE_META +HAVE_RESIZETERM
    +CRYPT_BACKEND_CLASSIC_PGP +CRYPT_BACKEND_CLASSIC_SMIME -CRYPT_BACKEND_GPGME
    -EXACT_ADDRESS -SUN_ATTACHMENT
    +ENABLE_NLS -LOCALES_HACK +HAVE_WC_FUNCS +HAVE_LANGINFO_CODESET +HAVE_LANGINFO_YESEXPR
    +HAVE_ICONV -ICONV_NONTRANS +HAVE_LIBIDN +HAVE_GETSID -USE_HCACHE
    ISPELL="/usr/bin/ispell"
    SENDMAIL="/usr/sbin/sendmail"
    MAILPATH="/var/mail"
    PKGDATADIR="/usr/local/share/mutt"
    SYSCONFDIR="/usr/local/etc"
    EXECSHELL="/bin/sh"
    -MIXMASTER
    To contact the developers, please mail to <[email protected]>.
    To report a bug, please visit http://bugs.mutt.org/.
    patch-1.5.21.sidebar.20130219.txt
    So options like IMAP aren't activated for some reason even after pulling the mutt package from the official repositories. The sidebar patch is listed above so that is fishy. I don't know how to unpatch and I am thinking that may be the next step to try if I can figure that out.
    I also have a full system backup so another route may be to replace the necessary directories and files with the backups. Any ideas? I appreciate the support.
    Last edited by Divinorum (2013-04-16 11:13:28)

    The patch from the AUR did not yield any result so I followed the wiki entry on mutt to the patch provided on Lunar Linux. I had removed the directory with the patched compilation before discovering this error. Like the previous patch from the AUR I could not get it to work so I went about reinstalling mutt and ran into this problem.
    Perhaps I should just hack it by ingnoring the patch and having a custom command point to the vanilla repository install. As of now $ mutt  still brings up the patch version of mutt but I can't find where it is and how to remove it.
    Much appreciated on the recommendation of uber-mutt. So in ,/configure case how does one normally go about removing such an install? I can not locate any mutt or patch name on my system by the name of sidebar.
    Last edited by Divinorum (2013-04-16 00:15:25)

  • [SOLVED] mingw32 cross compile won't link with static libraries

    Hi all,
    I'm trying to cross compile an app I have written to i486-mingw32.  I'm running Arch 64-bit (under which it compiles fine natively), and I have installed the mingw32 binaries along with mingw32-boost-static from AUR.
    All seems well, but unfortunately when I cross compile my code libtool refuses to link to the static Boost libraries:
    *** Warning: Trying to link with static lib archive /usr/i486-mingw32/lib/libboost_filesystem-mt-s.a.
    *** I have the capability to make that library automatically link in when
    *** you link to this library. But I can only do this if you have a
    *** shared version of the library, which you do not appear to have
    *** because the file extensions .a of this argument makes me believe
    *** that it is just a static archive that I should not use here.
    This then leads to undefined references as the library is not linked in.  But as I *want* the static version of the library, does anyone know how to tell libtool to accept the .a file and link it?
    Last edited by Malvineous (2011-05-02 02:44:48)

    Just to follow up on this, I discovered the problem.  It turns out libtool was doing the correct thing, and refusing to link the static library in with the shared one (otherwise later this could result in something being defined multiple times.)  The undefined references were unrelated to the error above, and the code that was causing them (in a different Boost header file) could be easily #defined out.
    When the time came to link the actual executables, libtool did include all the necessary libraries and everything worked as it should!

  • How do I solve 'error compiling movie. unknown error'?

    how do I solve 'error compiling movie. unknown error' when trying to export? I think a file is damaged or conflicting but how do I know which one?
    Also, how did this happen in the first place and how can I avoid it in the future?
    Thank you very much!!

    BSHF
    The answers are in the details which are lacking in your report.
    What version of Premiere Elements are you using and on what computer operating system is it running?
    Please check out the Adobe troubleshooting documents for this issue
    Error "Error compiling movie" during render or export
    Troubleshoot damaged projects | Adobe Premiere Elements
    After you review those documents and determine if either suggested troubleshooting scheme will work for you,
    then we can discuss the immediate and future actions.
    Looking forward to your follow up. Depending on your reply, next posts may require of you details
    a. project settings
    b. properties of your source media
    c. edits and inspection of Timeline content with the Timeline expanded with the -+ slider above the Timeline.
    More later.
    ATR

  • [SOLVED] C Compiler Cannot Create Executables

    I am aware that there is already a thread on this here however it failed to solve my issue. I have installed the multilib-devel packages as the referenced post suggested, but I still receive the following error message when attempting to compile wine-mono package either with makepkg or with yaourt.
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-w64-mingw32
    checking target system type... x86_64-w64-mingw32
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for x86_64-w64-mingw32-strip... no
    checking for strip... strip
    configure: WARNING: using cross tools not prefixed with host triplet
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking how to create a ustar tar archive... gnutar
    checking whether to enable maintainer-specific portions of Makefiles... no
    checking whether ln -s works... yes
    checking host platform characteristics... ok
    checking for x86_64-w64-mingw32-gcc... no
    checking for gcc... gcc
    checking for x86_64-w64-mingw32-gcc... gcc
    checking whether the C compiler works... no
    configure: error: in `/tmp/yaourt-tmp-sensei/aur-wine-mono/src/wine-mono-0.0.4/build-cross-x86_64':
    configure: error: C compiler cannot create executables
    See `config.log' for more details
    My 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 mono configure 2.11.1, which was
    generated by GNU Autoconf 2.69. Invocation command line was
    $ ../mono/configure --prefix=/home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/build-cross-x86_64-install --build=x86_64-unknown-linux-gnu --target=x86_64-w64-mingw32 --host=x86_64-w64-mingw32 --with-tls=none --disable-mcs-build --enable-win32-dllmain=yes --with-libgc-threads=win32 PKG_CONFIG=false mono_cv_clang=no
    ## Platform. ##
    hostname = archmage
    uname -m = x86_64
    uname -r = 3.3.8-1-ARCH
    uname -s = Linux
    uname -v = #1 SMP PREEMPT Tue Jun 5 15:20:32 CEST 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/core_perl
    PATH: /home/sensei/Documents/Scripts
    ## Core tests. ##
    configure:2970: checking build system type
    configure:2984: result: x86_64-unknown-linux-gnu
    configure:3004: checking host system type
    configure:3017: result: x86_64-w64-mingw32
    configure:3037: checking target system type
    configure:3050: result: x86_64-w64-mingw32
    configure:3099: checking for a BSD-compatible install
    configure:3167: result: /usr/bin/install -c
    configure:3178: checking whether build environment is sane
    configure:3233: result: yes
    configure:3292: checking for x86_64-w64-mingw32-strip
    configure:3322: result: no
    configure:3332: checking for strip
    configure:3348: found /usr/bin/strip
    configure:3359: result: strip
    configure:3371: WARNING: using cross tools not prefixed with host triplet
    configure:3384: checking for a thread-safe mkdir -p
    configure:3423: result: /bin/mkdir -p
    configure:3430: checking for gawk
    configure:3446: found /usr/bin/gawk
    configure:3457: result: gawk
    configure:3468: checking whether make sets $(MAKE)
    configure:3490: result: yes
    configure:3565: checking how to create a ustar tar archive
    configure:3578: tar --version
    tar (GNU tar) 1.26
    Copyright (C) 2011 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    Written by John Gilmore and Jay Fenlason.
    configure:3581: $? = 0
    configure:3621: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
    configure:3624: $? = 0
    configure:3628: tar -xf - <conftest.tar
    configure:3631: $? = 0
    configure:3644: result: gnutar
    configure:3654: checking whether to enable maintainer-specific portions of Makefiles
    configure:3663: result: no
    configure:3680: checking whether ln -s works
    configure:3684: result: yes
    configure:3737: checking host platform characteristics
    configure:4029: result: ok
    configure:4090: checking for x86_64-w64-mingw32-gcc
    configure:4120: result: no
    configure:4130: checking for gcc
    configure:4146: found /usr/bin/gcc
    configure:4157: result: gcc
    configure:4187: checking for x86_64-w64-mingw32-gcc
    configure:4214: result: gcc
    configure:4483: checking for C compiler version
    configure:4492: gcc --version >&5
    gcc (GCC) 4.7.0 20120505 (prerelease)
    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:4503: $? = 0
    configure:4492: gcc -v >&5
    Using built-in specs.
    COLLECT_GCC=gcc
    COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-unknown-linux-gnu/4.7.0/lto-wrapper
    Target: x86_64-unknown-linux-gnu
    Configured with: /build/src/gcc-4.7-20120505/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 --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.0 20120505 (prerelease) (GCC)
    configure:4503: $? = 0
    configure:4492: gcc -V >&5
    gcc: error: unrecognized command line option '-V'
    gcc: fatal error: no input files
    compilation terminated.
    configure:4503: $? = 1
    configure:4492: gcc -qversion >&5
    gcc: error: unrecognized command line option '-qversion'
    gcc: fatal error: no input files
    compilation terminated.
    configure:4503: $? = 1
    configure:4523: checking whether the C compiler works
    configure:4545: gcc -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2 -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024 -DGC_NOT_DLL -Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -lmswsock -lws2_32 -lole32 -loleaut32 -lpsapi -lversion -ladvapi32 -lwinmm -lkernel32 conftest.c >&5
    /usr/bin/ld: cannot find -lmswsock
    /usr/bin/ld: cannot find -lws2_32
    /usr/bin/ld: cannot find -lole32
    /usr/bin/ld: cannot find -loleaut32
    /usr/bin/ld: cannot find -lpsapi
    /usr/bin/ld: cannot find -lversion
    /usr/bin/ld: cannot find -ladvapi32
    /usr/bin/ld: cannot find -lwinmm
    /usr/bin/ld: cannot find -lkernel32
    collect2: error: ld returned 1 exit status
    configure:4549: $? = 1
    configure:4587: result: no
    configure: failed program was:
    | /* confdefs.h */
    | #define PACKAGE_NAME "mono"
    | #define PACKAGE_TARNAME "mono"
    | #define PACKAGE_VERSION "2.11.1"
    | #define PACKAGE_STRING "mono 2.11.1"
    | #define PACKAGE_BUGREPORT "http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono"
    | #define PACKAGE_URL ""
    | #define PACKAGE "mono"
    | #define VERSION "2.11.1"
    | #define HOST_WIN32 1
    | #define DISABLE_PORTABILITY 1
    | #define PLATFORM_NO_SYMLINKS 1
    | #define TARGET_WIN32 1
    | #define MINGW_CROSS_COMPILE 1
    | /* end confdefs.h. */
    |
    | int
    | main ()
    | {
    |
    | ;
    | return 0;
    | }
    configure:4592: error: in `/home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/build-cross-x86_64':
    configure:4594: 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_CCASFLAGS_set=
    ac_cv_env_CCASFLAGS_value=
    ac_cv_env_CCAS_set=
    ac_cv_env_CCAS_value=
    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=x86-64 -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_CXXCPP_set=
    ac_cv_env_CXXCPP_value=
    ac_cv_env_CXXFLAGS_set=set
    ac_cv_env_CXXFLAGS_value='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
    ac_cv_env_CXX_set=
    ac_cv_env_CXX_value=
    ac_cv_env_LDFLAGS_set=set
    ac_cv_env_LDFLAGS_value=-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu
    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=set
    ac_cv_env_build_alias_value=x86_64-unknown-linux-gnu
    ac_cv_env_host_alias_set=set
    ac_cv_env_host_alias_value=x86_64-w64-mingw32
    ac_cv_env_target_alias_set=set
    ac_cv_env_target_alias_value=x86_64-w64-mingw32
    ac_cv_host=x86_64-w64-mingw32
    ac_cv_path_install='/usr/bin/install -c'
    ac_cv_path_mkdir=/bin/mkdir
    ac_cv_prog_AWK=gawk
    ac_cv_prog_CC=gcc
    ac_cv_prog_ac_ct_CC=gcc
    ac_cv_prog_ac_ct_STRIP=strip
    ac_cv_prog_make_make_set=yes
    ac_cv_target=x86_64-w64-mingw32
    am_cv_prog_tar_ustar=gnutar
    mono_cv_clang=no
    ## Output variables. ##
    ACLOCAL='${SHELL} /home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/mono/missing --run aclocal-1.12'
    ALPHA_FALSE=''
    ALPHA_TRUE=''
    AMD64_FALSE=''
    AMD64_TRUE=''
    AMDEPBACKSLASH=''
    AMDEP_FALSE=''
    AMDEP_TRUE=''
    AMTAR='$${TAR-tar}'
    API_VER='2.0'
    AR=''
    ARM_FALSE=''
    ARM_TRUE=''
    AS=''
    AUTOCONF='${SHELL} /home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/mono/missing --run autoconf'
    AUTOHEADER='${SHELL} /home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/mono/missing --run autoheader'
    AUTOMAKE='${SHELL} /home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/mono/missing --run automake-1.12'
    AWK='gawk'
    BOEHM_DEFINES=''
    BUILD_EXEEXT=''
    BUILD_GLIB_CFLAGS=''
    BUILD_GLIB_LIBS=''
    BUILD_MCS_FALSE=''
    BUILD_MCS_TRUE=''
    CC='gcc'
    CCAS=''
    CCASDEPMODE=''
    CCASFLAGS=''
    CCDEPMODE=''
    CC_FOR_BUILD=''
    CFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
    CFLAGS_FOR_BUILD=''
    CPP=''
    CPPFLAGS=' -DWINVER=0x0500 -D_WIN32_WINNT=0x0500 -D_WIN32_IE=0x0501 -D_UNICODE -DUNICODE -DWIN32_THREADS -DFD_SETSIZE=1024 -DGC_NOT_DLL'
    CROSS_COMPILING_FALSE=''
    CROSS_COMPILING_TRUE=''
    CXX=''
    CXXCPP=''
    CXXDEPMODE=''
    CXXFLAGS='-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2'
    CYGPATH_W='echo'
    DEFS=''
    DEPDIR=''
    DISABLE_EXECUTABLES_FALSE=''
    DISABLE_EXECUTABLES_TRUE=''
    DISABLE_JIT_FALSE=''
    DISABLE_JIT_TRUE=''
    DISABLE_PROFILER_FALSE=''
    DISABLE_PROFILER_TRUE=''
    DISABLE_SHARED_HANDLES=''
    DLLTOOL=''
    DOLT_BASH=''
    DSYMUTIL=''
    DTRACE=''
    DTRACEFLAGS=''
    DTRACE_G_REQUIRED_FALSE=''
    DTRACE_G_REQUIRED_TRUE=''
    DUMPBIN=''
    ECHO_C=''
    ECHO_N='-n'
    ECHO_T=''
    EGREP=''
    ENABLE_DTRACE_FALSE=''
    ENABLE_DTRACE_TRUE=''
    ENABLE_LLVM_FALSE=''
    ENABLE_LLVM_TRUE=''
    ENABLE_NUNIT_TESTS_FALSE=''
    ENABLE_NUNIT_TESTS_TRUE=''
    EXEEXT=''
    FGREP=''
    GETTEXT_MACRO_VERSION=''
    GLIB_CFLAGS=''
    GLIB_LIBS=''
    GMODULE_CFLAGS=''
    GMODULE_LIBS=''
    GMSGFMT=''
    GMSGFMT_015=''
    GREP=''
    HAVE_MSGFMT=''
    HAVE_OPROFILE_FALSE=''
    HAVE_OPROFILE_TRUE=''
    HAVE_ZLIB_FALSE=''
    HAVE_ZLIB_TRUE=''
    HOST_CC='gcc'
    HOST_WIN32_FALSE='#'
    HOST_WIN32_TRUE=''
    HPPA_FALSE=''
    HPPA_TRUE=''
    IA64_FALSE=''
    IA64_TRUE=''
    INCLUDED_LIBGC_FALSE=''
    INCLUDED_LIBGC_TRUE=''
    INSTALL_4_0_FALSE=''
    INSTALL_4_0_TRUE=''
    INSTALL_DATA='${INSTALL} -m 644'
    INSTALL_MOBILE_FALSE=''
    INSTALL_MOBILE_TRUE=''
    INSTALL_MONODROID_FALSE=''
    INSTALL_MONODROID_TRUE=''
    INSTALL_MONOTOUCH_FALSE=''
    INSTALL_MONOTOUCH_TRUE=''
    INSTALL_PROGRAM='${INSTALL}'
    INSTALL_SCRIPT='${INSTALL}'
    INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
    INTERP_SUPPORTED_FALSE=''
    INTERP_SUPPORTED_TRUE=''
    INTL=''
    JIT_SUPPORTED_FALSE=''
    JIT_SUPPORTED_TRUE=''
    LD=''
    LDFLAGS='-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu -lmswsock -lws2_32 -lole32 -loleaut32 -lpsapi -lversion -ladvapi32 -lwinmm -lkernel32'
    LIBC=''
    LIBGC_CPPFLAGS=''
    LIBGC_LIBS=''
    LIBGC_STATIC_LIBS=''
    LIBICONV=''
    LIBMONO_LA=''
    LIBOBJS=''
    LIBS=''
    LIBTOOL=''
    LIPO=''
    LLVM_CFLAGS=''
    LLVM_CONFIG=''
    LLVM_CXXFLAGS=''
    LLVM_LDFLAGS=''
    LLVM_LIBS=''
    LN_S='cp'
    LOADED_LLVM_FALSE=''
    LOADED_LLVM_TRUE=''
    LTCOMPILE=''
    LTCXXCOMPILE=''
    LTLIBICONV=''
    LTLIBOBJS=''
    M68K_FALSE=''
    M68K_TRUE=''
    MAINT='#'
    MAINTAINER_MODE_FALSE=''
    MAINTAINER_MODE_TRUE='#'
    MAKEINFO='${SHELL} /home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/mono/missing --run makeinfo'
    MANIFEST_TOOL=''
    MIPS_FALSE=''
    MIPS_GCC_FALSE=''
    MIPS_GCC_TRUE=''
    MIPS_SGI_FALSE=''
    MIPS_SGI_TRUE=''
    MIPS_TRUE=''
    MKDIR_P='/bin/mkdir -p'
    MONO_DEBUGGER_SUPPORTED_FALSE=''
    MONO_DEBUGGER_SUPPORTED_TRUE=''
    MONO_DL_NEED_USCORE=''
    MONO_NACL_ALIGN_MASK_OFF=''
    MOONLIGHT_BOEHM_FALSE=''
    MOONLIGHT_BOEHM_TRUE=''
    MOONLIGHT_DEFINES=''
    MOONLIGHT_FALSE=''
    MOONLIGHT_SGEN_FALSE=''
    MOONLIGHT_SGEN_TRUE=''
    MOONLIGHT_TRUE=''
    MSGFMT=''
    MSGFMT_015=''
    MSGMERGE=''
    NACL_CODEGEN_FALSE=''
    NACL_CODEGEN_TRUE=''
    NM=''
    NMEDIT=''
    NO_VERSION_SCRIPT_FALSE=''
    NO_VERSION_SCRIPT_TRUE=''
    OBJDUMP=''
    OBJEXT=''
    ONLY_MOONLIGHT_FALSE=''
    ONLY_MOONLIGHT_TRUE=''
    OPROFILE_CFLAGS=''
    OPROFILE_LIBS=''
    OTOOL64=''
    OTOOL=''
    PACKAGE='mono'
    PACKAGE_BUGREPORT='http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono'
    PACKAGE_NAME='mono'
    PACKAGE_STRING='mono 2.11.1'
    PACKAGE_TARNAME='mono'
    PACKAGE_URL=''
    PACKAGE_VERSION='2.11.1'
    PATH_SEPARATOR=':'
    PKG_CONFIG='false'
    PLATFORM_ANDROID_FALSE=''
    PLATFORM_ANDROID_TRUE='#'
    PLATFORM_DARWIN_FALSE=''
    PLATFORM_DARWIN_TRUE='#'
    PLATFORM_LINUX_FALSE=''
    PLATFORM_LINUX_TRUE='#'
    PLATFORM_SIGPOSIX_FALSE=''
    PLATFORM_SIGPOSIX_TRUE='#'
    POWERPC64_FALSE=''
    POWERPC64_TRUE=''
    POWERPC_FALSE=''
    POWERPC_TRUE=''
    RANLIB=''
    S390_FALSE=''
    S390_TRUE=''
    S390x_FALSE=''
    S390x_TRUE=''
    SED=''
    SET_MAKE=''
    SGEN_DEFINES=''
    SHARED_MONO_FALSE=''
    SHARED_MONO_TRUE=''
    SHELL='/bin/sh'
    SPARC64_FALSE=''
    SPARC64_TRUE=''
    SPARC_FALSE=''
    SPARC_TRUE=''
    SQLITE3=''
    SQLITE=''
    STATIC_MONO_FALSE=''
    STATIC_MONO_TRUE=''
    STRIP='strip'
    SUPPORT_BOEHM_FALSE=''
    SUPPORT_BOEHM_TRUE=''
    SUPPORT_SGEN_FALSE=''
    SUPPORT_SGEN_TRUE=''
    TARGET_WIN32_FALSE='#'
    TARGET_WIN32_TRUE=''
    USE_BATCH_FILES_FALSE=''
    USE_BATCH_FILES_TRUE=''
    USE_JIT_FALSE=''
    USE_JIT_TRUE=''
    USE_NLS=''
    VERSION='2.11.1'
    X11=''
    X86_FALSE=''
    X86_TRUE=''
    XATTR_LIB=''
    XGETTEXT=''
    XGETTEXT_015=''
    XGETTEXT_EXTRA_OPTIONS=''
    XMKMF=''
    ac_ct_AR=''
    ac_ct_CC='gcc'
    ac_ct_CXX=''
    ac_ct_DUMPBIN=''
    am__EXEEXT_FALSE=''
    am__EXEEXT_TRUE=''
    am__fastdepCCAS_FALSE=''
    am__fastdepCCAS_TRUE=''
    am__fastdepCC_FALSE=''
    am__fastdepCC_TRUE=''
    am__fastdepCXX_FALSE=''
    am__fastdepCXX_TRUE=''
    am__include=''
    am__isrc=' -I$(srcdir)'
    am__leading_dot='.'
    am__nodep=''
    am__quote=''
    am__tar='tar --format=ustar -chf - "$$tardir"'
    am__untar='tar -xf -'
    arch_target=''
    bindir='${exec_prefix}/bin'
    build='x86_64-unknown-linux-gnu'
    build_alias='x86_64-unknown-linux-gnu'
    build_cpu='x86_64'
    build_os='linux-gnu'
    build_vendor='unknown'
    datadir='${datarootdir}'
    datarootdir='${prefix}/share'
    docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
    docs_dir=''
    dvidir='${docdir}'
    exec_prefix='NONE'
    export_ldflags=''
    host='x86_64-w64-mingw32'
    host_alias='x86_64-w64-mingw32'
    host_cpu='x86_64'
    host_os='mingw32'
    host_vendor='w64'
    htmldir='${docdir}'
    ikvm_native_dir=''
    includedir='${prefix}/include'
    infodir='${datarootdir}/info'
    install_sh='${SHELL} /home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/mono/install-sh'
    libdir='${exec_prefix}/lib'
    libexecdir='${exec_prefix}/libexec'
    libgc_dir=''
    libgdiplus_loc=''
    libmono_cflags='-mno-cygwin -mms-bitfields -mwindows'
    libmono_ldflags='-mno-cygwin -mms-bitfields -mwindows'
    libsuffix=''
    localedir='${datarootdir}/locale'
    localstatedir='${prefix}/var'
    mandir='${datarootdir}/man'
    mcs_topdir=''
    mcs_topdir_from_srcdir=''
    mkdir_p=''
    mono_build_root=''
    mono_cfg_dir=''
    mono_runtime=''
    oldincludedir='/usr/include'
    pdfdir='${docdir}'
    prefix='/home/sensei/Downloads/Builds/wine-mono/src/wine-mono-0.0.4/build-cross-x86_64-install'
    program_transform_name='s&^&x86_64-w64-mingw32-&'
    psdir='${docdir}'
    reloc_libdir='lib'
    sbindir='${exec_prefix}/sbin'
    sharedstatedir='${prefix}/com'
    subdirs=''
    sysconfdir='${prefix}/etc'
    target='x86_64-w64-mingw32'
    target_alias='x86_64-w64-mingw32'
    target_cpu='x86_64'
    target_os='mingw32'
    target_vendor='w64'
    ## confdefs.h. ##
    /* confdefs.h */
    #define PACKAGE_NAME "mono"
    #define PACKAGE_TARNAME "mono"
    #define PACKAGE_VERSION "2.11.1"
    #define PACKAGE_STRING "mono 2.11.1"
    #define PACKAGE_BUGREPORT "http://bugzilla.xamarin.com/enter_bug.cgi?classification=Mono"
    #define PACKAGE_URL ""
    #define PACKAGE "mono"
    #define VERSION "2.11.1"
    #define HOST_WIN32 1
    #define DISABLE_PORTABILITY 1
    #define PLATFORM_NO_SYMLINKS 1
    #define TARGET_WIN32 1
    #define MINGW_CROSS_COMPILE 1
    configure: exit 77
    My makepkg.conf:
    # /etc/makepkg.conf
    # SOURCE ACQUISITION
    #-- The download utilities that makepkg should use to acquire sources
    # Format: 'protocol::agent'
    #DLAGENTS=('ftp::/usr/bin/wget -4 -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
    # 'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
    # 'https::/usr/bin/wget -c -t 3 --waitretry=3 --no-check-certificate -O %o %u'
    #Curl as default DLAGENT
    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/curl
    # ARCHITECTURE, COMPILE FLAGS
    CARCH="x86_64"
    CHOST="x86_64-unknown-linux-gnu"
    #-- Exclusive: will only run on x86_64
    # -march (or -mcpu) builds exclusively for an architecture
    # -mtune optimizes for an architecture, but builds for whole processor family
    CFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
    CXXFLAGS="-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -D_FORTIFY_SOURCE=2"
    LDFLAGS="-Wl,-O1,--sort-common,--as-needed,-z,relro,--hash-style=gnu"
    #-- Make Flags: change this for DistCC/SMP systems
    #MAKEFLAGS="-j2"
    I am running a x64 arch with multilib and multilib-testing enabled. This is the first time I have encountered this error. Thank you in advance for all advice and suggestions.
    Edited: added makepkg.conf
    Last edited by mynameisneo (2012-06-13 19:04:09)

    In your config.log:
    /usr/bin/ld: cannot find -lmswsock
    /usr/bin/ld: cannot find -lws2_32
    /usr/bin/ld: cannot find -lole32
    /usr/bin/ld: cannot find -loleaut32
    /usr/bin/ld: cannot find -lpsapi
    /usr/bin/ld: cannot find -lversion
    /usr/bin/ld: cannot find -ladvapi32
    /usr/bin/ld: cannot find -lwinmm
    /usr/bin/ld: cannot find -lkernel32
    Try find these files which package provides!
    Edit: maybe package 'wine' provides this but as I see these libs are in /usr/lib/wine.
    Last edited by uzsolt (2012-06-13 18:07:08)

  • [SOLVED] Cannot Compile Pacman 3.5.3

    My head is aching at the moment as I have become desperate to compile Pacman. The normal procedure ./configure then make fails with this error (Honest, I can't make out anything, it sound like a libtool problem):
    make all-recursive
    make[1]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3'
    Making all in lib/libalpm
    make[2]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/lib/libalpm'
    Making all in po
    make[3]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/lib/libalpm/po'
    make[3]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/lib/libalpm/po'
    make[3]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/lib/libalpm'
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT add.lo -MD -MP -MF .deps/add.Tpo -c -o add.lo add.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT add.lo -MD -MP -MF .deps/add.Tpo -c add.c -fPIC -DPIC -o .libs/add.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT add.lo -MD -MP -MF .deps/add.Tpo -c add.c -o add.o >/dev/null 2>&1
    mv -f .deps/add.Tpo .deps/add.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT alpm.lo -MD -MP -MF .deps/alpm.Tpo -c -o alpm.lo alpm.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT alpm.lo -MD -MP -MF .deps/alpm.Tpo -c alpm.c -fPIC -DPIC -o .libs/alpm.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT alpm.lo -MD -MP -MF .deps/alpm.Tpo -c alpm.c -o alpm.o >/dev/null 2>&1
    mv -f .deps/alpm.Tpo .deps/alpm.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT alpm_list.lo -MD -MP -MF .deps/alpm_list.Tpo -c -o alpm_list.lo alpm_list.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT alpm_list.lo -MD -MP -MF .deps/alpm_list.Tpo -c alpm_list.c -fPIC -DPIC -o .libs/alpm_list.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT alpm_list.lo -MD -MP -MF .deps/alpm_list.Tpo -c alpm_list.c -o alpm_list.o >/dev/null 2>&1
    mv -f .deps/alpm_list.Tpo .deps/alpm_list.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT backup.lo -MD -MP -MF .deps/backup.Tpo -c -o backup.lo backup.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT backup.lo -MD -MP -MF .deps/backup.Tpo -c backup.c -fPIC -DPIC -o .libs/backup.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT backup.lo -MD -MP -MF .deps/backup.Tpo -c backup.c -o backup.o >/dev/null 2>&1
    mv -f .deps/backup.Tpo .deps/backup.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT be_local.lo -MD -MP -MF .deps/be_local.Tpo -c -o be_local.lo be_local.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT be_local.lo -MD -MP -MF .deps/be_local.Tpo -c be_local.c -fPIC -DPIC -o .libs/be_local.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT be_local.lo -MD -MP -MF .deps/be_local.Tpo -c be_local.c -o be_local.o >/dev/null 2>&1
    mv -f .deps/be_local.Tpo .deps/be_local.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT be_package.lo -MD -MP -MF .deps/be_package.Tpo -c -o be_package.lo be_package.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT be_package.lo -MD -MP -MF .deps/be_package.Tpo -c be_package.c -fPIC -DPIC -o .libs/be_package.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT be_package.lo -MD -MP -MF .deps/be_package.Tpo -c be_package.c -o be_package.o >/dev/null 2>&1
    mv -f .deps/be_package.Tpo .deps/be_package.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT be_sync.lo -MD -MP -MF .deps/be_sync.Tpo -c -o be_sync.lo be_sync.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT be_sync.lo -MD -MP -MF .deps/be_sync.Tpo -c be_sync.c -fPIC -DPIC -o .libs/be_sync.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT be_sync.lo -MD -MP -MF .deps/be_sync.Tpo -c be_sync.c -o be_sync.o >/dev/null 2>&1
    mv -f .deps/be_sync.Tpo .deps/be_sync.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT conflict.lo -MD -MP -MF .deps/conflict.Tpo -c -o conflict.lo conflict.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT conflict.lo -MD -MP -MF .deps/conflict.Tpo -c conflict.c -fPIC -DPIC -o .libs/conflict.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT conflict.lo -MD -MP -MF .deps/conflict.Tpo -c conflict.c -o conflict.o >/dev/null 2>&1
    mv -f .deps/conflict.Tpo .deps/conflict.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT db.lo -MD -MP -MF .deps/db.Tpo -c -o db.lo db.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT db.lo -MD -MP -MF .deps/db.Tpo -c db.c -fPIC -DPIC -o .libs/db.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT db.lo -MD -MP -MF .deps/db.Tpo -c db.c -o db.o >/dev/null 2>&1
    mv -f .deps/db.Tpo .deps/db.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT delta.lo -MD -MP -MF .deps/delta.Tpo -c -o delta.lo delta.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT delta.lo -MD -MP -MF .deps/delta.Tpo -c delta.c -fPIC -DPIC -o .libs/delta.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT delta.lo -MD -MP -MF .deps/delta.Tpo -c delta.c -o delta.o >/dev/null 2>&1
    mv -f .deps/delta.Tpo .deps/delta.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT deps.lo -MD -MP -MF .deps/deps.Tpo -c -o deps.lo deps.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT deps.lo -MD -MP -MF .deps/deps.Tpo -c deps.c -fPIC -DPIC -o .libs/deps.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT deps.lo -MD -MP -MF .deps/deps.Tpo -c deps.c -o deps.o >/dev/null 2>&1
    mv -f .deps/deps.Tpo .deps/deps.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT diskspace.lo -MD -MP -MF .deps/diskspace.Tpo -c -o diskspace.lo diskspace.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT diskspace.lo -MD -MP -MF .deps/diskspace.Tpo -c diskspace.c -fPIC -DPIC -o .libs/diskspace.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT diskspace.lo -MD -MP -MF .deps/diskspace.Tpo -c diskspace.c -o diskspace.o >/dev/null 2>&1
    mv -f .deps/diskspace.Tpo .deps/diskspace.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT dload.lo -MD -MP -MF .deps/dload.Tpo -c -o dload.lo dload.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT dload.lo -MD -MP -MF .deps/dload.Tpo -c dload.c -fPIC -DPIC -o .libs/dload.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT dload.lo -MD -MP -MF .deps/dload.Tpo -c dload.c -o dload.o >/dev/null 2>&1
    mv -f .deps/dload.Tpo .deps/dload.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c -o error.lo error.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -fPIC -DPIC -o .libs/error.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT error.lo -MD -MP -MF .deps/error.Tpo -c error.c -o error.o >/dev/null 2>&1
    mv -f .deps/error.Tpo .deps/error.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT group.lo -MD -MP -MF .deps/group.Tpo -c -o group.lo group.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT group.lo -MD -MP -MF .deps/group.Tpo -c group.c -fPIC -DPIC -o .libs/group.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT group.lo -MD -MP -MF .deps/group.Tpo -c group.c -o group.o >/dev/null 2>&1
    mv -f .deps/group.Tpo .deps/group.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT handle.lo -MD -MP -MF .deps/handle.Tpo -c -o handle.lo handle.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT handle.lo -MD -MP -MF .deps/handle.Tpo -c handle.c -fPIC -DPIC -o .libs/handle.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT handle.lo -MD -MP -MF .deps/handle.Tpo -c handle.c -o handle.o >/dev/null 2>&1
    mv -f .deps/handle.Tpo .deps/handle.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT log.lo -MD -MP -MF .deps/log.Tpo -c -o log.lo log.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT log.lo -MD -MP -MF .deps/log.Tpo -c log.c -fPIC -DPIC -o .libs/log.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT log.lo -MD -MP -MF .deps/log.Tpo -c log.c -o log.o >/dev/null 2>&1
    mv -f .deps/log.Tpo .deps/log.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT package.lo -MD -MP -MF .deps/package.Tpo -c -o package.lo package.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT package.lo -MD -MP -MF .deps/package.Tpo -c package.c -fPIC -DPIC -o .libs/package.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT package.lo -MD -MP -MF .deps/package.Tpo -c package.c -o package.o >/dev/null 2>&1
    mv -f .deps/package.Tpo .deps/package.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT pkghash.lo -MD -MP -MF .deps/pkghash.Tpo -c -o pkghash.lo pkghash.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT pkghash.lo -MD -MP -MF .deps/pkghash.Tpo -c pkghash.c -fPIC -DPIC -o .libs/pkghash.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT pkghash.lo -MD -MP -MF .deps/pkghash.Tpo -c pkghash.c -o pkghash.o >/dev/null 2>&1
    mv -f .deps/pkghash.Tpo .deps/pkghash.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT remove.lo -MD -MP -MF .deps/remove.Tpo -c -o remove.lo remove.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT remove.lo -MD -MP -MF .deps/remove.Tpo -c remove.c -fPIC -DPIC -o .libs/remove.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT remove.lo -MD -MP -MF .deps/remove.Tpo -c remove.c -o remove.o >/dev/null 2>&1
    mv -f .deps/remove.Tpo .deps/remove.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT sync.lo -MD -MP -MF .deps/sync.Tpo -c -o sync.lo sync.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT sync.lo -MD -MP -MF .deps/sync.Tpo -c sync.c -fPIC -DPIC -o .libs/sync.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT sync.lo -MD -MP -MF .deps/sync.Tpo -c sync.c -o sync.o >/dev/null 2>&1
    mv -f .deps/sync.Tpo .deps/sync.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT trans.lo -MD -MP -MF .deps/trans.Tpo -c -o trans.lo trans.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT trans.lo -MD -MP -MF .deps/trans.Tpo -c trans.c -fPIC -DPIC -o .libs/trans.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT trans.lo -MD -MP -MF .deps/trans.Tpo -c trans.c -o trans.o >/dev/null 2>&1
    mv -f .deps/trans.Tpo .deps/trans.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT util.lo -MD -MP -MF .deps/util.Tpo -c -o util.lo util.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT util.lo -MD -MP -MF .deps/util.Tpo -c util.c -fPIC -DPIC -o .libs/util.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT util.lo -MD -MP -MF .deps/util.Tpo -c util.c -o util.o >/dev/null 2>&1
    mv -f .deps/util.Tpo .deps/util.Plo
    /bin/sh ../../libtool --tag=CC --mode=compile gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT version.lo -MD -MP -MF .deps/version.Tpo -c -o version.lo version.c
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c -fPIC -DPIC -o .libs/version.o
    libtool: compile: gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DHAVE_CONFIG_H -I. -I../.. -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c -o version.o >/dev/null 2>&1
    mv -f .deps/version.Tpo .deps/version.Plo
    /bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -pedantic -D_GNU_SOURCE -fvisibility=internal -fgnu89-inline -g -O2 -Wall -no-undefined -version-info 6:3:0 -o libalpm.la -rpath /usr/local/lib add.lo alpm.lo alpm_list.lo backup.lo be_local.lo be_package.lo be_sync.lo conflict.lo db.lo delta.lo deps.lo diskspace.lo dload.lo error.lo group.lo handle.lo log.lo package.lo pkghash.lo remove.lo sync.lo trans.lo util.lo version.lo -lfetch -lssl -larchive
    libtool: link: gcc -std=gnu99 -shared -fPIC -DPIC .libs/add.o .libs/alpm.o .libs/alpm_list.o .libs/backup.o .libs/be_local.o .libs/be_package.o .libs/be_sync.o .libs/conflict.o .libs/db.o .libs/delta.o .libs/deps.o .libs/diskspace.o .libs/dload.o .libs/error.o .libs/group.o .libs/handle.o .libs/log.o .libs/package.o .libs/pkghash.o .libs/remove.o .libs/sync.o .libs/trans.o .libs/util.o .libs/version.o -lfetch -lssl /usr/lib/libarchive.so -lacl -lattr -lexpat -llzma -lbz2 -lz -lcrypto -O2 -Wl,-soname -Wl,libalpm.so.6 -o .libs/libalpm.so.6.0.3
    libtool: link: (cd ".libs" && rm -f "libalpm.so.6" && ln -s "libalpm.so.6.0.3" "libalpm.so.6")
    libtool: link: (cd ".libs" && rm -f "libalpm.so" && ln -s "libalpm.so.6.0.3" "libalpm.so")
    libtool: link: ar cru .libs/libalpm.a add.o alpm.o alpm_list.o backup.o be_local.o be_package.o be_sync.o conflict.o db.o delta.o deps.o diskspace.o dload.o error.o group.o handle.o log.o package.o pkghash.o remove.o sync.o trans.o util.o version.o
    libtool: link: ranlib .libs/libalpm.a
    libtool: link: ( cd ".libs" && rm -f "libalpm.la" && ln -s "../libalpm.la" "libalpm.la" )
    make[3]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/lib/libalpm'
    make[2]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/lib/libalpm'
    Making all in src/util
    make[2]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/src/util'
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT vercmp.o -MD -MP -MF .deps/vercmp.Tpo -c -o vercmp.o vercmp.c
    mv -f .deps/vercmp.Tpo .deps/vercmp.Po
    /bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -pedantic -D_GNU_SOURCE -g -O2 -Wall -o vercmp vercmp.o ../../lib/libalpm/version.o -lfetch -lssl -larchive
    libtool: link: gcc -std=gnu99 -pedantic -D_GNU_SOURCE -g -O2 -Wall -o vercmp vercmp.o ../../lib/libalpm/version.o -lfetch -lssl /usr/lib/libarchive.so -lacl -lattr -lexpat -llzma -lbz2 -lz -lcrypto
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT testpkg.o -MD -MP -MF .deps/testpkg.Tpo -c -o testpkg.o testpkg.c
    mv -f .deps/testpkg.Tpo .deps/testpkg.Po
    /bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -pedantic -D_GNU_SOURCE -g -O2 -Wall -o testpkg testpkg.o ../../lib/libalpm/.libs/libalpm.la -lfetch -lssl -larchive
    libtool: link: gcc -std=gnu99 -pedantic -D_GNU_SOURCE -g -O2 -Wall -o .libs/testpkg testpkg.o ../../lib/libalpm/.libs/libalpm.so -lfetch -lssl /usr/lib/libarchive.so -lacl -lattr -lexpat -llzma -lbz2 -lz -lcrypto -Wl,-rpath -Wl,/usr/local/lib
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT testdb.o -MD -MP -MF .deps/testdb.Tpo -c -o testdb.o testdb.c
    mv -f .deps/testdb.Tpo .deps/testdb.Po
    /bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -pedantic -D_GNU_SOURCE -g -O2 -Wall -o testdb testdb.o ../../lib/libalpm/.libs/libalpm.la -lfetch -lssl -larchive
    libtool: link: gcc -std=gnu99 -pedantic -D_GNU_SOURCE -g -O2 -Wall -o .libs/testdb testdb.o ../../lib/libalpm/.libs/libalpm.so -lfetch -lssl /usr/lib/libarchive.so -lacl -lattr -lexpat -llzma -lbz2 -lz -lcrypto -Wl,-rpath -Wl,/usr/local/lib
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT cleanupdelta.o -MD -MP -MF .deps/cleanupdelta.Tpo -c -o cleanupdelta.o cleanupdelta.c
    mv -f .deps/cleanupdelta.Tpo .deps/cleanupdelta.Po
    /bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -pedantic -D_GNU_SOURCE -g -O2 -Wall -o cleanupdelta cleanupdelta.o ../../lib/libalpm/.libs/libalpm.la -lfetch -lssl -larchive
    libtool: link: gcc -std=gnu99 -pedantic -D_GNU_SOURCE -g -O2 -Wall -o .libs/cleanupdelta cleanupdelta.o ../../lib/libalpm/.libs/libalpm.so -lfetch -lssl /usr/lib/libarchive.so -lacl -lattr -lexpat -llzma -lbz2 -lz -lcrypto -Wl,-rpath -Wl,/usr/local/lib
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT pactree.o -MD -MP -MF .deps/pactree.Tpo -c -o pactree.o pactree.c
    mv -f .deps/pactree.Tpo .deps/pactree.Po
    /bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -pedantic -D_GNU_SOURCE -g -O2 -Wall -o pactree pactree.o ../../lib/libalpm/.libs/libalpm.la -lfetch -lssl -larchive
    libtool: link: gcc -std=gnu99 -pedantic -D_GNU_SOURCE -g -O2 -Wall -o .libs/pactree pactree.o ../../lib/libalpm/.libs/libalpm.so -lfetch -lssl /usr/lib/libarchive.so -lacl -lattr -lexpat -llzma -lbz2 -lz -lcrypto -Wl,-rpath -Wl,/usr/local/lib
    make[2]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/src/util'
    Making all in src/pacman
    make[2]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/src/pacman'
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DLOGFILE=\"/usr/local/var/log/pacman.log\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT conf.o -MD -MP -MF .deps/conf.Tpo -c -o conf.o conf.c
    mv -f .deps/conf.Tpo .deps/conf.Po
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DLOGFILE=\"/usr/local/var/log/pacman.log\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT database.o -MD -MP -MF .deps/database.Tpo -c -o database.o database.c
    mv -f .deps/database.Tpo .deps/database.Po
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DLOGFILE=\"/usr/local/var/log/pacman.log\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT deptest.o -MD -MP -MF .deps/deptest.Tpo -c -o deptest.o deptest.c
    mv -f .deps/deptest.Tpo .deps/deptest.Po
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DLOGFILE=\"/usr/local/var/log/pacman.log\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT package.o -MD -MP -MF .deps/package.Tpo -c -o package.o package.c
    mv -f .deps/package.Tpo .deps/package.Po
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DLOGFILE=\"/usr/local/var/log/pacman.log\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT pacman.o -MD -MP -MF .deps/pacman.Tpo -c -o pacman.o pacman.c
    mv -f .deps/pacman.Tpo .deps/pacman.Po
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DLOGFILE=\"/usr/local/var/log/pacman.log\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT query.o -MD -MP -MF .deps/query.Tpo -c -o query.o query.c
    mv -f .deps/query.Tpo .deps/query.Po
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DLOGFILE=\"/usr/local/var/log/pacman.log\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT remove.o -MD -MP -MF .deps/remove.Tpo -c -o remove.o remove.c
    mv -f .deps/remove.Tpo .deps/remove.Po
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DLOGFILE=\"/usr/local/var/log/pacman.log\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT sync.o -MD -MP -MF .deps/sync.Tpo -c -o sync.o sync.c
    mv -f .deps/sync.Tpo .deps/sync.Po
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DLOGFILE=\"/usr/local/var/log/pacman.log\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT callback.o -MD -MP -MF .deps/callback.Tpo -c -o callback.o callback.c
    mv -f .deps/callback.Tpo .deps/callback.Po
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DLOGFILE=\"/usr/local/var/log/pacman.log\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT upgrade.o -MD -MP -MF .deps/upgrade.Tpo -c -o upgrade.o upgrade.c
    mv -f .deps/upgrade.Tpo .deps/upgrade.Po
    gcc -std=gnu99 -DLOCALEDIR=\"/usr/local/share/locale\" -DCONFFILE=\"/usr/local/etc/pacman.conf\" -DROOTDIR=\"/\" -DDBPATH=\"/usr/local/var/lib/pacman/\" -DCACHEDIR=\"/usr/local/var/cache/pacman/pkg/\" -DLOGFILE=\"/usr/local/var/log/pacman.log\" -DHAVE_CONFIG_H -I. -I../.. -I../../lib/libalpm -pedantic -D_GNU_SOURCE -g -O2 -Wall -MT util.o -MD -MP -MF .deps/util.Tpo -c -o util.o util.c
    mv -f .deps/util.Tpo .deps/util.Po
    /bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 -pedantic -D_GNU_SOURCE -g -O2 -Wall -o pacman conf.o database.o deptest.o package.o pacman.o query.o remove.o sync.o callback.o upgrade.o util.o ../../lib/libalpm/.libs/libalpm.la -lfetch -lssl -larchive
    libtool: link: gcc -std=gnu99 -pedantic -D_GNU_SOURCE -g -O2 -Wall -o .libs/pacman conf.o database.o deptest.o package.o pacman.o query.o remove.o sync.o callback.o upgrade.o util.o ../../lib/libalpm/.libs/libalpm.so -lfetch -lssl /usr/lib/libarchive.so -lacl -lattr -lexpat -llzma -lbz2 -lz -lcrypto -Wl,-rpath -Wl,/usr/local/lib
    make[2]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/src/pacman'
    Making all in scripts
    make[2]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/scripts'
    GEN makepkg
    GEN pacman-db-upgrade
    GEN pacman-optimize
    GEN pkgdelta
    GEN rankmirrors
    GEN repo-add
    rm -f repo-remove
    ln -s repo-add repo-remove
    make[2]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/scripts'
    Making all in etc
    make[2]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/etc'
    GEN makepkg.conf
    GEN pacman.conf
    make[2]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/etc'
    Making all in po
    make[2]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/po'
    make[2]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/po'
    Making all in test/pacman
    make[2]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/test/pacman'
    Making all in tests
    make[3]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/test/pacman/tests'
    make[3]: Nothing to be done for `all'.
    make[3]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/test/pacman/tests'
    make[3]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/test/pacman'
    make[3]: Nothing to be done for `all-am'.
    make[3]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/test/pacman'
    make[2]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/test/pacman'
    Making all in test/util
    make[2]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/test/util'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/test/util'
    Making all in contrib
    make[2]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/contrib'
    GEN bacman
    GEN pacdiff
    GEN paclist
    GEN pacscripts
    GEN pacsearch
    GEN wget-xdelta.sh
    GEN bash_completion
    GEN zsh_completion
    make[2]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/contrib'
    Making all in doc
    make[2]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3/doc'
    make[2]: Nothing to be done for `all'.
    make[2]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3/doc'
    make[2]: Entering directory `/home/aardvark/Documents/pacman/pacman-3.5.3'
    make[2]: Nothing to be done for `all-am'.
    make[2]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3'
    make[1]: Leaving directory `/home/aardvark/Documents/pacman/pacman-3.5.3'
    This is the output of ./configure:
    checking build system type... x86_64-unknown-linux-gnu
    checking host system type... x86_64-unknown-linux-gnu
    checking for a BSD-compatible install... /bin/install -c
    checking whether build environment is sane... yes
    checking for a thread-safe mkdir -p... /bin/mkdir -p
    checking for gawk... gawk
    checking whether make sets $(MAKE)... yes
    checking for gawk... (cached) gawk
    checking for style of include used by make... GNU
    checking for gcc... gcc
    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... no
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking dependency style of gcc... gcc3
    checking for gcc option to accept ISO C99... -std=gnu99
    checking whether ln -s works... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking how to print strings... printf
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for fgrep... /bin/grep -F
    checking for ld used by gcc -std=gnu99... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
    checking the name lister (/usr/bin/nm -B) interface... BSD nm
    checking the maximum length of command line arguments... 1572864
    checking whether the shell understands some XSI constructs... yes
    checking whether the shell understands "+="... yes
    checking how to convert x86_64-unknown-linux-gnu file names to x86_64-unknown-linux-gnu format... func_convert_file_noop
    checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
    checking for /usr/bin/ld option to reload object files... -r
    checking for objdump... objdump
    checking how to recognize dependent libraries... pass_all
    checking for dlltool... no
    checking how to associate runtime and link libraries... printf %s\n
    checking for ar... ar
    checking for archiver @FILE support... @
    checking for strip... strip
    checking for ranlib... ranlib
    checking command to parse /usr/bin/nm -B output from gcc -std=gnu99 object... ok
    checking for sysroot... no
    checking for mt... no
    checking if : is a manifest tool... no
    checking how to run the C preprocessor... gcc -std=gnu99 -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 for dlfcn.h... yes
    checking for objdir... .libs
    checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no
    checking for gcc -std=gnu99 option to produce PIC... -fPIC -DPIC
    checking if gcc -std=gnu99 PIC flag -fPIC -DPIC works... yes
    checking if gcc -std=gnu99 static flag -static works... yes
    checking if gcc -std=gnu99 supports -c -o file.o... yes
    checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes
    checking whether the gcc -std=gnu99 linker (/usr/bin/ld -m elf_x86_64) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    checking for python2.7... python2.7
    checking for bash... /bin/bash
    checking whether NLS is requested... yes
    checking for msgfmt... /usr/bin/msgfmt
    checking for gmsgfmt... /usr/bin/msgfmt
    checking for xgettext... /usr/bin/xgettext
    checking for msgmerge... /usr/bin/msgmerge
    checking for ld used by GCC... /usr/bin/ld -m elf_x86_64
    checking if the linker (/usr/bin/ld -m elf_x86_64) is GNU ld... yes
    checking for shared library run path origin... done
    checking for CFPreferencesCopyAppValue... no
    checking for CFLocaleCopyCurrent... no
    checking for GNU gettext in libc... yes
    checking whether to use NLS... yes
    checking where the gettext function comes from... libc
    checking for archive_read_data in -larchive... yes
    checking whether to link with libssl... yes
    checking for MD5_Final in -lssl... yes
    checking whether to link with libfetch... yes
    checking for fetchParseURL in -lfetch... yes
    checking whether fetchConnectionCacheInit is declared... yes
    checking fcntl.h usability... yes
    checking fcntl.h presence... yes
    checking for fcntl.h... yes
    checking glob.h usability... yes
    checking glob.h presence... yes
    checking for glob.h... yes
    checking libintl.h usability... yes
    checking libintl.h presence... yes
    checking for libintl.h... yes
    checking locale.h usability... yes
    checking locale.h presence... yes
    checking for locale.h... yes
    checking mntent.h usability... yes
    checking mntent.h presence... yes
    checking for mntent.h... yes
    checking for string.h... (cached) yes
    checking sys/ioctl.h usability... yes
    checking sys/ioctl.h presence... yes
    checking for sys/ioctl.h... yes
    checking sys/mount.h usability... yes
    checking sys/mount.h presence... yes
    checking for sys/mount.h... yes
    checking sys/param.h usability... yes
    checking sys/param.h presence... yes
    checking for sys/param.h... yes
    checking sys/statvfs.h usability... yes
    checking sys/statvfs.h presence... yes
    checking for sys/statvfs.h... yes
    checking sys/time.h usability... yes
    checking sys/time.h presence... yes
    checking for sys/time.h... yes
    checking for sys/types.h... (cached) yes
    checking sys/ucred.h usability... no
    checking sys/ucred.h presence... no
    checking for sys/ucred.h... no
    checking syslog.h usability... yes
    checking syslog.h presence... yes
    checking for syslog.h... yes
    checking wchar.h usability... yes
    checking wchar.h presence... yes
    checking for wchar.h... yes
    checking for inline... inline
    checking for mode_t... yes
    checking for off_t... yes
    checking for pid_t... yes
    checking for size_t... yes
    checking whether struct tm is in sys/time.h or time.h... time.h
    checking for uid_t in sys/types.h... yes
    checking for dirent.h that defines DIR... yes
    checking for library containing opendir... none required
    checking for struct dirent.d_type... yes
    checking PATH_MAX defined... yes
    checking vfork.h usability... no
    checking vfork.h presence... no
    checking for vfork.h... no
    checking for fork... yes
    checking for vfork... yes
    checking for working fork... yes
    checking for working vfork... (cached) yes
    checking for library containing getmntent... none required
    checking whether lstat correctly handles trailing slash... yes
    checking whether time.h and sys/time.h may both be included... yes
    checking for sys/time.h... (cached) yes
    checking for unistd.h... (cached) yes
    checking for alarm... yes
    checking for working mktime... yes
    checking for geteuid... yes
    checking for getmntinfo... no
    checking for realpath... yes
    checking for regcomp... yes
    checking for strcasecmp... yes
    checking for strndup... yes
    checking for strrchr... yes
    checking for strsep... yes
    checking for swprintf... yes
    checking for wcwidth... yes
    checking for uname... yes
    checking filesystem statistics type... checking for getmntinfo... (cached) no
    checking for getmntent... (cached) yes
    struct statvfs
    checking for struct statvfs.f_flag... yes
    checking for struct statfs.f_flags... no
    checking for special C compiler options needed for large files... no
    checking for _FILE_OFFSET_BITS value needed for large files... no
    checking whether gcc -std=gnu99 accepts -fvisibility=internal... yes
    checking for -fgnu89-inline... yes
    checking for du... /bin/du
    checking for asciidoc... asciidoc
    checking for building documentation... yes, enabled by configure
    checking for doxygen... no
    checking for doxygen... no, disabled by configure
    checking for debug mode request... no
    checking whether to use git version if available... no, disabled by configure
    configure: creating ./config.status
    config.status: creating lib/libalpm/Makefile
    config.status: creating lib/libalpm/po/Makefile.in
    config.status: creating src/pacman/Makefile
    config.status: creating src/util/Makefile
    config.status: creating scripts/Makefile
    config.status: creating doc/Makefile
    config.status: creating etc/Makefile
    config.status: creating po/Makefile.in
    config.status: creating test/pacman/Makefile
    config.status: creating test/pacman/tests/Makefile
    config.status: creating test/util/Makefile
    config.status: creating contrib/Makefile
    config.status: creating Makefile
    config.status: creating config.h
    config.status: executing depfiles commands
    config.status: executing libtool commands
    config.status: executing po-directories commands
    config.status: creating lib/libalpm/po/POTFILES
    config.status: creating lib/libalpm/po/Makefile
    config.status: creating po/POTFILES
    config.status: creating po/Makefile
    pacman:
    Build information:
    source code location : .
    prefix : /usr/local
    sysconfdir : /usr/local/etc
    conf file : /usr/local/etc/pacman.conf
    localstatedir : /usr/local/var
    database dir : /usr/local/var/lib/pacman/
    cache dir : /usr/local/var/cache/pacman/pkg/
    compiler : gcc -std=gnu99
    compiler flags : -g -O2 -Wall
    defines : -DHAVE_CONFIG_H
    Architecture : x86_64
    Architecture flags : -march=x86-64
    Host Type : x86_64-unknown-linux-gnu
    Filesize command : stat -L -c %s
    In-place sed command : sed -i
    libalpm version : 6.0.3
    libalpm version info : 6:3:0
    pacman version : 3.5.3
    using git version : no
    Directory and file information:
    root working directory : /
    package extension : .pkg.tar.gz
    source pkg extension : .src.tar.gz
    build script name : PKGBUILD
    Compilation options:
    Run make in doc/ dir : yes
    Doxygen support : no
    debug support : no
    I'm sure libtool is installed. I had a working copy of pacman but a bad "make install" destroyed that too. Any help?
    Last edited by newdave (2011-07-07 05:46:27)

    falconindy wrote:
    And where's the error? Other than the completely wrong paths being set for ./configure, there is none. That's a successful make.
    newdave wrote:P.S. I must add that currently pacman is broken on my system so " makepkg -s " does not work (error: no usable package repositories configured.)
    P.P.S note the word configure. this is user error as you've not uncommented any mirrors from /etc/pacman.d/mirrorlist. I strongly suggest you do one of two things:
    1) If you're insistent on compiling pacman by hand, use the configure flags from the package in ABS.
    2) Backup your pacman.conf/makepkg.conf, download a pacman package, and extract it to root, and then restore your config files. After fixing your mirrorlist, reinstall pacman with pacman, using pacman -Sf pacman
    I identified some error keywords in the make output and thought the make had failed. but apparently I was wrong. As you said the make was succesful( sorry for noobish mistake). As to the pacman breakage, the problem was with two duplicate copies of  pacman in /usr/bin/pacman and  /usr/local/bin/pacman ! just removed /usr/local/bin/pacman and pacman got fixed...
    Anyway, Thank you all for your help.

  • Compiler configure problems (cross compiling?)

    When attempting to compile packages, I am receiving these errors:
    checking for gcc... gcc
    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 `/tmp/yaourt-tmp-procyon/abs-htop/src/htop-1.0.3':
    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...
    ==> ERROR: Makepkg was unable to build htop.
    I have not changed any cflags or other build variables. Why these errors?

    I should add, this occurred after I restored my system from a backup.

  • Create a cross compiler for arm

    I am struggling with building a cross toolchain, essentially it boils down to building these packages (in thegiven order):
    binutils gcc-base newlib gcc
    When done I am trying to compile a dummy cpp algorithm (euler gcd/ggT search) with no includes.
    What the cross toolchain spits at me is the following:
    $ arm-unknown-eabi-gcc -march=armv5te ./euklidisch_ggt.c -o ./euklidisch_ggt.bin.armv5te
    /usr/bin/arm-unknown-eabi-ld: skipping incompatible /usr/lib/gcc/arm-unknown-eabi/4.5.2/../../../../arm-unknown-eabi/lib/libc.a when searching for -lc
    /usr/bin/arm-unknown-eabi-ld: skipping incompatible /usr/arm-unknown-eabi/lib/libc.a when searching for -lc
    /usr/bin/arm-unknown-eabi-ld: cannot find -lc
    collect2: ld returned 1 exit status
    I wrote a little script to build it (as I got pretty much fed up doing it all by hund, round #7 just failed again)
    Note: it is semi-automated, you will still be requested to give your passwd to agree with install and blah
    Note: use it with arg "cleanup" to get rid of old installed packages (run as root)
    Note: use it to compile as user
    #!/bin/bash
    BUILDERUSER=buildmonkey
    PREFIX="/usr"
    TARGET="arm-unknown-eabi"
    PKGBUILDDIR="/home/${BUILDERUSER}/PKGBUILD"
    PKGS="binutils gcc-base newlib gcc"
    export PREFIX
    export TARGET
    export BUILDERUSER
    export PKGS
    export PKGBUILDDIR
    function cleanup
    for j in ${PKGS}
    do
    export j
    echo "Removing package ${TARGET}-${j}"
    su -c'pacman -R ${TARGET}-${j}'
    done
    function compile_and_install
    cd ${PKGBUILDDIR}
    echo ""
    echo ""
    echo "Compileing ${TARGET}-${1} ... "
    echo ""
    echo ""
    cd ./${TARGET}-${1}
    rm ./${TARGET}-${1}*
    makepkg -f || return 1
    su -c 'pacman -U ./${TARGET}-${1}*'
    echo ""
    if [ "${1}" == "cleanup" ]; then
    echo "cleanup requested...."
    cleanup
    exit 0
    fi
    if [ "$(id -u)" == "0" ]; then
    echo "This script must not be run as root!!" 1>&2
    exit 1
    fi
    echo ""
    if [ -d "${PKGBUILDDIR}" ]; then
    echo "PKGBUILD directory is ${PKGBUILDDIR}"
    else
    echo "PKGBUILD directory ${PKGBUILDDIR} is missing!!"
    exit 1
    fi
    echo "PKGs are ${PKGS}"
    echo ""
    for i in ${PKGS}
    do
    compile_and_install ${i}
    done
    exit 0
    The packagebuilds are as following (hacked away versions of the ones existing in AUR, which give me linker errors)
    binutils
    pkgname=arm-unknown-eabi-binutils
    pkgver=2.21
    pkgrel=1
    pkgdesc="A set of programs to assemble and manipulate binary and object files"
    arch=(i686 x86_64)
    license=(GPL)
    options=(!libtool)
    url="http://sources.redhat.com/binutils"
    depends=('glibc' 'zlib')
    source=(ftp://ftp.gnu.org/gnu/binutils/binutils-${pkgver}.tar.bz2)
    md5sums=('c84c5acc9d266f1a7044b51c85a823f5')
    build() {
    cd $srcdir/binutils-${pkgver}
    [ $NOEXTRACT -eq 1 ] || ./configure\
    --prefix=${PREFIX} \
    --program-prefix=${TARGET}- \
    --enable-shared \
    --disable-multilib \
    --with-lib-path=${PREFIX}/lib/binutils/{TARGET} \
    --disable-nls \
    --target=${TARGET} \
    --build=${CHOST} \
    --host=${CHOST}
    # mkdir -p $pkgdir/${PREFIX}/lib/binutils
    sed -i 's|know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP));|{know (S_GET_VALUE (frag->tc_frag_data.last_map) < S_GET_VALUE (symbolP));}|' gas/config/tc-arm.c || return 1
    make configure-host
    make tooldir=$pkgdir/${PREFIX}
    make prefix=$pkgdir/${PREFIX} tooldir=$pkgdir/${PREFIX} install
    mkdir -p $pkgdir/${PREFIX}/lib/binutils/${TARGET}
    cp -v include/libiberty.h $pkgdir/${PREFIX}/lib/binutils/${TARGET}
    rm -f $pkgdir/${PREFIX}/man/man1/{dlltool,nlmconv,windres}*
    rm -f $pkgdir/usr/bin/ar
    rm -f $pkgdir/usr/bin/as
    rm -f $pkgdir/usr/bin/ld
    rm -f $pkgdir/usr/bin/nm
    rm -f $pkgdir/usr/bin/objdump
    rm -f $pkgdir/usr/bin/ranlib
    rm -f $pkgdir/usr/bin/strip
    rm -f $pkgdir/usr/bin/objcopy
    rm -f $pkgdir/usr/lib/libiberty.a
    rm -rf $pkgdir/usr/share
    rm -rf $pkgdir/usr/lib/ldscripts
    gcc-base
    pkgname=arm-unknown-eabi-gcc-base
    pkgver=4.5.2
    pkgrel=1
    pkgdesc="The GNU Compiler Collection"
    arch=(i686 x86_64)
    license=('GPL' 'LGPL')
    url="http://gcc.gnu.org"
    depends=('arm-unknown-eabi-binutils' 'libmpc' 'libelf' 'cloog-ppl')
    options=(!libtool !emptydirs zipman docs !strip)
    source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-core-${pkgver}.tar.bz2)
    md5sums=('aa9e36bec080452372bfba793428ee82')
    build() {
    cd $srcdir/gcc-$pkgver
    export CFLAGS="-O2 -pipe"
    export CXXFLAGS="-O2 -pipe"
    [ $NOEXTRACT -eq 1 ] || rm -rf build
    mkdir build
    cd build
    [ $NOEXTRACT -eq 1 ] || ../configure --prefix=${PREFIX} \
    --target=${TARGET} \
    --host=$CHOST \
    --build=$CHOST \
    --enable-shared \
    --disable-nls \
    --enable-languages=c \
    --enable-multilib \
    --with-local-prefix=${PREFIX}/lib/${TARGET} \
    --with-as=${PREFIX}/bin/${TARGET}-as \
    --with-ld=${PREFIX}/bin/${TARGET}-ld \
    --enable-softfloat \
    --with-float=soft \
    --with-newlib
    make all-gcc all-target-libgcc
    make DESTDIR=$pkgdir install-gcc install-target-libgcc
    rm -f $pkgdir/usr/share/man/man7/fsf-funding.7*
    rm -f $pkgdir/usr/share/man/man7/gfdl.7*
    rm -f $pkgdir/usr/share/man/man7/gpl.7*
    rm -rf $pkgdir/usr/share/info
    cp -r $pkgdir/usr/libexec/* $pkgdir/usr/lib/
    rm -rf $pkgdir/usr/libexec
    # strip it manually
    strip $pkgdir/usr/bin/* 2>/dev/null || true
    find $pkgdir/usr/lib -type f -exec arm-none-eabi-strip {} \; 2>/dev/null || true
    newlib
    pkgname=arm-unknown-eabi-newlib
    pkgver=1.19.0
    pkgrel=1
    pkgdesc="Newlib is a C library intended for use on embedded systems."
    arch=('i686' 'x86_64')
    groups=('devel')
    url="http://sourceware.org/newlib/"
    license=('GPL')
    depends=('arm-unknown-eabi-binutils' 'arm-unknown-eabi-gcc-base')
    source=(ftp://sources.redhat.com/pub/newlib/newlib-${pkgver}.tar.gz)
    md5sums=('0966e19f03217db9e9076894b47e6601')
    build() {
    cd ${srcdir}
    rm -rf build
    mkdir build
    cd build
    export CFLAGS="-O2"
    ../newlib-${pkgver}/configure \
    --target=${TARGET} \
    --prefix=${PREFIX} \
    --enable-interwork \
    --enable-multilib \
    --with-gnu-as \
    --with-gnu-ld \
    --with-float=soft \
    --disable-nls || return 1
    make || return 1
    make -j1 DESTDIR=${pkgdir} install || return 1
    rm -rf ${pkgdir}/usr/share/info
    return 0
    gcc:
    pkgname=arm-unknown-eabi-gcc
    pkgver=4.5.2
    pkgrel=1
    pkgdesc="The GNU Compiler Collection - Cross compiler for ARM target"
    arch=(i686 x86_64)
    license=('GPL' 'LGPL')
    url="http://gcc.gnu.org"
    #an installed libc/newlib is needed for libstdc++ compile
    depends=('arm-unknown-eabi-binutils>=2.18' 'cloog-ppl>=0.15.3' 'arm-unknown-eabi-newlib>=1.18.0')
    # cross-arm-none-eabi-gcc is an superset of cross-arm-none-eabi-gcc-base
    conflicts=('arm-unknown-eabi-gcc-base')
    provides=("arm-unknown-eabi-gcc-base=${pkgver}")
    options=(!libtool !emptydirs !strip zipman docs)
    source=(ftp://gcc.gnu.org/pub/gcc/releases/gcc-${pkgver}/gcc-${pkgver}.tar.bz2)
    md5sums=('d6559145853fbaaa0fd7556ed93bce9a')
    build() {
    cd ${srcdir}/gcc-$pkgver
    export CFLAGS="-O2 -pipe"
    export CXXFLAGS="-O2 -pipe"
    rm -rf build
    mkdir build
    cd build
    ../configure \
    --prefix=${PREFIX} \
    --target=${TARGET} \
    --build=${CHOST} \
    --host=${CHOST} \
    --disable-nls \
    --enable-multilib \
    --enable-languages=c,c++ \
    --enable-__cxa_atexit \
    --enable-interwork \
    --with-local-prefix=${PREFIX}/lib/${TARGET} \
    --with-as=${PREFIX}/bin/${TARGET}-as \
    --with-ld=${PREFIX}/bin/${TARGET}-ld \
    --with-newlib \
    --with-float=soft
    make all-gcc all-target-libgcc all-target-libstdc++-v3 || return 1
    make DESTDIR=${pkgdir} install-gcc install-target-libgcc install-target-libstdc++-v3 || return 1
    rm -f $pkgdir/usr/share/man/man7/fsf-funding.7*
    rm -f $pkgdir/usr/share/man/man7/gfdl.7*
    rm -f $pkgdir/usr/share/man/man7/gpl.7*
    rm -rf $pkgdir/usr/share/info
    rm -rf $pkgdir/usr/share/gcc-4.5.2
    cp -r $pkgdir/usr/libexec/* $pkgdir/usr/lib/ && \
    rm -rf $pkgdir/usr/libexec
    I already read linux from scratch howto for building cross compilers, though partly it contradicts with AUR comments especially in regard to --with-sysroot and --with-build-sysroot
    If someone can please shed some light on this, the gcc doc is not very helpfull
    Note: I know that a bare metal arm elf cross compiler exisis in the archlinux repository but that is not sufficient as I need different targets with some special options (where can I get the PKGBUILD from packages within the ABS?)

    Current targets are armv7vfpv3 and armv5te softfloat, this compiler(s) (afaik softfloat and hardfloat can not be put into one compiler, correct me if I am wrong) will be used as basis for kernel compileing for these architectures plus the basic packages (afaik called bootstrapping).
    And I knew it was not really newby stuff, but .. well .. after searching like 5 mins for an appropriate subforum I gave up and posted it just here, sorry
    The point is this is the basis for a lot of core packages and I just want to do it right (and atm it ain't working at all )
    Last edited by drahnr (2011-04-05 22:36:11)

  • Cross-compiling

    I'm using the Clang compiler (on i686) and would like to cross-compile for x86-64.
    The command I'm using is:
    $ clang -ccc-host-triple x86_64-unknown-linux [...]
    It seems to generate valid 64-bit assembler code but it's compiled in x86 mode.
    /tmp/cc-J3OsmS.s: Assembler messages:
    /tmp/cc-J3OsmS.s:36: Error: bad register name `%rbp'
    /tmp/cc-J3OsmS.s:38: Error: bad register name `%rsp'
    /tmp/cc-J3OsmS.s:40: Error: bad register name `%rdi'
    /tmp/cc-J3OsmS.s:41: Error: bad register name `%rbp)'
    /tmp/cc-J3OsmS.s:186: Error: `movabs' is only supported in 64-bit mode
    What's the recommended way of solving it?
    Clang uses the GCC assembler. Can I specify a different one, say nasm?
    So far, I only managed to find GCC cross-compile packages for ARM and some other architectures but not for x86-64.
    Any help is appreciated.
    Last edited by tindzk (2010-08-01 12:03:27)

    Compiling your PKGBUILD worked perfectly, thanks. I also added "--enable-64-bit-bfd" (cf. http://wiki.osdev.org/GCC_Cross-Compiler_for_x86_64)
    Modifying the PATH variable spawns at least the right "as"...
    export PATH=/usr/lib/cross-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/:$PATH
    ...but the errors posted above still remain, because "as" is getting passed "--32".
    So after lots of experimenting I came up with the following parameters:
    CC = clang -include config.h
    CC += -ccc-host-triple x86_64-unknown-linux
    CC += -m64
    CC += -Wa,--64
    CC += -Wl,"-L/usr/lib/cross-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/lib"
    CC += -Wl,"-melf_x86_64"
    CC += -v
    It's very hackish because Clang doesn't support proper cross-compiling on Linux. By the way, other architectures seem to have much more sophisticated heuristics: http://clang.llvm.org/doxygen/ToolChain … ource.html
    This all works fine for the assembler and I also managed to eliminate some errors with "ld" but it's not working completely. "ld" gets called like this:
    /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/collect2 --eh-frame-hdr -m elf_i386 --hash-style=both -dynamic-linker /lib/ld-linux.so.2 -o a.out /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../crt1.o /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../crti.o /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/crtbegin.o -L/usr/lib/gcc/i686-pc-linux-gnu/4.5.0 -L/usr/lib/gcc/i686-pc-linux-gnu/4.5.0/../../.. -L/usr/lib/cross-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/lib -melf_x86_64 /tmp/cc-AIbI5G.o /tmp/cc-UiUGe7.o /tmp/cc-Kj0Hnx.o /tmp/cc-AIILwX.o /tmp/cc-yj4RFn.o /tmp/cc-6KT0ON.o /tmp/cc-ooccYd.o /tmp/cc-GTVp7D.o /tmp/cc-0DiGg4.o /tmp/cc-C7lZpu.o /tmp/cc-6OUkzU.o /tmp/cc-QwMVIk.o /tmp/cc-cY4MSK.o /tmp/cc-E2WG2a.o /tmp/cc-YwgDcB.o /tmp/cc-SFTBm1.o /tmp/cc-ki0Cwr.o /tmp/cc-IOEGGR.o /tmp/cc-C7CMQh.o /tmp/cc-sCQV0H.o /tmp/cc-cAB7a8.o /tmp/cc-I2Olly.o /tmp/cc-KttCvY.o /tmp/cc-wwrVFo.o /tmp/cc-ujWgQO.o /tmp/cc-gqUE0e.o /tmp/cc-4Ra5aF.o /tmp/cc-24Mxl5.o /tmp/cc-WtH2vv.o /tmp/cc-oeaAGV.o /tmp/cc-KzU9Ql.o /tmp/cc-WheM1L.o /tmp/cc-ONPqcc.o /tmp/cc-AuW8mC.o /tmp/cc-4NYUx2.o /tmp/cc-MujJIs.o /tmp/cc-W5eATS.o /tmp/cc-6UBt4i.o -lgcc --as-needed -lgcc_s --no-as-needed -lc -lgcc --as-needed -lgcc_s --no-as-needed /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/crtend.o /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/../../../crtn.o
    Interestingly, I'm experiencing exactly the same issue described in the sources:
    // FIXME: Figure out some way to get gcc's libdir
    // (e.g. /usr/lib/gcc/i486-linux-gnu/4.3/ for Ubuntu 32-bit); we need
    // crtbegin.o/crtend.o/etc., and want static versions of various
    // libraries. If we had our own crtbegin.o/crtend.o/etc, we could probably
    // get away with using shared versions in /usr/lib, though.
    // We could fall back to the approach we used for includes (a massive
    // list), but that's messy at best.
    Can I still use the 32-bit crtend.o or will it conflict?
    However, the command fails with:
    /usr/lib/cross-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/ld: skipping incompatible /usr/lib/gcc/i686-pc-linux-gnu/4.5.0/libgcc.a when searching for -lgcc
    /usr/lib/cross-x86_64-unknown-linux-gnu/x86_64-unknown-linux-gnu/bin/ld: cannot find -lgcc
    What do I need libgcc for? Can I disable it? Looks like I have to compile the complete GCC toolchain otherwise.
    Last edited by tindzk (2010-08-03 13:13:42)

  • License for cross-compilation for solaris 10 sparc on Linux x86

    I'd like to do cross-compilation for solaris 10 sparc on Linux x86 using gcc (for linux). To do that, I have to copy libraries (/lib/64) and includes (/usr/include) from a sparc machine to my linux machine.
    The compilation will be run on about (up to) 50 Linux machines (by various developers). We also have 3 solaris-10-SPARC machines.
    I wonder if Solaris license allows me to copy the includes and libs to perform compilation elsewhere.
    I also checked "OTN License Agreement for Oracle Solaris", but it looks like Oracle allows for installing "the programs" on up to 3 machines, but I need it on 50.
    Thanks for any suggestions or redirections to a proper place where I can get an answer.
    Marek

    When installing Solaris 10 01/06 on a Dell 1850 I receive an error message during the install saying "no disk found". I assume that the drive/controller is not recognized. The Dell 1850 is listed under the HCL for Solaris 10 10/06. I don't believe I can use the Solaris(TM) Device Driver for the LSI MegaRAID Adapter floppy with 1/06. I don�t have any other Solaris boxes up so I can�t build a jump start server. Any suggestions?

  • Cross compiling in Embedded /LabVIEW

    Hi,
    I am trying to create an embedded  Unix UI App .I have installed cygwin with cross compiling gcc.
    while trying to build an app i get the following errors:
    In file included from C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/blockdiagram/MemCheck.h:24,
                     from C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/blockdiagram/LVCCG.h:37,
                     from C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/blockdiagram/LVCGenIncludes.​h:15,
                     from /cygdrive/d/EddyCurrent/Microprocessor/Unix UI/Unix_UI/UI_Application/lvEmbeddedMain.c:20:
    C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/blockdiagram/LVCritSect.h:22​: Invalid token in expression
    In file included from C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/blockdiagram/CCGDataSupport.​h:40,
                     from C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/frontpanel/CCGChartGraphSupp​.h:16,
                     from C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/frontpanel/CCGCtlSupport.h:2​2,
                     from C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/blockdiagram/LVCGenIncludes.​h:17,
                     from /cygdrive/d/EddyCurrent/Microprocessor/Unix UI/Unix_UI/UI_Application/lvEmbeddedMain.c:20:
    C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/blockdiagram/CCGFXPSupport.h​:573: badly punctuated parameter list in `#define'
    C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/blockdiagram/CCGFXPSupport.h​:623: badly punctuated parameter list in `#define'
    In file included from C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/comms/CCGCommsSupport.h:19,
                     from C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/blockdiagram/LVCGenIncludes.​h:19,
                     from /cygdrive/d/EddyCurrent/Microprocessor/Unix UI/Unix_UI/UI_Application/lvEmbeddedMain.c:20:
    C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/comms/CCGTcpUdpSupport.h:24: Invalid token in expression
    C:/Program Files/National Instruments/LabVIEW 2009/CCodeGen/include/comms/CCGTcpUdpSupport.h:36: Invalid token in expression
    make: *** [/cygdrive/d/EddyCurrent/Microprocessor/Unix UI/Unix_UI/UI_Application/lvEmbeddedMain.o] Error 1
    How to overcome this error?All are header file errors.
    This is the first time i am trying to cross compile.
    without cross compiling i can build my app. But how to do with cross compiling....
    I have followed the steps gn in Microprocessor SDK Porting labview to new platform.
    can anyone help me pls.........
    regards,
    Indumathi.C
    LabVIEW Developer.

    Hi Anshul,
    Its not possible with "Query Browser". One thing possible which is possible is,it need not be a single row, you can divide the labels in any number of rows and any number of columns. See the below example. The yellow highlighted ones are the labels of chart, the greyish ones are the corresponding values for the labels. The sequence will be the same.
    If you dont need this way, then there are two best ways to achieve cross tab functionality.
    One thing you can do is, you can directly connect the Bex queries to the Dashboard using BICS Net weaver connection.
    But this way you can only Publish-Launch in BW. The dashboard cannot be made available in Infoview/Launch Pad.
    Other way is through Webi and BIWS connection. As Suman has mentioned.
    This way it ll be available in Infoview/Launch Pad and BW as well.
    Thanks,
    Sara

  • Cross-compiling desirable

    I would really like to see the ability in the Studio compilers to cross compile SPARC code on x86 and vice versa.
    This would incentivize the OpenSolaris engineering team to support cross-compilation as well, I believe.
    The reason for this is that my build host for SPARC is a lot slower than the Opteron system I have. I suspect that I'm not alone in this, and that some folks may have the reverse.
    Support for cross-compilation would probably also help ISVs out that want to support both ISAs. Imagine having a single build host to build a product for a bunch of platforms. Folks already do this for gcc.
    I realize that a link step or somesuch is going to require a copy of the OS libraries and headers be installed, but its easy to get those from OpenSolaris (or even a stock Solaris build just installed or copied to an alternate directory).
    The only thing we can't solve in OpenSolaris itself to do this is making the compilers (code generation, assembler, and optimization) able to cross-compile. If Studio had this feature (and it shouldn't be hard to add), then we'd be able to take the next step to enable cross-compilation of Solaris itself.

    I agree that it would be very desirable.
    I don't necessarily agree that it wouldn't be too hard; it depends on how the compiler was designed.
    That said, one could also envisage a cross-compiler to earlier versions of Solaris, which would be neat (and should in fact be easier to do than true cross compilation). Currently, production builds have to be done on a machine running the earliest version of Solaris that you want to support. Version-cross-compilation would allow you to do the build on a later version of Solaris, but generate a binary that would work from the earlier version.
    Just a thought.
    /lib

  • Problem in GCCFSS cross compiler

    I have followed the instructions of using gccfss as a cross compiler. But when I compile my HelloWorld.c I encountered the following error:
    ld fatal: file /usr/lib/libc.so: wrong ELF machine type: EM_386
    Can anyone help me?

    All
    I have gccfss installed along with target (sparc) machine's /usr/include and /usr/lib directory contents.
    I'm trying a simple "Hello" {color:#0000ff}cross-compile{color} exercise below and getting linking {color:#ff0000}error(s){color:#000000}.
    Any ideas/suggestions?
    Thank you in advance, Attila.
    NB: I tried setting/defining LD_LIBRARY_PATH environment variable to point to copy of target system's library directories but get "wrong ELF machine type" errors because gccfss is referencing /usr/lib directory instead.
    {color}{color}{color:#ff0000}{color:#0000ff}
    $ /opt/gccfss/gcc/bin/gcc -L/opt/sparc/usr/lib -L/opt/sparc/usr/lib/mdb/proc -L/opt/sparc/usr/lib/mdb/proc/sparcv9 hello.c{color}
    Undefined first referenced
    symbol in file
    exit /opt/gccfss/gcc/bin/../lib/gcc/sparc-sun-solaris2.10/4.2.0/crt1.o
    puts /tmp/ccobWhgs.o
    _exit                               /opt/gccfss/gcc/bin/../lib/gcc/sparc-sun-solaris2.10/4.2.0/crt1.o
    bzero /opt/sparc/usr/lib/mdb/proc/libc.so
    mdb_snprintf /opt/sparc/usr/lib/mdb/proc/libc.so
    mdb_printf /opt/sparc/usr/lib/mdb/proc/libc.so
    atexit /opt/gccfss/gcc/bin/../lib/gcc/sparc-sun-solaris2.10/4.2.0/crt1.o
    mdb_lookup_by_obj /opt/sparc/usr/lib/mdb/proc/libc.so
    strcat /opt/sparc/usr/lib/mdb/proc/libc.so
    strcpy /opt/sparc/usr/lib/mdb/proc/libc.so
    mdb_alloc /opt/sparc/usr/lib/mdb/proc/libc.so
    mdb_vread /opt/sparc/usr/lib/mdb/proc/libc.so
    sig2str /opt/sparc/usr/lib/mdb/proc/libc.so
    mdb_free /opt/sparc/usr/lib/mdb/proc/libc.so
    mdb_warn /opt/sparc/usr/lib/mdb/proc/libc.so
    strerror /opt/sparc/usr/lib/mdb/proc/libc.so
    mdb_get_xdata /opt/sparc/usr/lib/mdb/proc/libc.so
    _environ                            /opt/gccfss/gcc/bin/../lib/gcc/sparc-sun-solaris2.10/4.2.0/crt1.o
    ld: fatal: Symbol referencing errors. No output written to a.out
    collect2: ld returned 1 exit status{color}

Maybe you are looking for

  • Is there a way to check my iphone messages on my PC?

    Is there a way to check my iphone messages on my PC?

  • Beginner: Getting syntax error on WHERE clause in SELECT

    I'm very new to php and mySQL.  Am using DW master/detail to generate to basic code I need.  One thing I need to do is modify a select statement in the master to include a WHERE clause to limit the selection to a particular value in one field. I'm ge

  • Amount updation in 'Available amounts' in Bank Determination of FBZP (FI-BL)

    Hello, The available amounts section in the Bank Determination (FBZP) will have Available planned amount for outgoing payments. Here we will make some junk amount (999,999,99). Is there any possible that this field can be updated with the exact amoun

  • Purchase Order - Error messages

    Dear All, We are creating Purchase order , due to one of our processes we get a Error and we are not able to save the PO. We understand the error but we canot maintain some source list due to our processes. Is there a way like a USER enhancement to r

  • Ripped DVD in QT, plays fine in Quick View

    I have QT pro and ripped one of my DVDs using handbrake to watch on the plane on my Macbook. When viewed in QT, it is choppy and the audio gets ahead of the choppy video. However, when I view it in Quick View, it plays PERFECTLY! Anyone else experien