[Mesa-dev] [Bug 29024] New: gallium build failure: can't find llvm headers

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Mon Jul 12 11:49:57 PDT 2010


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

           Summary: gallium build failure: can't find llvm headers
           Product: Mesa
           Version: git
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Mesa core
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: nobled at dreamwidth.org


Trying to build a git checkout from today on Ubuntu Maverick with the
--enable-gallium-llvm option the build fails with this:

gcc -c -o state_tracker/st_cb_feedback.o state_tracker/st_cb_feedback.c
-DFEATURE_GL=0 -I../../include -I../../src/mesa -I../../src/mapi
-I../../src/gallium/include -I../../src/gallium/auxiliary -g -O2 -Wall
-Wmissing-prototypes -std=c99 -ffast-math -fvisibility=hidden
-fno-strict-aliasing  -fPIC  -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM
-DUSE_SSE_ASM -D_GNU_SOURCE -DPTHREADS -DHAVE_POSIX_MEMALIGN -DMESA_SELINUX
-DUSE_XCB -DUSE_EXTERNAL_DXTN_LIB=1 -DIN_DRI_DRIVER -DGLX_DIRECT_RENDERING
-DGLX_INDIRECT_RENDERING -DHAVE_ALIAS -DHAVE_XCB_DRI2 -DHAVE_LIBUDEV
-DGALLIUM_LLVMPIPE -D__STDC_CONSTANT_MACROS -DHAVE_LLVM=0x0207
In file included from ../../src/gallium/auxiliary/draw/draw_pipe.h:37,
                 from state_tracker/st_cb_feedback.c:54:
../../src/gallium/auxiliary/draw/draw_private.h:50:36: error:
llvm-c/ExecutionEngine.h: No such file or directory
In file included from ../../src/gallium/auxiliary/draw/draw_pipe.h:37,
                 from state_tracker/st_cb_feedback.c:54:
../../src/gallium/auxiliary/draw/draw_private.h:267: error: expected
specifier-qualifier-list before 'LLVMExecutionEngineRef'
make[2]: *** [state_tracker/st_cb_feedback.o] Error 1

It looks like it it's missing the -I from `llvm --cflags` in there:

-I/usr/lib/llvm-2.7/include  -DNDEBUG -D_GNU_SOURCE -D__STDC_LIMIT_MACROS
-D__STDC_CONSTANT_MACROS -O2 -fomit-frame-pointer -fPIC

Without --enable-gallium-llvm that file builds fine.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list