Bug 57859 - [bisected] os_time.c:77: undefined reference to `clock_gettime'
Summary: [bisected] os_time.c:77: undefined reference to `clock_gettime'
Status: RESOLVED DUPLICATE of bug 57852
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: git
Hardware: Other All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-12-04 02:00 UTC by Alexandre Demers
Modified: 2012-12-04 04:01 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Alexandre Demers 2012-12-04 02:00:56 UTC
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
Comment 1 Alexandre Demers 2012-12-04 02:08:02 UTC
Introduced by 16f0d70ffe6d42d22b9e6b927b297e75a199aa78
Comment 2 Alexandre Demers 2012-12-04 02:08:53 UTC
(In reply to comment #1)
> Introduced by 16f0d70ffe6d42d22b9e6b927b297e75a199aa78


llvmpipe: Implement PIPE_QUERY_TIMESTAMP and PIPE_QUERY_TIME_ELAPSED.
José Fonseca<jfonseca@vmware.com>
James Benton<jbenton@vmware.com>
12/3/12 2:00 AM
gallivm: fix srgb format fetch
mesa: remove warning message in _mesa_reference_renderbuf...
master (gallium/auxiliary: Add -fno-rtti to CXXFLAGS on LLVM >= 3.2.) 
origin/master (gallium/auxiliary: Add -fno-rtti to CXXFLAGS on LLVM >= 3.2.) 
snb-magic (graw: Add struct pipe_surface forward declaration.)
Comment 3 Alexandre Demers 2012-12-04 02:29:02 UTC
Missing "-lrt" in the linker command.
Comment 4 Matt Turner 2012-12-04 04:01:20 UTC

*** This bug has been marked as a duplicate of bug 57852 ***


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.