#2098 closed defect
CLOCK_PROCESS_CPUTIME_ID
Reported by: | cynt6007 | Owned by: | Joel Sherrill |
---|---|---|---|
Priority: | normal | Milestone: | 4.11 |
Component: | score | Version: | 4.11 |
Severity: | normal | Keywords: | |
Cc: | Blocked By: | ||
Blocking: |
Description (last modified by Joel Sherrill)
Host: pcbsd-9.1
Target: m68k-rtems
Tools were built from ports in accordance with:
http://www.rtems.org/wiki/index.php/FreeBSD_Ports
Call to configure:
../rtems/configure --target=m68k-rtems --enable-networking
Error:
...
checking whether env_unlock is declared... yes
checking whether CLOCK_PROCESS_CPUTIME_ID is declared... no
configure: error: missing define CLOCK_PROCESS_CPUTIME_ID
configure: error: /bin/sh '../../../../../rtems/c/src/../../cpukit/configure' failed for ../../cpukit
gmake[2]: * [av5282] Error 1
gmake[2]: Leaving directory `/usr/home/pcbsd/b-rtems/m68k-rtems/c'
gmake[1]: * [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/home/pcbsd/b-rtems/m68k-rtems/c
Change History (3)
comment:1 Changed on 03/24/13 at 13:37:39 by Joel Sherrill
comment:2 Changed on 11/23/14 at 16:47:05 by Joel Sherrill
Description: | modified (diff) |
---|---|
Resolution: | → fixed |
Status: | new → closed |
Constant is in current code.
comment:3 Changed on 11/24/14 at 18:58:28 by Gedare Bloom
Version: | HEAD → 4.11 |
---|
Replace Version=HEAD with Version=4.11 for the tickets with Milestone >= 4.11
Two mistakes:
(1) CFLAGS+="CLOCK_PROCESS_CPUTIME_ID" is not a valid CFLAGS, it would need to be
CFLAGS+="-DCLOCK_PROCESS_CPUTIME_ID" to define the symbol.
(2) This constant should be defined somewhere in newlib when the feature flag _POSIX_CPUTIME is defined.
Why were you trying to define it? :)