Bug 57866 - src/gallium/auxiliary/os/os_time.c:77: error: ‘CLOCK_REALTIME’ undeclared (first use in this function)
Summary: src/gallium/auxiliary/os/os_time.c:77: error: ‘CLOCK_REALTIME’ undeclared (fi...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: git
Hardware: x86-64 (AMD64) Mac OS X (All)
: medium blocker
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-04 07:09 UTC by Vinson Lee
Modified: 2013-01-14 00:28 UTC (History)
1 user (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Vinson Lee 2012-12-04 07:09:44 UTC
mesa: bdba4b30de15c4e7e6546f7eda37932d281f869c (master)

The SCons build on Mac OS X is now failing.

$ scons
  Compiling src/gallium/auxiliary/os/os_time.c ...
src/gallium/auxiliary/os/os_time.c: In function ‘os_time_get_nano’:
src/gallium/auxiliary/os/os_time.c:77: warning: implicit declaration of function ‘clock_gettime’
src/gallium/auxiliary/os/os_time.c:77: error: ‘CLOCK_REALTIME’ undeclared (first use in this function)
src/gallium/auxiliary/os/os_time.c:77: error: (Each undeclared identifier is reported only once
src/gallium/auxiliary/os/os_time.c:77: error: for each function it appears in.)


16f0d70ffe6d42d22b9e6b927b297e75a199aa78 is the first bad commit
commit 16f0d70ffe6d42d22b9e6b927b297e75a199aa78
Author: James Benton <jbenton@vmware.com>
Date:   Mon Dec 3 07:00:37 2012 +0000

    llvmpipe: Implement PIPE_QUERY_TIMESTAMP and PIPE_QUERY_TIME_ELAPSED.
    
    This required an update for the query storage in llvmpipe, there
    can now be an active query per query type, so an occlusion query
    can run at the same time as a time elapsed query.
    
    Based on PIPE_QUERY_TIME_ELAPSED patch from Dave Airlie.
    
    v2: fix up piglits for timers (also from Dave Airlie)
    
    a) if we don't render anything the result is 0, so just
    return the current time
    
    b) add missing screen get_timestamp callback.
    
    Signed-off-by: Dave Airlie <airlied@redhat.com>
    Signed-off-by: José Fonseca <jfonseca@vmware.com>

:040000 040000 dd23bb4dce38136b225871f7d9e45735ba288f8b c67764b6789feb066882d829e66e16b7f3b7b552 M	src
bisect run success
Comment 1 Vinson Lee 2013-01-14 00:28:07 UTC
mesa: 6acef6c5f779ed0ba390f556479c428a36d70edb (master)

SCons build on Mac OS X completes now.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.