Skip to contentSkip to conversation

Compiling error : ppc440_bamboo.o fails

DISCUSSION Giuseppe Falsetti 2 participants 5 messages Dec 1, 2008 – Dec 3, 2008

lore
Share & tools
lore
#0 lore raw

Sorry for the duplicate,
I have already post this on general [email protected] but this list is better.

===========
===========
===========

Processor type G5 64bit:

Distro:
Debian Lenny ppc64

mela00:~/kvm-userspace# cat /proc/cpuinfo
processor       : 0
cpu             : PPC970FX, altivec supported
clock           : 2000.000000MHz
revision        : 3.0 (pvr 003c 0300)

processor : 1
cpu : PPC970FX, altivec supported
clock : 2000.000000MHz
revision : 3.0 (pvr 003c 0300)

timebase : 33333333
platform : PowerMac
model : RackMac3,1
machine : RackMac3,1
motherboard : RackMac3,1 MacRISC4 Power Macintosh
detected as : 339 (XServe G5)
pmac flags : 00000000
L2 cache : 512K unified
pmac-generation : NewWorld

mela00:~/kvm-userspace# uname -a
Linux mela00 2.6.27.7 #1 SMP Sun Nov 30 15:18:45 CET 2008 ppc64 GNU/Linux
mela00:~/kvm-userspace# git describe
kvm-79-176-g82daa70
mela00:~/kvm-userspace# ./configure --arch=powerpc --disable-werror 
--enable-sparse
Install prefix    /usr/local
BIOS directory    /usr/local/share/qemu
binary directory  /usr/local/bin
Manual directory  /usr/local/share/man
ELF interp prefix /usr/gnemul/qemu-%M
Source path       /root/kvm-userspace/qemu
C compiler        gcc
Host C compiler   gcc
ARCH_CFLAGS
make              make
install           install
host CPU          powerpc
host big endian   yes
target list       ppcemb-softmmu
gprof enabled     no
sparse enabled    no
profiler          no
static build      no
-Werror enabled   no
SDL support       yes
SDL static link   yes
curses support    yes
mingw32 support   no
Audio drivers     oss
Extra audio cards
Mixer emulation   no
VNC TLS support   no
kqemu support     no
kvm support       yes
CPU emulation     yes
libfdt support    yes
brlapi support    no
Documentation     no
NPTL support      yes
vde support       no
AIO support       yes
KVM support       yes

Error messages:
gcc -I. -I.. -I/root/kvm-userspace/qemu/target-ppc -I/root/kvm-userspace/qemu -MMD -MT ppc440_bamboo.o -MP -DNEED_CPU_H -D__powerpc__ -D_GNU_SOURCE -D_FILE_OFFSET_BITSd -D_LARGEFILE_SOURCE -D__user= -I/root/kvm-userspace/qemu/tcg -I/root/kvm-userspace/qemu/tcg/ppc -I/root/kvm-userspace/qemu/fpu -DHAS_AUDIO -DHAS_AUDIO_CHOICE -I/root/kvm-userspace/qemu/slirp -I /root/kvm-userspace/qemu/../libkvm -I /root/kvm-userspace/libfdt -O2 -g
-fno-strict-aliasing -Wall -Wundef -Wendif-labels -Wwrite-strings -I
/root/kvm-userspace/kernel/include -c -o ppc440_bamboo.o /root/kvm-userspace/qemu/hw/ppc440_bamboo.c /root/kvm-userspace/qemu/hw/ppc440_bamboo.c: In function 'bamboo_init':
/root/kvm-userspace/qemu/hw/ppc440_bamboo.c:108: warning: passing argument 2 of 'load_uimage' from incompatible pointer type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:108: warning: passing argument 3 of 'load_uimage' from incompatible pointer type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:108: error: too many arguments to function 'load_uimage' /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:139: warning: passing argument 1 of 'read_proc_dt_prop_cell' discards qualifiers from pointer target type
/root/kvm-userspace/qemu/hw/ppc440_bamboo.c:140: warning: passing argument 1 of 'read_proc_dt_prop_cell' discards qualifiers from pointer target type
/root/kvm-userspace/qemu/hw/ppc440_bamboo.c:173: warning: passing argument 2 of 'dt_cell' discards qualifiers from pointer target type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:173: warning: passing argument 3 of 'dt_cell' discards qualifiers from pointer target type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:174: warning: passing argument 2 of 'dt_cell' discards qualifiers from pointer target type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:174: warning: passing argument 3 of 'dt_cell' discards qualifiers from pointer target type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:176: warning: passing argument 2 of 'dt_cell_multi' discards qualifiers from pointer target type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:176: warning: passing argument 3 of 'dt_cell_multi' discards qualifiers from pointer target type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:177: warning: passing argument 2 of 'dt_cell' discards qualifiers from pointer target type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:177: warning: passing argument 3 of 'dt_cell' discards qualifiers from pointer target type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:179: warning: passing argument 2 of 'dt_cell' discards qualifiers from pointer target type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:179: warning: passing argument 3 of 'dt_cell' discards qualifiers from pointer target type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:180: warning: passing argument 2 of 'dt_string' discards qualifiers from pointer target type /root/kvm-userspace/qemu/hw/ppc440_bamboo.c:180: warning: passing argument 3 of 'dt_string' discards qualifiers from pointer target type make[2]: *** [ppc440_bamboo.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[2]: Leaving directory `/root/kvm-userspace/qemu/ppcemb-softmmu' make[1]: *** [subdir-ppcemb-softmmu] Error 2
make[1]: Leaving directory `/root/kvm-userspace/qemu'
make: *** [qemu] Error 2

--
Giuseppe

#1 lore raw

Hi Hollis,
no I don't have a 440, I have only many 970 :-|
So I can't hope that KVM will support 970 cpus? Qemu already support this, why for KVM is so difficoult?
Noone is interested? Or the problem is the HW to develop/test on?

I can participate only as tester, I'm not a developer, but I can provide the HW for the cause.

Thanks.
Giuseppe.

Hollis Blanchard ha scritto:

Quoted 16 lines

Hi Giuseppe, thanks for your mail. Feel free to CC [email protected] in the future, too... :)

On Mon, 2008-12-01 at 15:08 +0100, Giuseppe Falsetti wrote:

Sorry about that... I'm currently in the process of merging PowerPC KVM support into upstream qemu, and due to this the kvm qemu fork has broken.

These are annoying, but just warnings so we can ignore them for now.

I can provide you a patch to get you going again right now, but just to
clarify: do you have a 440 system you're going to be running KVM on, and the G5 is just your build how? There currently is no KVM support for 970...

#2 lore raw
In reply to Giuseppe Falsetti
Quoted 4 lines · Giuseppe Falsetti

Hi Hollis,
no I don't have a 440, I have only many 970 :-|
So I can't hope that KVM will support 970 cpus? Qemu already support this, why for KVM is so difficoult?

Implementing KVM for 970 would require emulating the 970 core in the kernel (probably the MMU would be the most difficult). I won't say this is easier or harder than qemu, but it's hard in different ways.

Quoted 1 line

Noone is interested? Or the problem is the HW to develop/test on?

I can't speak for anybody else, but I think it's mostly interest. I have a G5 at home, but not enough time/interest to work on KVM for it.

Quoted 2 lines

I can participate only as tester, I'm not a developer, but I can provide the HW for the cause.

Unfortunately at this point some pretty low-level development is required. Thanks for your offer though; maybe somebody else on this list will be interested.

Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center
#3 lore raw
In reply to Giuseppe Falsetti

Hollis Blanchard ha scritto:

Quoted 8 lines · Giuseppe Falsetti
Quoted 6 lines

Hi Hollis,
no I don't have a 440, I have only many 970 :-|
So I can't hope that KVM will support 970 cpus? Qemu already support this, why for KVM is so difficoult?

Quoted 4 lines

Implementing KVM for 970 would require emulating the 970 core in the kernel (probably the MMU would be the most difficult). I won't say this is easier or harder than qemu, but it's hard in different ways.

Sorry, but, for example if I want to emulate an x86 system on a 970 Host, I need to emulate an x86 core and not the 970.
Or not? Obviously the emulation is slowly with and without 970 features optimizations.

Quoted 7 lines
Quoted 2 lines

Noone is interested? Or the problem is the HW to develop/test on?

I can't speak for anybody else, but I think it's mostly interest. I have a G5 at home, but not enough time/interest to work on KVM for it.

Quoted 8 lines
Quoted 3 lines

I can participate only as tester, I'm not a developer, but I can provide the HW for the cause.

Unfortunately at this point some pretty low-level development is required. Thanks for your offer though; maybe somebody else on this list will be interested.

I hope :-)

Giuseppe.

#4 lore raw
In reply to Giuseppe Falsetti
Quoted 9 lines · Giuseppe Falsetti

Hollis Blanchard ha scritto:

Quoted 8 lines · Giuseppe Falsetti
Quoted 6 lines

Hi Hollis,
no I don't have a 440, I have only many 970 :-|
So I can't hope that KVM will support 970 cpus? Qemu already support this, why for KVM is so difficoult?

Quoted 8 lines
Quoted 4 lines

Implementing KVM for 970 would require emulating the 970 core in the kernel (probably the MMU would be the most difficult). I won't say this is easier or harder than qemu, but it's hard in different ways.

Sorry, but, for example if I want to emulate an x86 system on a 970 Host, I need to emulate an x86 core and not the 970.
Or not? Obviously the emulation is slowly with and without 970 features optimizations.

KVM (and hypervisors in general) only execute guests of the same instruction set as the host. The reason this is faster than pure emulation is that the majority of instructions execute natively on the processor, with only infrequent intervention required by software (the hypervisor).

So KVM won't let you run an x86 system on a 970 processor; that's what qemu is for. Unlike KVM, qemu actually translates the x86 instructions into PowerPC ones.

Signature · 2 lines
Hollis Blanchard
IBM Linux Technology Center