You are not logged in.
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
use package() to limit fakeroot to "install" step only.
The "|| return 1" is not needed anymore.
Offline
Note the "ignored" after those errors. They are not the cause of your build failure.
Offline
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.
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