qemu master build errors
/scm/qemu/exec.c:720:51: error: initialization from incompatible pointer type [-Werror]
static void *(*phys_mem_alloc)(ram_addr_t size) = qemu_anon_ram_alloc;
^
/scm/qemu/exec.c: In function ‘qemu_ram_alloc_from_ptr’:
/scm/qemu/exec.c:1107:32: error: comparison of distinct pointer types lacks a cast [-Werror]
if (phys_mem_alloc != qemu_anon_ram_alloc) {
^
/scm/qemu/exec.c: In function ‘qemu_ram_remap’:
/scm/qemu/exec.c:1251:38: error: comparison of distinct pointer types lacks a cast [-Werror]
assert(phys_mem_alloc == qemu_anon_ram_alloc);
^cc1: all warnings being treated as errors
make[1]: *** [exec.o] Error 1
make: *** [subdir-cris-softmmu] Error 2
make: *** Waiting for unfinished jobs....
CC arm-softmmu/translate-all.o
/scm/qemu/exec.c:720:51: error: initialization from incompatible pointer type [-Werror]
static void *(*phys_mem_alloc)(ram_addr_t size) = qemu_anon_ram_alloc;
^
/scm/qemu/exec.c: In function ‘qemu_ram_alloc_from_ptr’:
/scm/qemu/exec.c:1107:32: error: comparison of distinct pointer types lacks a cast [-Werror]
if (phys_mem_alloc != qemu_anon_ram_alloc) {
^
/scm/qemu/exec.c: In function ‘qemu_ram_remap’:
/scm/qemu/exec.c:1251:38: error: comparison of distinct pointer types lacks a cast [-Werror]
assert(phys_mem_alloc == qemu_anon_ram_alloc);
^cc1: all warnings being treated as errors
make[1]: *** [exec.o] Error 1
make: *** [subdir-alpha-softmmu] Error 2
CC arm-softmmu/cpu-exec.o
CC arm-softmmu/tcg/tcg.o
/scm/qemu/exec.c:720:51: error: initialization from incompatible pointer type [-Werror]
static void *(*phys_mem_alloc)(ram_addr_t size) = qemu_anon_ram_alloc;
^
/scm/qemu/exec.c: In function ‘qemu_ram_alloc_from_ptr’:
/scm/qemu/exec.c:1107:32: error: comparison of distinct pointer types lacks a cast [-Werror]
if (phys_mem_alloc != qemu_anon_ram_alloc) {
^
/scm/qemu/exec.c: In function ‘qemu_ram_remap’:
/scm/qemu/exec.c:1251:38: error: comparison of distinct pointer types lacks a cast [-Werror]
assert(phys_mem_alloc == qemu_anon_ram_alloc);
^cc1: all warnings being treated as errors
make[1]: *** [exec.o] Error 1
make[1]: *** Waiting for unfinished jobs....
CC i386-softmmu/translate-all.o
/scm/qemu/exec.c:720:51: error: initialization from incompatible pointer type [-Werror]
static void *(*phys_mem_alloc)(ram_addr_t size) = qemu_anon_ram_alloc;
^
/scm/qemu/exec.c: In function ‘qemu_ram_alloc_from_ptr’:
/scm/qemu/exec.c:1107:32: error: comparison of distinct pointer types lacks a cast [-Werror]
if (phys_mem_alloc != qemu_anon_ram_alloc) {
^
/scm/qemu/exec.c: In function ‘qemu_ram_remap’:
/scm/qemu/exec.c:1251:38: error: comparison of distinct pointer types lacks a cast [-Werror]
assert(phys_mem_alloc == qemu_anon_ram_alloc);
^cc1: all warnings being treated as errors
Quoted 7 lines · Michael S. Tsirkin
/scm/qemu/exec.c:720:51: error: initialization from incompatible pointer type [-Werror]
static void *(*phys_mem_alloc)(ram_addr_t size) = qemu_anon_ram_alloc; ^ /scm/qemu/exec.c: In function ‘qemu_ram_alloc_from_ptr’: /scm/qemu/exec.c:1107:32: error: comparison of distinct pointer types lacks a cast [-Werror] if (phys_mem_alloc != qemu_anon_ram_alloc) { ^
It could have to do with the fact build is done on a 32 bit machine.
Quoted 11 lines · Michael S. Tsirkin
/scm/qemu/exec.c:720:51: error: initialization from incompatible pointer type [-Werror]
static void *(*phys_mem_alloc)(ram_addr_t size) = qemu_anon_ram_alloc; ^ /scm/qemu/exec.c: In function ‘qemu_ram_alloc_from_ptr’: /scm/qemu/exec.c:1107:32: error: comparison of distinct pointer types lacks a cast [-Werror] if (phys_mem_alloc != qemu_anon_ram_alloc) { ^ /scm/qemu/exec.c: In function ‘qemu_ram_remap’: /scm/qemu/exec.c:1251:38: error: comparison of distinct pointer types lacks a cast [-Werror] assert(phys_mem_alloc == qemu_anon_ram_alloc); ^
Quoted 2 lines
cc1: all warnings being treated as errors
make[1]: *** [exec.o] Error 1
[...]
Fix has been on list for a while:
https://lists.nongnu.org/archive/html/qemu-devel/2013-09/msg04685.html
Quoted 15 lines · Markus Armbruster
Quoted 11 lines · Michael S. Tsirkin
/scm/qemu/exec.c:720:51: error: initialization from incompatible pointer type [-Werror]
static void *(*phys_mem_alloc)(ram_addr_t size) = qemu_anon_ram_alloc; ^ /scm/qemu/exec.c: In function ‘qemu_ram_alloc_from_ptr’: /scm/qemu/exec.c:1107:32: error: comparison of distinct pointer types lacks a cast [-Werror] if (phys_mem_alloc != qemu_anon_ram_alloc) { ^ /scm/qemu/exec.c: In function ‘qemu_ram_remap’: /scm/qemu/exec.c:1251:38: error: comparison of distinct pointer types lacks a cast [-Werror] assert(phys_mem_alloc == qemu_anon_ram_alloc); ^Quoted 2 lines
cc1: all warnings being treated as errors
make[1]: *** [exec.o] Error 1
Quoted 4 lines
[...]
Fix has been on list for a while:
https://lists.nongnu.org/archive/html/qemu-devel/2013-09/msg04685.html
Well who's picking it up?
Quoted 5 lines · Michael S. Tsirkin
Quoted 3 lines · Markus Armbruster
Quoted 1 line · Michael S. Tsirkin
/scm/qemu/exec.c:720:51: error: initialization from incompatible
pointer type [-Werror]
Quoted 1 line
Quoted 1 line
Quoted 1 line
static void *(*phys_mem_alloc)(ram_addr_t size) =
qemu_anon_ram_alloc;
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
^/scm/qemu/exec.c: In function ‘qemu_ram_alloc_from_ptr’:
/scm/qemu/exec.c:1107:32: error: comparison of distinct pointer types
lacks a cast [-Werror]
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
if (phys_mem_alloc != qemu_anon_ram_alloc) { ^/scm/qemu/exec.c: In function ‘qemu_ram_remap’:
/scm/qemu/exec.c:1251:38: error: comparison of distinct pointer types
lacks a cast [-Werror]
Quoted 11 lines
Quoted 8 lines
Quoted 4 lines
assert(phys_mem_alloc == qemu_anon_ram_alloc); ^cc1: all warnings being treated as errors
make[1]: *** [exec.o] Error 1[...]
Fix has been on list for a while:
https://lists.nongnu.org/archive/html/qemu-devel/2013-09/msg04685.htmlWell who's picking it up?
I'll push this morning.
Regards,
Anthony Liguori