Bug 93524

Summary: Clover doesn't build
Product: Mesa Reporter: Koop Mast <kwm>
Component: OtherAssignee: mesa-dev
Status: RESOLVED FIXED QA Contact: mesa-dev
Severity: normal    
Priority: medium    
Version: 11.0   
Hardware: Other   
OS: FreeBSD   
Whiteboard:
i915 platform: i915 features:
Attachments: Add LIBELF_CFLAGS to fix the build.

Description Koop Mast 2015-12-28 19:41:47 UTC
Created attachment 120719 [details] [review]
Add LIBELF_CFLAGS to fix the build.

When libelf is installed in a location not in the default search locations for header. Clover will not build.

  CXX      tgsi/libcltgsi_la-compiler.lo
  CXX      llvm/libclllvm_la-invocation.lo
  CXXLD    libcltgsi.la
llvm/invocation.cpp:77:20: fatal error: libelf.h: No such file or directory
compilation terminated.
Makefile:861: recipe for target 'llvm/libclllvm_la-invocation.lo' failed
gmake[4]: *** [llvm/libclllvm_la-invocation.lo] Error 1
gmake[4]: *** Waiting for unfinished jobs....
Comment 1 Michel Dänzer 2016-01-06 03:25:47 UTC
Please send the patch to the mesa-dev mailing list for review, with the commit log changed to something like:

 clover: Add libelf cflags

 Fixes the build when libelf is in a non default location.
Comment 2 Emil Velikov 2016-02-29 11:30:10 UTC
Just tweaked the patch and landed it in master. It should find it's way in the stable branches in due time.

For the future, please send patches directly to the mailing list.
Thanks

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.