* [Qemu-devel] Building QEMU on PS3
@ 2011-02-23 7:13 陳韋任
2011-02-23 7:17 ` Roy Tam
0 siblings, 1 reply; 6+ messages in thread
From: 陳韋任 @ 2011-02-23 7:13 UTC (permalink / raw)
To: qemu-devel
Hi, all
Is it possible to build qemu whose target is i386-linux-user on
a PS3 machine (Gentoo Linux/PowerPC).
I am trying to do so, but it failed at compiling i386-linux-user/translate.o.
Here is the system information:
------------------------------------------------------------------------
gcc (Gentoo 4.4.4-r2 p1.3, pie-0.4.5)
Linux ps3 2.6.37-rc6
------------------------------------------------------------------------
And here is the compliation error:
------------------------------------------------------------------------
CC i386-linux-user/translate.o
gcc: Internal error: Killed (program cc1)
Please submit a full bug report.
See <http://bugs.gentoo.org/> for instructions.
make[1]: *** [translate.o] Error 1
make: *** [subdir-i386-linux-user] Error 2
------------------------------------------------------------------------
Do I miss something? Any suggestion appreciated.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Building QEMU on PS3
2011-02-23 7:13 [Qemu-devel] Building QEMU on PS3 陳韋任
@ 2011-02-23 7:17 ` Roy Tam
2011-02-23 9:28 ` 陳韋任
0 siblings, 1 reply; 6+ messages in thread
From: Roy Tam @ 2011-02-23 7:17 UTC (permalink / raw)
To: 陳韋任; +Cc: qemu-devel
2011/2/23 陳韋任 <chenwj@iis.sinica.edu.tw>:
> Hi, all
>
> Is it possible to build qemu whose target is i386-linux-user on
> a PS3 machine (Gentoo Linux/PowerPC).
>
> I am trying to do so, but it failed at compiling i386-linux-user/translate.o.
>
> Here is the system information:
> ------------------------------------------------------------------------
> gcc (Gentoo 4.4.4-r2 p1.3, pie-0.4.5)
> Linux ps3 2.6.37-rc6
> ------------------------------------------------------------------------
>
> And here is the compliation error:
> ------------------------------------------------------------------------
> CC i386-linux-user/translate.o
> gcc: Internal error: Killed (program cc1)
> Please submit a full bug report.
> See <http://bugs.gentoo.org/> for instructions.
> make[1]: *** [translate.o] Error 1
> make: *** [subdir-i386-linux-user] Error 2
> ------------------------------------------------------------------------
>
Seems to be related:
http://www.mail-archive.com/qemu-devel@nongnu.org/msg55914.html
> Do I miss something? Any suggestion appreciated.
>
> Regards,
> chenwj
>
> --
> Wei-Ren Chen (陳韋任)
> Parallel Processing Lab, Institute of Information Science,
> Academia Sinica, Taiwan (R.O.C.)
> Tel:886-2-2788-3799 #1667
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Building QEMU on PS3
2011-02-23 7:17 ` Roy Tam
@ 2011-02-23 9:28 ` 陳韋任
2011-02-23 9:50 ` Roy Tam
0 siblings, 1 reply; 6+ messages in thread
From: 陳韋任 @ 2011-02-23 9:28 UTC (permalink / raw)
To: Roy Tam; +Cc: qemu-devel, 陳韋任
Hi, Roy
> Seems to be related:
> http://www.mail-archive.com/qemu-devel@nongnu.org/msg55914.html
Thanks for the info. I wonder if it is possible to cross compile qemu for
ppc (host) on a x86 machine.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Building QEMU on PS3
2011-02-23 9:28 ` 陳韋任
@ 2011-02-23 9:50 ` Roy Tam
2011-02-24 3:07 ` 陳韋任
0 siblings, 1 reply; 6+ messages in thread
From: Roy Tam @ 2011-02-23 9:50 UTC (permalink / raw)
To: 陳韋任; +Cc: qemu-devel
Hi chenwj,
2011/2/23 陳韋任 <chenwj@iis.sinica.edu.tw>:
> Hi, Roy
>
>> Seems to be related:
>> http://www.mail-archive.com/qemu-devel@nongnu.org/msg55914.html
>
> Thanks for the info. I wonder if it is possible to cross compile qemu for
> ppc (host) on a x86 machine.
>
If you have cross compile toolchain and cross compiled necessary
libraries, then it should work.
You can also try adding extra swap on PS3 to see if it can compile the sources.
http://psubuntu.com/wiki/PSUbuntuGPU
http://stason.org/TULARC/os/linux-faq/038-How-Do-I-Add-Temporary-Swap-Space.html
Best regards,
Roy
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Building QEMU on PS3
2011-02-23 9:50 ` Roy Tam
@ 2011-02-24 3:07 ` 陳韋任
2011-02-24 3:37 ` 陳韋任
0 siblings, 1 reply; 6+ messages in thread
From: 陳韋任 @ 2011-02-24 3:07 UTC (permalink / raw)
To: Roy Tam; +Cc: qemu-devel, 陳韋任
Hi, Roy
What I did is apply the patch (see attachment) which comment out an
assertion in tcg/tcg.c first. Then configure qemu with "--enable-debug"
option. I don't know if it is safe to remove the assertion though, but
it works for small program.
Regards,
chenwj
--
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] Building QEMU on PS3
2011-02-24 3:07 ` 陳韋任
@ 2011-02-24 3:37 ` 陳韋任
0 siblings, 0 replies; 6+ messages in thread
From: 陳韋任 @ 2011-02-24 3:37 UTC (permalink / raw)
To: 陳韋任; +Cc: qemu-devel, Roy Tam
[-- Attachment #1: Type: text/plain, Size: 195 bytes --]
Forgot to add the attachment, sorry. :)
--
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
[-- Attachment #2: patch-tcg-tcg.c --]
[-- Type: text/x-csrc, Size: 407 bytes --]
--- qemu-0.13.0/tcg/tcg.c.orig 2010-10-16 04:56:09.000000000 +0800
+++ qemu-0.13.0/tcg/tcg.c 2011-02-24 09:46:28.796899001 +0800
@@ -1031,7 +1031,7 @@
def = &tcg_op_defs[op];
#if defined(CONFIG_DEBUG_TCG)
/* Duplicate entry in op definitions? */
- assert(!def->used);
+ //assert(!def->used);
def->used = 1;
#endif
nb_args = def->nb_iargs + def->nb_oargs;
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-02-24 3:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-23 7:13 [Qemu-devel] Building QEMU on PS3 陳韋任
2011-02-23 7:17 ` Roy Tam
2011-02-23 9:28 ` 陳韋任
2011-02-23 9:50 ` Roy Tam
2011-02-24 3:07 ` 陳韋任
2011-02-24 3:37 ` 陳韋任
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).