Please help build qemu/darwin-user on Mac Intel
Hi,
I am trying to build i386-darwin-user to run it on an x86 Mac. I'm on Mac OS 10.4 Intel with gcc 3.3 and I'm getting compiler errors right away:
$ cvs -d:pserver:[email protected]:/cvsroot/darwine co qemu $ cd qemu/ $ ./configure --target-list=i386-darwin-user --cc=/opt/gcc3/bin/gcc $ make /opt/gcc3/bin/gcc -Wall -O2 -g -fno-strict-aliasing -mdynamic-no-pic -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -o dyngen dyngen.c dyngen.c: In function `gen_code': dyngen.c:1700: error: structure has no member named `r_offset' dyngen.c:1701: error: structure has no member named `r_offset' dyngen.c:1713: error: structure has no member named `r_offset' dyngen.c:1718: error: structure has no member named `r_offset' dyngen.c:1761:2: #error unsupport object format dyngen.c:1697: warning: unused variable `type' make: *** [dyngen] Error 1
Please let me know if there's a config trick or if there's a patch to apply (or please point me to a more appropriate forum/resource for such questions).
Thanks!
Ilya
____________________________________________________________________________________
Get your own web address.
Have a HUGE year through Yahoo! Small Business.
http://smallbusiness.yahoo.com/domains/?p=BESTDEAL
Hi,
Quoted 6 lines · Ilya Shar
I am trying to build i386-darwin-user to run it on an x86 Mac. I'm on Mac OS 10.4 Intel with gcc 3.3 and I'm getting compiler errors right away:
$ cvs -d:pserver:[email protected]:/cvsroot/darwine
Ilya, qemu's CVS has the most up-to-date version of darwin-user now, so you should use it intead of the version which is in the darwine's cvs. Moreover to compile qemu on intel you'll need a few patche. The team behind Q.app has collected them for you [1]. Also I am not sure that gcc 3.3 can build Mac Intel binaries that are compliant with the current Mac OS X x86 ABI. So you may also need the gcc 4.0 patches that you should find in [1].
Pierre.
Hi,
we have decided to wait for the next qemu release until we update the patches for kju, as qemu dev has picked up speed, which is good. Never the less, you can grab the patches for qemu cvs (OS X Intel) here:
http://www.kberg.ch/qemu/cvspatches20070202.zip
Best Regards
Mike
Quoted 22 lines · Pierre d'Herbemont
Hi,
Quoted 6 lines · Ilya Shar
I am trying to build i386-darwin-user to run it on an x86 Mac. I'm on Mac OS 10.4 Intel with gcc 3.3 and I'm getting compiler errors right away:
$ cvs -d:pserver:[email protected]:/cvsroot/darwineIlya, qemu's CVS has the most up-to-date version of darwin-user now, so you should use it intead of the version which is in the darwine's cvs. Moreover to compile qemu on intel you'll need a few patche. The team behind Q.app has collected them for you [1]. Also I am not sure that gcc 3.3 can build Mac Intel binaries that are compliant with the current Mac OS X x86 ABI. So you may also need the gcc 4.0 patches that you should find in [1].
Pierre.
[1] http://www.kju-app.org/proj/browser/trunk/patches
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
Hi Mike,
Thanks a lot for the patches. I applied them (together with qemu-0.7.0-gcc4.patch, which appears to be necessary although it's not in the archive you created) but in the middle of the build dyngen rejects op.o:
../dyngen -c -o opc.h op.o
dyngen: Unable to replace ret with jmp inop_bsfl_T0_cc
make[1]: *** [opc.h] Error 1
Did I mess up somewhere or there is something wrong with the patches?
Thanks again for your help!
Ilya
Quoted 16 lines · --- Mike Kronenberg
Hi,
we have decided to wait for the next qemu release
until we update the
patches for kju, as qemu dev has picked up speed,
which is good.
Never the less, you can grab the patches for qemu
cvs (OS X Intel) here:http://www.kberg.ch/qemu/cvspatches20070202.zip
Best Regards
MikeOn 03.02.2007, at 08:47, Pierre d'Herbemont wrote:
Quoted 13 lines
Quoted 5 lines
Hi,
Quoted 1 line · Ilya Shar
I am trying to build i386-darwin-user to run it
on an
Quoted 1 line
Quoted 1 line
x86 Mac. I'm on Mac OS 10.4 Intel with gcc 3.3
and
Quoted 4 lines
Quoted 4 lines
I'm getting compiler errors right away:
$ cvs
-d:pserver:[email protected]:/cvsroot/darwine
Quoted 25 lines
Quoted 2 lines
Ilya, qemu's CVS has the most up-to-date version
of darwin-user
Quoted 1 line
now, so you should use it intead of the version
which is in the
Quoted 1 line
darwine's cvs. Moreover to compile qemu on intel
you'll need a few
Quoted 1 line
patche. The team behind Q.app has collected them
for you [1]. Also
Quoted 1 line
I am not sure that gcc 3.3 can build Mac Intel
binaries that are
Quoted 1 line
compliant with the current Mac OS X x86 ABI. So
you may also need
Quoted 5 lines
the gcc 4.0 patches that you should find in [1].
Pierre.
[1]
http://www.kju-app.org/proj/browser/trunk/patches
Quoted 6 lines
_______________________________________________
Qemu-devel mailing list
[email protected]
Quoted 9 lines
http://lists.nongnu.org/mailman/listinfo/qemu-devel
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
Hi Ilya,
I just built from CVS before I zipped up the patches, here is the order I applied them:
#gcc4 patches
patch -p1 -u < ../patches/qemu-0.8.3-gcc4.patch
patch -p1 -u < ../patches/qemu-0.7.2-dyngen-check-stack-clobbers.patch patch -p1 -u < ../patches/qemu-0.7.2-gcc4-opts.patch
patch -p1 -u < ../patches/qemu-0.8.0-gcc4-hacks.patch
#OS X86 patches
patch -p1 -u < ../patches/qemu-0.8.3-enforce-16byte-stack-boundary.patch patch -p1 -u -f < ../patches/qemu-0.8.3-i386-FORCE_RET.patch patch -p1 -u < ../patches/qemu-0.8.3-osx-intel-port.patch
patch -p1 -u < ../patches/qemu-0.8.0-osx-bugfix.patch
notice the force -f for the FORCE_RET patch :).
I had to update the old patches, because of changes like the updated defines for return(). Especially qemu-0.7.0-gcc4.patch does fail to apply because of that and was replaced with qemu-0.8.3-gcc4.patch.
then I configured with
./configure --prefix=../products/i386 --enable-cocoa --enable-adlib --disable-gcc-check --target-list=i386-softmmu Jep, I did not test with other targets.
Mike
Quoted 101 lines · Ilya Shar
Hi Mike,
Thanks a lot for the patches. I applied them (together with qemu-0.7.0-gcc4.patch, which appears to be necessary although it's not in the archive you created) but in the middle of the build dyngen rejects op.o:
../dyngen -c -o
opc.hop.o
dyngen: Unable to replace ret with jmp inop_bsfl_T0_cc
make[1]: *** [opc.h] Error 1Did I mess up somewhere or there is something wrong with the patches?
Thanks again for your help!
IlyaQuoted 16 lines · --- Mike Kronenberg
Hi,
we have decided to wait for the next qemu release
until we update the
patches for kju, as qemu dev has picked up speed,
which is good.
Never the less, you can grab the patches for qemu
cvs (OS X Intel) here:http://www.kberg.ch/qemu/cvspatches20070202.zip
Best Regards
MikeOn 03.02.2007, at 08:47, Pierre d'Herbemont wrote:
Quoted 13 lines
Quoted 5 lines
Hi,
Quoted 1 line · Ilya Shar
I am trying to build i386-darwin-user to run it
on an
Quoted 1 line
Quoted 1 line
x86 Mac. I'm on Mac OS 10.4 Intel with gcc 3.3
and
Quoted 4 lines
Quoted 4 lines
I'm getting compiler errors right away:
$ cvs-d:pserver:[email protected]:/cvsroot/darwine
Quoted 25 lines
Quoted 2 lines
Ilya, qemu's CVS has the most up-to-date version
of darwin-user
Quoted 1 line
now, so you should use it intead of the version
which is in the
Quoted 1 line
darwine's cvs. Moreover to compile qemu on intel
you'll need a few
Quoted 1 line
patche. The team behind Q.app has collected them
for you [1]. Also
Quoted 1 line
I am not sure that gcc 3.3 can build Mac Intel
binaries that are
Quoted 1 line
compliant with the current Mac OS X x86 ABI. So
you may also need
Quoted 5 lines
the gcc 4.0 patches that you should find in [1].
Pierre.
[1]
http://www.kju-app.org/proj/browser/trunk/patches
Quoted 6 lines
_______________________________________________
Qemu-devel mailing list
[email protected]Quoted 9 lines
http://lists.nongnu.org/mailman/listinfo/qemu-devel
_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091_______________________________________________
Qemu-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/qemu-devel