You are not logged in.

#1 2006-04-16 01:26:17

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

qemu-cvs + kqemu 1.3.0pre5 + gcc4 patches

i wonder if anyone is willing to target this task - having qemu-cvs compiled with latest kqemu 1.3.0pre5 using the gcc4 patchset (from here).

thanks in advance.

Offline

#2 2006-04-16 01:28:16

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: qemu-cvs + kqemu 1.3.0pre5 + gcc4 patches

I might have a go!  My jabber account is not working, dude.

Offline

#3 2006-04-16 10:06:02

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: qemu-cvs + kqemu 1.3.0pre5 + gcc4 patches

OK - I can't get 0.8 or CVS to build.  I have PKGBUILDs for both but both fail at the same point with an error:

../dyngen -o op.h op.o
dyngen: ret or jmp expected at the end of op_bsfw_T0_cc
make[1]: *** [op.h] Error 1
make[1]: Leaving directory `/home/dibble/projects/qemu/qemu-cvs/src/qemu-build/i386-user'
make: *** [all] Error 1
# Maintainer: Patrick Leslie Polzer <polzer>
# Contributor: Tomas Groth (tgc) <tomasgroth>
# Contributor: basilburn <basilburn>

pkgname=qemu
pkgver=20060416
pkgrel=1
pkgdesc="QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation."
url="http://fabrice.bellard.free.fr/qemu/"
depends=('sdl' 'xorg')
conflicts=()
source=(http://fabrice.bellard.free.fr/qemu/kqemu-1.3.0pre5.tar.gz)

_cvsroot=:pserver:anonymous@cvs.savannah.nongnu.org:/sources/qemu
_cvsmod=qemu

_cvsroot2=anoncvs@cvs.mandriva.com:/cooker
_cvsmod2=contrib-SPECS/qemu

build()
{
  cd $startdir/src/
  cvs -z3 -d $_cvsroot co -D $pkgver -f $_cvsmod
  
  # checkout patches
  # cvs -z3 -d $_cvsroot2 co -D $pkgver -f $_cvsmod2
  #cvs -d anoncvs@cvs.mandriva.com:/cooker checkout $_cvsmod2

  rm -r $_cvsmod-build
  cp -r $_cvsmod $_cvsmod-build
  cd $_cvsmod-build
  
  # clean up previous builds
  make clean
  [ -d kqemu ] && rm -r kqemu
  mv ../kqemu .
  
  # apply patches
  patch -Np1 -i $startdir/src/contrib-SPECS/qemu/qemu-0.8.0-enforce-16byte-stack-boundary.patch || return 1 && echo "done"
  patch -Np1 -i $startdir/src/contrib-SPECS/qemu/qemu-0.8.0-gcc4-hacks.patch || return 1 && echo "done"
  #patch -Np1 -i $startdir/src/contrib-SPECS/qemu/qemu-0.8.0-hw-nic-selection.patch || return 1 && echo "done"
  #patch -Np1 -i $startdir/src/contrib-SPECS/qemu/qemu-0.8.0-osx-intel-port.patch || return 1 && echo "done"
  patch -Np1 -i $startdir/src/contrib-SPECS/qemu/qemu-0.8.0-pcnet.patch6 || return 1 && echo "done"
  #patch -Np1 -i $startdir/src/contrib-SPECS/qemu/qemu-0.8.0-qvm86-colateral.patch || return 1 && echo "done"
  #patch -Np0 -i $startdir/src/contrib-SPECS/qemu/qemu-0.8.0-qvm86.patch || return 1 && echo "done"
  #patch -Np1 -i $startdir/src/contrib-SPECS/qemu/qemu-0.8.0-rtl8139.patch || return 1 && echo "done"
      
  sed -i -e 's|sdl_config --static-libs|sdl_config --libs|' configure
  ./configure --prefix=/usr --disable-gcc-check
  make || return 1
  
  sed -i s%/usr%$startdir/pkg/usr% config-host.mak
  
  # neuter the kqemu install script
  echo " " > kqemu/install.sh
  
  make prefix=$startdir/pkg/usr install
}

Some patches linked above have already been applied in CVS.

# Maintainer: Patrick Leslie Polzer <polzer>
# Contributor: Tomas Groth (tgc) <tomasgroth>
# Contributor: basilburn <basilburn>

pkgname=qemu
pkgver=0.8.0
pkgrel=1
pkgdesc="QEMU is a generic and open source processor emulator which achieves a good emulation speed by using dynamic translation."
url="http://fabrice.bellard.free.fr/qemu/"
depends=('sdl' 'xorg')
conflicts=()
source=(http://fabrice.bellard.free.fr/qemu/$pkgname-$pkgver.tar.gz http://fabrice.bellard.free.fr/qemu/kqemu-0.7.2.tar.gz http://www.gibix.net/projects/qemu/files/qemu-0.8.0-gcc4-hacks.patch.bz2)

build()
{
  cd $startdir/src/qemu-$pkgver
  # clean up previous builds
  make clean
  [ -d kqemu ] && rm -r kqemu
  mv ../kqemu .
  
  # apply patches
  patch -Np1 -i $startdir/src/qemu-0.8.0-gcc4-hacks.patch || return 1
  #patch -Np1 -i $startdir/src/qemu-0.7.2-dyngen-check-stack-clobbers.patch || return 1
  #patch -Np1 -i $startdir/src/qemu-0.7.2-gcc4-hacks.patch  || return 1
  #patch -Np1 -i $startdir/src/qemu-0.7.2-gcc4-opts.patch || return 1
  
  sed -i -e 's|sdl_config --static-libs|sdl_config --libs|' configure
  ./configure --prefix=/usr --disable-gcc-check
  make || return 1
  
  sed -i s%/usr%$startdir/pkg/usr% config-host.mak
  
  # neuter the kqemu install script
  echo " " > kqemu/install.sh
  
  make prefix=$startdir/pkg/usr install
} 

Offline

#4 2006-04-17 05:44:22

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: qemu-cvs + kqemu 1.3.0pre5 + gcc4 patches

maybe you need to compile using gcc3 workaround? theres still a link to gcc3 package somewhere in the forums i think...

Offline

#5 2006-04-18 05:50:34

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: qemu-cvs + kqemu 1.3.0pre5 + gcc4 patches

I've spent a few hours working on this also with no luck. I think that gcc3 is a must...

Offline

#6 2006-04-18 19:34:21

Fackamato
Member
Registered: 2006-03-31
Posts: 579

Re: qemu-cvs + kqemu 1.3.0pre5 + gcc4 patches

I installed gcc3, compiled it, then installed gcc4 again and it worked.

Offline

#7 2006-04-19 09:17:06

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: qemu-cvs + kqemu 1.3.0pre5 + gcc4 patches

Cool, I'll do that then - I have an old gcc version

Offline

#8 2006-04-19 20:39:51

z4ziggy
Member
From: Israel
Registered: 2004-03-29
Posts: 573
Website

Re: qemu-cvs + kqemu 1.3.0pre5 + gcc4 patches

/me waits for the package patiently smile

Offline

#9 2006-04-19 23:57:20

Cam
Member
From: Brisbane, Aus
Registered: 2004-12-21
Posts: 658
Website

Re: qemu-cvs + kqemu 1.3.0pre5 + gcc4 patches

I'm  pretty keen too, I've been reading about the new kqemu and it should speed things up noticably and with USB support  as of qemu 0.8.0, who needs VMWare? Enabling USB slows things down majorly (for me) but thats running the old kqemu.

Offline

#10 2006-04-20 00:51:58

user
Member
Registered: 2006-03-29
Posts: 465

Re: qemu-cvs + kqemu 1.3.0pre5 + gcc4 patches

z4ziggy wrote:

/me waits for the package patiently smile

me too

or would find another emulator which is fine with gcc4

or another instant solution is

install it under /home/<user>/<chrooted_dir>,
then you should have to install required software like bash, gcc3, etc
into same dir.($PATH $LD_LIBRARY_PATH $PKG_CONFIG_PATH)

Because it will never mess up host-specific core,
and normally qemu doesn't need to be include in the dir, and it has it's special purpose, so it in home dir best..


I removed my sig, cause i select the flag, the flag often the target of enemy.

SAR brain-tumor
[img]http://img91.imageshack.us/img91/460/cellphonethumb0ff.jpg[/img]

Offline

Board footer

Powered by FluxBB