Please support VectorLinux!

Author Topic: Need help compiling dev86  (Read 3813 times)

pierce.jason

  • Packager
  • Vectorite
  • ****
  • Posts: 250
Need help compiling dev86
« on: April 12, 2011, 05:15:20 pm »
I need some help figuring out how to get dev86 to compile.  I got this same error on previous version of dev86 0.16.17 also.
I keep getting fatal error: make[4]: *** No rule to make target `__ldivmod.o)', needed by `/home/milkdud/packages/dev86/src/dev86-0.16.18/libc/libc.a'.  Stop.

I had to add .txt to the end of both attachments to make the forum happy. Please remove .txt extension

Code: [Select]
# $Id: PKGBUILD 1281 2009-08-14 14:09:37Z dgriffiths $
# Maintainer: Alessio 'mOLOk' Bolognino <themolok@gmail.com>
# Contributor: Suat SARIALP <muhendis.suat@gmail.com>

pkgname=dev86
pkgver=0.16.18
pkgrel=1
pkgdesc="Simple C compiler to generate 8086 code"
arch=('i686' 'x86_64')
url="http://www.debath.co.uk/dev86/"
license=(GPL)
makedepends=('bin86')
options=('!libtool' '!strip' '!makeflags')
source=("http://www.debath.co.uk/dev86/Dev86src-${pkgver}.tar.gz" dev86-pic.patch)
md5sums=('f2e06b547397383b2b2650b9c4fd9bab'
         '1b750c5561a4bde5f83f65e5827feb73')

build() {
  cd $startdir/src/$pkgname-$pkgver
  patch -Np0 -i ${startdir}/src/dev86-pic.patch
  if [ "${CARCH}" = "x86_64" ]; then
    # x86_64 fix
    sed -i.orig \
    -e 's,alt-libs elksemu,alt-libs,' \
-e 's,install-lib install-emu,install-lib,' \
$startdir/src/$pkgname-$pkgver/makefile.in
  fi

  # use our CFLAGS
  sed -i -e "s/-O2 -g/${CFLAGS}/" makefile.in

  make PREFIX=/usr DIST="$startdir/pkg" || return 1
  make install-all DIST="$startdir/pkg"
  mkdir -p $startdir/pkg/usr/share
  mv $startdir/pkg/usr/man $startdir/pkg/usr/share
  # remove all the stuff supplied by bin86
  rm $startdir/pkg/usr/bin/{as,ld,nm,objdump,size}86
  rm $startdir/pkg/usr/share/man/man1/{as,ld}86.1

}
pierce.jason
Email: $(echo -e "moc\x2eliamg\x40nosaj.ecreip" | rev)

pierce.jason

  • Packager
  • Vectorite
  • ****
  • Posts: 250
Re: Need help compiling dev86
« Reply #1 on: April 12, 2011, 05:30:59 pm »
Found this bug ticket. http://bugs.lunar-linux.org/view.php?id=460#c1055

Sounds like inorder to compile dev86, 'make' will need to be patched and recompiled.
pierce.jason
Email: $(echo -e "moc\x2eliamg\x40nosaj.ecreip" | rev)

pierce.jason

  • Packager
  • Vectorite
  • ****
  • Posts: 250
Re: Need help compiling dev86
« Reply #2 on: April 12, 2011, 05:41:41 pm »
This was indeed due to buggy make. I patched make and reinstalled it, and now dev86 is compiling fine.

Might want to implement the make patch for any other software that uses the "auto" features that are bugged. I've attached the sources that I used to compile make with.
pierce.jason
Email: $(echo -e "moc\x2eliamg\x40nosaj.ecreip" | rev)