-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error during bazel build: cannot find /usr/lib/libc.so.6 #97
Comments
After experimenting around a bit more, everything works as expected if I swap the cc_library(
name = "zlib",
srcs = glob(["*.c"]),
hdrs = glob(["*.h"]),
copts = [
"-Dverbose=-1",
],
includes = ["."],
visibility = ["//visibility:public"],
) I wonder if there's some weird interaction going on between the toolchain and |
@ArmaanT I just wanted to give you a heads-up that the primary maintainer for this repo will not be available for a few weeks. They have the expertise to best help with this issue. Sorry for the delay. |
No problem at all. Thanks for the heads up! |
@ArmaanT Sorry for the delay. This got lost on my list when I came back. Did you resolve this? The problem you are hitting is that your Linux distribution uses What distro are you using? |
I've been running into an issue where I get the following error when trying to use this toolchain to build zlib:
None of those files exist on my machine in
/usr/lib
, but they do exist in/usr/lib64
(ex/usr/lib64/libc.so.6
):➜ find /usr -name 'libc.so.6' /usr/lib64/libc.so.6
That being said, I'm not sure if this toolchain is (or should be) checking paths on my machine rather than only looking inside the downloaded sysroot which contains those files in the expected location:
➜ find /home/atobaccowalla/.cache/bazel/_bazel_atobaccowalla/49400f0e8b5fdbc2448f09cd587fc4d3/execroot/gcc-toolchain-sample/external/sysroot_x86_64/ -name 'libc.so.6' /home/atobaccowalla/.cache/bazel/_bazel_atobaccowalla/49400f0e8b5fdbc2448f09cd587fc4d3/execroot/gcc-toolchain-sample/external/sysroot_x86_64/usr/lib/libc.so.6
I'm including the full output I get when trying to build here and I've also created a minimal reproduction repo here.
The text was updated successfully, but these errors were encountered: