[Mesa-dev] [Bug 57866] New: src/gallium/auxiliary/os/os_time.c:77: error:=?UTF-8?Q?=20=E2=80=98CLOCK=5FREALTIME=E2=80=99=20undeclared=20?=(first use in this function)

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Dec 3 23:09:44 PST 2012


https://bugs.freedesktop.org/show_bug.cgi?id=57866

          Priority: medium
            Bug ID: 57866
                CC: jfonseca at vmware.com
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: src/gallium/auxiliary/os/os_time.c:77: error:
                    ‘CLOCK_REALTIME’ undeclared (first use in this
                    function)
          Severity: blocker
    Classification: Unclassified
                OS: Mac OS X (All)
          Reporter: vlee at freedesktop.org
          Hardware: x86-64 (AMD64)
            Status: NEW
           Version: git
         Component: Other
           Product: Mesa

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 at 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 at redhat.com>
    Signed-off-by: José Fonseca <jfonseca at vmware.com>

:040000 040000 dd23bb4dce38136b225871f7d9e45735ba288f8b
c67764b6789feb066882d829e66e16b7f3b7b552 M    src
bisect run success

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121204/d4e0848d/attachment.html>


More information about the mesa-dev mailing list