Bug 78892

Summary: configure: error: Could not find clang internal header stddef.h in /usr/lib64/llvm/clang/3.4 Use --with-clang-libdir to specify the correct path to the clang libraries.
Product: Mesa Reporter: Vinson Lee <vlee>
Component: OtherAssignee: mesa-dev
Status: RESOLVED NOTABUG QA Contact:
Severity: blocker    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Vinson Lee 2014-05-19 07:56:19 UTC
mesa: 9e74de884a0595e577ebdfb7c7c13f4fd4d4dff5 (master 10.3.0-devel)

configure error on Fedora 21. stddef.h is located at /usr/lib/clang/3.4/include/stddef.h.

$ ./autogen.sh --enable-opencl
[...]
checking for llvm-config... /usr/bin/llvm-config
configure: error: Could not find clang internal header stddef.h in /usr/lib64/llvm/clang/3.4 Use --with-clang-libdir to specify the correct path to the clang libraries.
Comment 1 Serge Martin 2015-02-28 18:55:30 UTC
Mesa looks for the standard installation path.
It seems that Fedora install the header in another one. As sugested by the error message you should use --with-clang-libdir=/usr/lib64/llvm/clang/3.4

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.