qemu git master fails to build
Paolo,
On current git master, if I do:
./configure --prefix=/home/somlo/KVM-OSX/SCRATCH --target-list=x86_64-softmmu make clean
make
I end up with:
CC qemu-timer.oqemu-timer.c: In function `init_timer_alarm':
qemu-timer.c:780:5: error: implicit declaration of function pthread_atfork' [-Werror=implicit-function-declaration] qemu-timer.c:780:5: error: nested extern declaration of pthread_atfork' [-Werror=nested-externs]
cc1: all warnings being treated as errors
make: *** [qemu-timer.o] Error 1
A 'git bisect' points at c8122c35e611385b31e2d8ccb059d0687540244a (qemu-timer: reinitialize timers after fork) as the possible culprit. Also, adding '#include <pthread.h>' to qemu-timer.c seems to make it happy.
Thanks,
--Gabriel
Quoted 7 lines · Gabriel L. Somlo
Paolo,
On current git master, if I do:
./configure --prefix=/home/somlo/KVM-OSX/SCRATCH --target-list=x86_64-softmmu make clean
make
I just pushed a fix for this.
Regards,
Anthony Liguori
Quoted 19 lines
I end up with:
CC qemu-timer.o
qemu-timer.c: In function `init_timer_alarm':
qemu-timer.c:780:5: error: implicit declaration of functionpthread_atfork' [-Werror=implicit-function-declaration] qemu-timer.c:780:5: error: nested extern declaration ofpthread_atfork' [-Werror=nested-externs]
cc1: all warnings being treated as errors
make: *** [qemu-timer.o] Error 1A 'git bisect' points at
c8122c35e611385b31e2d8ccb059d0687540244a(qemu-timer: reinitialize timers after fork) as the possible culprit. Also, adding '#include <pthread.h>' toqemu-timer.cseems to make it happy.Thanks,
--Gabriel