You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In use_absolute_paths_llvm is false, then the libtool symlink is created. However, symlinks are not created if the paths are absolute. Unfortunately, this means that libtool is not symlinked to llvm-libtool-darwin.
This is as far as I got. I think the correct solution here is probably to call llvm-libtool-darwin directly, rather than symlinking it.
Or, you know, don’t use a local version of LLVM. But this is a difficult approach—the LLVM + Clang download is large (1 GB) and seems to fail (maybe just due to its size), and the extracted archive is over 5 GB.
The text was updated successfully, but these errors were encountered:
Libtool is called as
libtool
instead ofllvm-libtool-darwin
if you use an LLVM that is installed locally on your system, on Darwin.How to Reproduce
/opt/llvm-18
),llvm_toolchain
with the toolchain root set to that path,Here is a Gist that can reproduce the issue: https://gist.github.com/depp/712aea59c1699c19a658852db53511a1
/opt/llvm-18
.bazel build //:example
in the Gist.What hapens
Bazel will invoke
/opt/lvm-18/bin/libtool
. This fails, becauselibtool
should bellvm-libtool-darwin
.What causes this?
I see in
toolchain/internal/configure.bzl
, this code:In
use_absolute_paths_llvm
is false, then thelibtool
symlink is created. However, symlinks are not created if the paths are absolute. Unfortunately, this means thatlibtool
is not symlinked tollvm-libtool-darwin
.This is as far as I got. I think the correct solution here is probably to call
llvm-libtool-darwin
directly, rather than symlinking it.Workaround
Or, you know, don’t use a local version of LLVM. But this is a difficult approach—the LLVM + Clang download is large (1 GB) and seems to fail (maybe just due to its size), and the extracted archive is over 5 GB.
The text was updated successfully, but these errors were encountered: