<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Priority</th>
<td>medium
</td>
</tr>
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - os_time.c:77: undefined reference to `clock_gettime'"
href="https://bugs.freedesktop.org/show_bug.cgi?id=57859">57859</a>
</td>
</tr>
<tr>
<th>Assignee</th>
<td>mesa-dev@lists.freedesktop.org
</td>
</tr>
<tr>
<th>Summary</th>
<td>os_time.c:77: undefined reference to `clock_gettime'
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>OS</th>
<td>All
</td>
</tr>
<tr>
<th>Reporter</th>
<td>alexandre.f.demers@gmail.com
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Other
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Version</th>
<td>git
</td>
</tr>
<tr>
<th>Component</th>
<td>Mesa core
</td>
</tr>
<tr>
<th>Product</th>
<td>Mesa
</td>
</tr></table>
<p>
<div>
<pre>With latest build (21694b8eacbf63f8abdee6340510c0458a25a7fb), kernel 3.7.0-rc7
64bit, building mesa is OK, but installing fails with the following error
message:
make[3]: Entering directory
`/home/dema1701/projects/display/mesa/src/gallium/targets/gbm'
/usr/bin/install -c -d /usr/lib/x86_64-linux-gnu/gbm
/bin/sh ../../../../bin/minstall
../../../../x86_64-linux-gnu/gbm/gbm_gallium_drm.so
/usr/lib/x86_64-linux-gnu/gbm
make[4]: Entering directory
`/home/dema1701/projects/display/mesa/src/gallium/targets/pipe-loader'
/bin/sh ../../../../bin/mklib -o pipe_r600.so -noprefix -linker 'g++' \
-ldflags '-L../../../../x86_64-linux-gnu -Wl,--no-undefined -L/usr/lib/llvm
-lpthread -lffi -ldl -lm ' \
pipe_r600.o \
-Wl,--start-group ../../../../src/gallium/drivers/identity/libidentity.a
../../../../src/gallium/drivers/galahad/libgalahad.a
../../../../src/gallium/drivers/trace/libtrace.a
../../../../src/gallium/drivers/rbug/librbug.a
../../../../src/gallium/auxiliary/libgallium.a
../../../../src/gallium/winsys/radeon/drm/libradeonwinsys.a
../../../../src/gallium/drivers/r600/libr600.a -Wl,--end-group \
-L/usr/lib/x86_64-linux-gnu/ -ldrm -lm -lpthread -ldl -lLLVMMCJIT
-lLLVMBitWriter -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG
-lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86Disassembler -lLLVMX86Desc
-lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMRuntimeDyld
-lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine
-lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC
-lLLVMObject -lLLVMCore -lLLVMSupport -ldrm_radeon
mklib: Making Linux shared library: pipe_r600.so
../../../../src/gallium/auxiliary/libgallium.a(os_time.o): In function
`os_time_get_nano':
/home/dema1701/projects/display/mesa/src/gallium/auxiliary/os/os_time.c:77:
undefined reference to `clock_gettime'
collect2: error: ld returned 1 exit status
/bin/sh ../../../../bin/mklib -o pipe_swrast.so -noprefix -linker 'g++' \
-ldflags '-L../../../../x86_64-linux-gnu -Wl,--no-undefined -L/usr/lib/llvm
-lpthread -lffi -ldl -lm ' \
pipe_swrast.o \
-Wl,--start-group ../../../../src/gallium/drivers/identity/libidentity.a
../../../../src/gallium/drivers/galahad/libgalahad.a
../../../../src/gallium/drivers/trace/libtrace.a
../../../../src/gallium/drivers/rbug/librbug.a
../../../../src/gallium/auxiliary/libgallium.a
../../../../src/gallium/drivers/llvmpipe/libllvmpipe.a -Wl,--end-group \
-L/usr/lib/x86_64-linux-gnu/ -ldrm -lm -lpthread -ldl -lLLVMMCJIT
-lLLVMBitWriter -lLLVMX86AsmParser -lLLVMX86CodeGen -lLLVMSelectionDAG
-lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86Disassembler -lLLVMX86Desc
-lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMRuntimeDyld
-lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine
-lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC
-lLLVMObject -lLLVMCore -lLLVMSupport
mklib: Making Linux shared library: pipe_swrast.so
../../../../src/gallium/auxiliary/libgallium.a(os_time.o): In function
`os_time_get_nano':
/home/dema1701/projects/display/mesa/src/gallium/auxiliary/os/os_time.c:77:
undefined reference to `clock_gettime'
collect2: error: ld returned 1 exit status
/usr/bin/install -c -d //usr/lib/x86_64-linux-gnu/gbm
for tgt in pipe_r600.so pipe_vmwgfx.so pipe_swrast.so; do \
/bin/sh ../../../../bin/minstall "$tgt" //usr/lib/x86_64-linux-gnu/gbm; \
done
Unknown type of argument: pipe_r600.so
Unknown type of argument: pipe_swrast.so</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>