Bug 29024 - gallium build failure: can't find llvm headers
Summary: gallium build failure: can't find llvm headers
Status: RESOLVED FIXED
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: 2010-07-12 11:49 UTC by nobled
Modified: 2013-08-19 13:28 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description nobled 2010-07-12 11:49:57 UTC
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.
Comment 1 Marek Olšák 2011-03-02 07:14:43 UTC
Is this still an issue with current Mesa git?
Comment 2 Laurent carlier 2013-08-19 13:28:43 UTC
Old and surely fixed


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.