[Mesa-dev] [PATCH] Android: fix radeonsi building errors on Android O

Rob Herring robh at kernel.org
Wed Sep 6 12:53:24 UTC 2017


On Tue, Sep 5, 2017 at 4:16 AM, Chih-Wei Huang <cwhuang at android-x86.org> wrote:
> The radeonsi driver fails in the error:
>
> [  5% 200/3583] target  C++: libmesa_amd_common_32 <= external/mesa/src/amd/common/ac_llvm_helper.cpp
> In file included from external/mesa/src/amd/common/ac_llvm_helper.cpp:35:
> In file included from external/llvm/include/llvm/ExecutionEngine/ExecutionEngine.h:22:
> In file included from external/llvm/include/llvm/IR/Module.h:21:
> In file included from external/llvm/include/llvm/IR/Function.h:22:
> In file included from external/llvm/include/llvm/IR/Argument.h:19:
> external/llvm/include/llvm/IR/Attributes.h:71:14: fatal error: 'llvm/IR/Attributes.inc' file not found
>     #include "llvm/IR/Attributes.inc"
>              ^~~~~~~~~~~~~~~~~~~~~~~~
> 1 error generated.
>
> The reason is llvm-headers is still necessary to build radeonsi driver.
> However, it's accidentally(?) removed in commit 4734bfc0.

Linking to libLLVM should imply the headers as that's how it used to
work and changing that behavior would break things in AOSP a lot. I
thought I wiped my tree and built from scratch. Or maybe I just get
lucky with the build ordering.

Rob


More information about the mesa-dev mailing list