Skip to contentSkip to conversation

Building QEMU on PS3

Qemu-devel 陳韋任 2 participants 6 messages Feb 23, 2011 – Feb 24, 2011

lore
Share & tools
lore

陳韋任

author
#0 lore raw

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

Signature · 4 lines
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
#1 lore raw

2011/2/23 陳韋任 <[email protected]>:

Quoted 13 lines

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
------------------------------------------------------------------------

Quoted 10 lines

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/[email protected]/msg55914.html

Quoted 12 lines

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

author
#2 lore raw

Hi, Roy

Quoted 2 lines

Seems to be related:
http://www.mail-archive.com/[email protected]/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

Signature · 4 lines
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
#3 lore raw

Hi chenwj,

2011/2/23 陳韋任 <[email protected]>:

Quoted 8 lines

Hi, Roy

Quoted 2 lines

Seems to be related:
http://www.mail-archive.com/[email protected]/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

author
#4 lore raw

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

Signature · 4 lines
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
author
#5 lore raw

Forgot to add the attachment, sorry. :)

Signature · 4 lines
Wei-Ren Chen (陳韋任)
Parallel Processing Lab, Institute of Information Science,
Academia Sinica, Taiwan (R.O.C.)
Tel:886-2-2788-3799 #1667
tcg/tcg.c renamed from tcg/tcg.c.orig +1 -1
@@ -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;