You are not logged in.

#1 2010-12-11 22:44:57

RetroX
Member
Registered: 2009-10-17
Posts: 106

Error with fakeroot in makepkg

I appear to be experiencing a very odd problem with fakeroot in makepkg.

Here's the PKGBUILD:

pkgname=mingw32-gmp
pkgver=5.0.1
pkgrel=1
pkgdesc="A free library for arbitrary precision arithmetic (MinGW version)"
arch=('any')
url="http://gmplib.org/"
depends=('mingw32-runtime' 'gcc-libs' 'sh')
makedepends=('mingw32-gcc')
license=('LGPL3')
options=(!libtool)
source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.bz2)
md5sums=('6bac6df75c192a13419dfd71d19240a7')

build() {
  cd "${srcdir}/gmp-${pkgver}"
  [ "${CARCH}" = "i686" ] && export ABI="32"
  ./configure --build=$CHOST \
    --prefix=/usr/i486-mingw32 --infodir=/usr/share/info \
    --enable-cxx || return 1
  make \
    CPP_FOR_BUILD=i486-mingw32-g++ \
    CC_FOR_BUILD=i486-mingw32-gcc \
    prefix=/usr/i486-mingw32 || return 1
  make check || return 1
  make DESTDIR="$pkgdir" install || return 1
}

And here's the error:

i486-mingw32-gcc `test -f 'gen-fac_ui.c' || echo './'`gen-fac_ui.c -o gen-fac_ui
./gen-fac_ui 64 0 >mpz/fac_ui.h || (rm -f mpz/fac_ui.h; exit 1)
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded: ignored.
ERROR: ld.so: object 'libfakeroot.so' from LD_PRELOAD cannot be preloaded: ignored.
wine: chdir to /tmp/.wine-1000/server-809-c2575 : No such file or directory
make: *** [mpz/fac_ui.h] Error 1
    Aborting...

Is it trying to load libfakeroot from MinGW?  That's the only logical conclusion that I can come up with, and I don't know how to fix it.

Does anyone else get this error, or is it just some odd configuration with my system?

Offline

#2 2010-12-11 22:47:31

djgera
Developer
From: Buenos Aires - Argentina
Registered: 2008-12-24
Posts: 723
Website

Re: Error with fakeroot in makepkg

use package() to limit fakeroot to "install" step only.

The "|| return 1" is not needed anymore.

Offline

#3 2010-12-11 22:53:20

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,652
Website

Re: Error with fakeroot in makepkg

Note the "ignored" after those errors.   They are not the cause of your build failure.

Offline

#4 2010-12-11 23:37:02

RetroX
Member
Registered: 2009-10-17
Posts: 106

Re: Error with fakeroot in makepkg

Allan wrote:

Note the "ignored" after those errors.   They are not the cause of your build failure.

I had a feeling that they were causing some kind of error, because chdir from wine (which would have been invoked on library load) was where the error was.

djgera wrote:

use package() to limit fakeroot to "install" step only.

The "|| return 1" is not needed anymore.

Well, I had left the return statements because they were in the original packages.  I literally just took the gmp PKGBUILD and modified a few settings to make it work for MinGW.

I've tried doing package() and it doesn't seem to work.

EDIT: I appear to have narrowed the problem down to a program named gen-fac_ui in the source directory.  I have no idea why GNU included an EXE in the source for GMP. o_o

Last edited by RetroX (2010-12-11 23:37:48)

Offline

Board footer

Powered by FluxBB