Bug 55606

Summary: r300_dri.so.tmp: tries to link to yylex
Product: Mesa Reporter: treeve
Component: Drivers/Gallium/r300Assignee: Default DRI bug account <dri-devel>
Status: RESOLVED INVALID QA Contact:
Severity: blocker    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Full compile log

Description treeve 2012-10-04 08:57:10 UTC
Created attachment 68068 [details]
Full compile log

make[3]: Entering directory `/var/git/mesalib/src/gallium/targets/dri-r300'
/bin/sh ../../../../bin/mklib -o r300_dri.so.tmp -noprefix -linker 'g++' -ldflags '-s -L/usr/lib  -s -ldl -lpthread' \
        target.o ../../../../src/mesa/drivers/dri/common/utils.o ../../../../src/mesa/drivers/dri/common/dri_util.o ../../../../src/mesa/drivers/dri/common/xmlconfig.o   ../../../../src/gallium/state_trackers/dri/drm/libdridrm.a ../../../../src/gallium/winsys/radeon/drm/libradeonwinsys.a ../../../../src/gallium/drivers/galahad/libgalahad.a ../../../../src/gallium/drivers/trace/libtrace.a ../../../../src/gallium/drivers/rbug/librbug.a ../../../../src/gallium/drivers/r300/libr300.a \
                -Wl,--start-group ../../../../src/mesa/libmesagallium.a ../../../../src/gallium/auxiliary/libgallium.a -Wl,--end-group \
                 ../../../../lib/libdricore9.0.0.so  -ldrm   -lexpat -lm  -ldl -ldrm_radeon -lLLVMMCJIT -lLLVMBitWriter -lLLVMX86AsmParser -lLLVMX86Disassembler -lLLVMX86CodeGen -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMMCParser -lLLVMX86Desc -lLLVMX86Info -lLLVMX86AsmPrinter -lLLVMX86Utils -lLLVMJIT -lLLVMRuntimeDyld -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC -lLLVMObject -lLLVMCore -lLLVMSupport
mklib: Making Linux shared library:  r300_dri.so.tmp
g++ -march=native -mtune=native -m64 -pipe -ffast-math -funroll-loops -O3 -Wall -std=c99 -Werror=implicit-function-declaration -Werror=missing-prototypes -fno-strict-aliasing -fno-builtin-memcmp -fPIC -D_GNU_SOURCE -DUSE_X86_64_ASM -DHAVE_DLOPEN -DHAVE_POSIX_MEMALIGN -DIN_DRI_DRIVER -DUSE_XCB -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_TLS -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DHAVE_ALIAS -DHAVE_MINCORE -DHAVE_LIBUDEV -DHAVE_LLVM=0x0301 -fvisibility=hidden -o r300_dri.so.test ../../../../src/mesa/drivers/dri/common/dri_test.o r300_dri.so.tmp ../../../../lib/libdricore9.0.0.so  -ldrm   -lexpat -lm  -ldl -ldrm_radeon -s -L/usr/lib  -s -ldl -lpthread;
r300_dri.so.tmp: undefined reference to `yylex'
collect2: error: ld returned 1 exit status
make[3]: *** [r300_dri.so] Error 1



I have the following software:llvm
llvm-3.1
gcc-4.7.2
bison-2.6.2
libdrm-2.4.39

Using mesalib git branch 9.0, commit b2048c5e905cb6321212e33391926fc720b89121
Comment 1 Tomasz P. 2012-10-04 14:54:16 UTC
I am using mesa-git from today and it works but I use also libdrm-git
Comment 2 Tomasz P. 2012-12-05 17:05:53 UTC
Get rid of the cached results / try to compile from scratch.

Cannot reproduce that.

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.