[Buildroot] [git commit branch/2020.02.x] package/llvm: specify LLVM_ENABLE_BINDINGS=OFF

Peter Korsgaard peter at korsgaard.com
Fri Mar 27 22:18:18 UTC 2020

commit: https://git.buildroot.net/buildroot/commit/?id=ff495fd1a162583b71cac20101ae5583da4035c1
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2020.02.x

LLVM builds bindings for other languages such as Go and OCaml when the
appropriate dependencies can be found. We currently don't support
building these bindings in Buildroot, as they're currently unused by any

Building these bindings was originally disabled by overriding the
dependencies with values indicating that they were not found.

Newer versions of LLVM no longer disable the OCaml bindings when overriding
OCAMLFIND. Consequently, the build process attempts to install the bindings
to the default location on the host of /usr/lib/ocaml/llvm, causing a
permissions error and build failure.

Additionally, LLVM has since added the variable LLVM_ENABLE_BINDINGS to
control whether bindings are enabled, so we override that to disable the

Signed-off-by: Joseph Kogut <joseph.kogut at gmail.com>
Reviewed-by: Romain Naour <romain.naour at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit e6a1ee9a8aee9faecb8d1d1bdd8697d18c23b605)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
 package/llvm/llvm.mk | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/llvm/llvm.mk b/package/llvm/llvm.mk
index 28ad6a5704..f1034f0365 100644
--- a/package/llvm/llvm.mk
+++ b/package/llvm/llvm.mk
 # check preventively. Building the Go and OCaml bindings is yet unsupported.
 # Builds a release host tablegen that gets used during the LLVM build.

More information about the buildroot mailing list