[Mesa-dev] cant compile with llvmpipe enabled

Francis Galiegue fgaliegue at gmail.com
Mon May 3 04:26:52 PDT 2010


On Mon, May 3, 2010 at 12:52 PM,  <yaiba.kurogane at interia.pl> wrote:
> Hey. I get following error when try to compile mesa-git with
> --enable-gallium-llvm.
>
> g++ -Wl,--hash-style=gnu -Wl,--as-needed -L/usr/lib/llvm  -lpthread -lffi
> -ldl -lm  lp_test_format.o lp_test_main.o -o lp_test_format
> -Wl,--start-group   -lXext -lXxf86vm -lXdamage -lXfixes -lX11-xcb -lX11
> -lxcb-glx -lxcb   -ldrm   -lm -lpthread -ldl -L../../auxiliary/ -lgallium
> libllvmpipe.a -lLLVMBitWriter -lLLVMX86CodeGen -lLLVMX86Info
> -lLLVMSelectionDAG -lLLVMAsmPrinter -lLLVMInterpreter -lLLVMJIT
> -lLLVMExecutionEngine -lLLVMCodeGen -lLLVMScalarOpts -lLLVMInstCombine
> -lLLVMTransformUtils -lLLVMipa -lLLVMAnalysis -lLLVMTarget -lLLVMMC
> -lLLVMCore -lLLVMSupport -lLLVMSystem -lstdc++ -Wl,--end-group

[...]

> ../../auxiliary//libgallium.a(u_dl.o): In function `util_dl_open':
> u_dl.c:(.text+0x21): undefined reference to `dlopen'
[...]

Strange that you should have this error since you link against -ldl,
where these (dl*()) functions are defined!

Another strange thing is that -ldl appears _twice_ here, and once only
after -L../../auxiliary, maybe that is the problem (I don't know the
linker that well)?

-- 
Francis Galiegue, fgaliegue at gmail.com
"It seems obvious [...] that at least some 'business intelligence'
tools invest so much intelligence on the business side that they have
nothing left for generating SQL queries" (Stéphane Faroult, in "The
Art of SQL", ISBN 0-596-00894-5)


More information about the mesa-dev mailing list