Skip to contentSkip to conversation

qemu git master fails to build

Qemu-devel Gabriel L. Somlo 2 participants 2 messages Nov 4, 2012

lore
Share & tools
lore
#0 lore raw

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.o
qemu-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

#1 lore raw
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 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