Skip to contentSkip to conversation

Fails to compile on MacOS

Qemu-devel Nigel Horne 2 participants 4 messages Feb 17, 2011 – Jul 26, 2013

lore
Share & tools
lore
#0 lore raw

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

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"
#2 lore raw
In reply to Nigel Horne

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"
#3 lore raw
In reply to Nigel Horne

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