Fails to compile on MacOS
Public bug reported:
Make fails with:
qemu-thread.c: In function 'qemu_mutex_timedlock':
qemu-thread.c:75: warning: implicit declaration of function 'clock_gettime' qemu-thread.c:75: warning: nested extern declaration of 'clock_gettime' qemu-thread.c:75: error: 'CLOCK_REALTIME' undeclared (first use in this function) qemu-thread.c:75: error: (Each undeclared identifier is reported only once qemu-thread.c:75: error: for each function it appears in.) qemu-thread.c:78: warning: implicit declaration of function 'pthread_mutex_timedlock' qemu-thread.c:78: warning: nested extern declaration of 'pthread_mutex_timedlock' qemu-thread.c: In function 'qemu_cond_timedwait':
qemu-thread.c:143: error: 'CLOCK_REALTIME' undeclared (first use in this function)
make: *** [qemu-thread.o] Error 1
On Git commit commit 79f2b6fcdb7c06cdce6eccc796f5651f3efb843e
Using "configure --enable-io-thread"
** Affects: qemu
Importance: Undecided
Status: New
Signature · 28 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/720787 Title: Fails to compile on MacOS Status in QEMU: New Bug description: Make fails with: qemu-thread.c: In function 'qemu_mutex_timedlock': qemu-thread.c:75: warning: implicit declaration of function 'clock_gettime' qemu-thread.c:75: warning: nested extern declaration of 'clock_gettime' qemu-thread.c:75: error: 'CLOCK_REALTIME' undeclared (first use in this function) qemu-thread.c:75: error: (Each undeclared identifier is reported only once qemu-thread.c:75: error: for each function it appears in.) qemu-thread.c:78: warning: implicit declaration of function 'pthread_mutex_timedlock' qemu-thread.c:78: warning: nested extern declaration of 'pthread_mutex_timedlock' qemu-thread.c: In function 'qemu_cond_timedwait': qemu-thread.c:143: error: 'CLOCK_REALTIME' undeclared (first use in this function) make: *** [qemu-thread.o] Error 1 On Git commit commit 79f2b6fcdb7c06cdce6eccc796f5651f3efb843e Using "configure --enable-io-thread"
It's moved on a bit. Qemu still fails to compile, but this is the latest error:
CC i386-darwin-user/main.o
cc1: warning: /Users/nigel/src/qemu/darwin-user/i386: No such file or directory
Signature · 28 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/720787 Title: Fails to compile on MacOS Status in QEMU: New Bug description: Make fails with: qemu-thread.c: In function 'qemu_mutex_timedlock': qemu-thread.c:75: warning: implicit declaration of function 'clock_gettime' qemu-thread.c:75: warning: nested extern declaration of 'clock_gettime' qemu-thread.c:75: error: 'CLOCK_REALTIME' undeclared (first use in this function) qemu-thread.c:75: error: (Each undeclared identifier is reported only once qemu-thread.c:75: error: for each function it appears in.) qemu-thread.c:78: warning: implicit declaration of function 'pthread_mutex_timedlock' qemu-thread.c:78: warning: nested extern declaration of 'pthread_mutex_timedlock' qemu-thread.c: In function 'qemu_cond_timedwait': qemu-thread.c:143: error: 'CLOCK_REALTIME' undeclared (first use in this function) make: *** [qemu-thread.o] Error 1 On Git commit commit 79f2b6fcdb7c06cdce6eccc796f5651f3efb843e Using "configure --enable-io-thread"
Nigel's error is also topic in bug
https://bugs.launchpad.net/qemu/+bug/726962
Signature · 28 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/720787 Title: Fails to compile on MacOS Status in QEMU: New Bug description: Make fails with: qemu-thread.c: In function 'qemu_mutex_timedlock': qemu-thread.c:75: warning: implicit declaration of function 'clock_gettime' qemu-thread.c:75: warning: nested extern declaration of 'clock_gettime' qemu-thread.c:75: error: 'CLOCK_REALTIME' undeclared (first use in this function) qemu-thread.c:75: error: (Each undeclared identifier is reported only once qemu-thread.c:75: error: for each function it appears in.) qemu-thread.c:78: warning: implicit declaration of function 'pthread_mutex_timedlock' qemu-thread.c:78: warning: nested extern declaration of 'pthread_mutex_timedlock' qemu-thread.c: In function 'qemu_cond_timedwait': qemu-thread.c:143: error: 'CLOCK_REALTIME' undeclared (first use in this function) make: *** [qemu-thread.o] Error 1 On Git commit commit 79f2b6fcdb7c06cdce6eccc796f5651f3efb843e Using "configure --enable-io-thread"
These compile errors have all been fixed some time ago.
** Changed in: qemu
Status: New => Fix Released
Signature · 31 lines
You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/720787 Title: Fails to compile on MacOS Status in QEMU: Fix Released Bug description: Make fails with: qemu-thread.c: In function 'qemu_mutex_timedlock': qemu-thread.c:75: warning: implicit declaration of function 'clock_gettime' qemu-thread.c:75: warning: nested extern declaration of 'clock_gettime' qemu-thread.c:75: error: 'CLOCK_REALTIME' undeclared (first use in this function) qemu-thread.c:75: error: (Each undeclared identifier is reported only once qemu-thread.c:75: error: for each function it appears in.) qemu-thread.c:78: warning: implicit declaration of function 'pthread_mutex_timedlock' qemu-thread.c:78: warning: nested extern declaration of 'pthread_mutex_timedlock' qemu-thread.c: In function 'qemu_cond_timedwait': qemu-thread.c:143: error: 'CLOCK_REALTIME' undeclared (first use in this function) make: *** [qemu-thread.o] Error 1 On Git commit commit 79f2b6fcdb7c06cdce6eccc796f5651f3efb843e Using "configure --enable-io-thread" To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/720787/+subscriptions