All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Please help build qemu/darwin-user on Mac Intel
@ 2007-02-03  1:37 Ilya Shar
  2007-02-03  7:47 ` Pierre d'Herbemont
  0 siblings, 1 reply; 5+ messages in thread
From: Ilya Shar @ 2007-02-03  1:37 UTC (permalink / raw)
  To: qemu-devel

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:anonymous@darwine.cvs.sourceforge.net:/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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Please help build qemu/darwin-user on Mac Intel
  2007-02-03  1:37 [Qemu-devel] Please help build qemu/darwin-user on Mac Intel Ilya Shar
@ 2007-02-03  7:47 ` Pierre d'Herbemont
  2007-02-03 18:25   ` Mike Kronenberg
  0 siblings, 1 reply; 5+ messages in thread
From: Pierre d'Herbemont @ 2007-02-03  7:47 UTC (permalink / raw)
  To: qemu-devel

Hi,

On 3 févr. 07, at 02:37, Ilya Shar wrote:

> 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:anonymous@darwine.cvs.sourceforge.net:/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.

[1] http://www.kju-app.org/proj/browser/trunk/patches

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Please help build qemu/darwin-user on Mac Intel
  2007-02-03  7:47 ` Pierre d'Herbemont
@ 2007-02-03 18:25   ` Mike Kronenberg
  2007-02-04  7:37     ` Ilya Shar
  0 siblings, 1 reply; 5+ messages in thread
From: Mike Kronenberg @ 2007-02-03 18:25 UTC (permalink / raw)
  To: qemu-devel

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

On 03.02.2007, at 08:47, Pierre d'Herbemont wrote:

> Hi,
>
> On 3 févr. 07, at 02:37, Ilya Shar wrote:
>
>> 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:anonymous@darwine.cvs.sourceforge.net:/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.
>
> [1] http://www.kju-app.org/proj/browser/trunk/patches
>
>
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Please help build qemu/darwin-user on Mac Intel
  2007-02-03 18:25   ` Mike Kronenberg
@ 2007-02-04  7:37     ` Ilya Shar
  2007-02-04 12:54       ` Mike Kronenberg
  0 siblings, 1 reply; 5+ messages in thread
From: Ilya Shar @ 2007-02-04  7:37 UTC (permalink / raw)
  To: 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 in
op_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 


--- Mike Kronenberg <mike.kronenberg@kberg.ch> wrote:

> 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
> 
> On 03.02.2007, at 08:47, Pierre d'Herbemont wrote:
> 
> > Hi,
> >
> > On 3 févr. 07, at 02:37, Ilya Shar wrote:
> >
> >> 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:anonymous@darwine.cvs.sourceforge.net:/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.
> >
> > [1]
> http://www.kju-app.org/proj/browser/trunk/patches
> >
> >
> > _______________________________________________
> > Qemu-devel mailing list
> > Qemu-devel@nongnu.org
> >
> http://lists.nongnu.org/mailman/listinfo/qemu-devel
> 
> 
> 
> _______________________________________________
> Qemu-devel mailing list
> Qemu-devel@nongnu.org
> 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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Qemu-devel] Please help build qemu/darwin-user on Mac Intel
  2007-02-04  7:37     ` Ilya Shar
@ 2007-02-04 12:54       ` Mike Kronenberg
  0 siblings, 0 replies; 5+ messages in thread
From: Mike Kronenberg @ 2007-02-04 12:54 UTC (permalink / raw)
  To: qemu-devel

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

On 04.02.2007, at 08:37, Ilya Shar wrote:

> 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 in
> op_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
>
>
> --- Mike Kronenberg <mike.kronenberg@kberg.ch> wrote:
>
>> 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
>>
>> On 03.02.2007, at 08:47, Pierre d'Herbemont wrote:
>>
>>> Hi,
>>>
>>> On 3 févr. 07, at 02:37, Ilya Shar wrote:
>>>
>>>> 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:anonymous@darwine.cvs.sourceforge.net:/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.
>>>
>>> [1]
>> http://www.kju-app.org/proj/browser/trunk/patches
>>>
>>>
>>> _______________________________________________
>>> Qemu-devel mailing list
>>> Qemu-devel@nongnu.org
>>>
>> http://lists.nongnu.org/mailman/listinfo/qemu-devel
>>
>>
>>
>> _______________________________________________
>> Qemu-devel mailing list
>> Qemu-devel@nongnu.org
>> 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
> Qemu-devel@nongnu.org
> http://lists.nongnu.org/mailman/listinfo/qemu-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-02-04 12:54 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-03  1:37 [Qemu-devel] Please help build qemu/darwin-user on Mac Intel Ilya Shar
2007-02-03  7:47 ` Pierre d'Herbemont
2007-02-03 18:25   ` Mike Kronenberg
2007-02-04  7:37     ` Ilya Shar
2007-02-04 12:54       ` Mike Kronenberg

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.