Skip to content
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

[component] error while loading shared libraries with python #18871

Closed
chittaja536 opened this issue Jun 10, 2023 · 4 comments
Closed

[component] error while loading shared libraries with python #18871

chittaja536 opened this issue Jun 10, 2023 · 4 comments
Labels
Priority:P2 Priority: medium

Comments

@chittaja536
Copy link

Description

I ran the command : bazel build //hw:verilator

I see that it complains about not being able to find libpython3.7m.so.1.0, however, /usr/bin/python3.7.0/lib is set in the LDB_LIBRARY_PATH variable.

WARNING: Output base '/a/b/c/4675eb9b78f0af7fb4f587d32cf4c247' is on NFS. This may lead to surprising failures and undetermined behavior.
INFO: Analyzed target //hw:verilator (0 packages loaded, 0 targets configured).
INFO: Found 1 target...
ERROR: /a/b/c/opentitan/hw/BUILD:35:14: FuseSoC hw/build.verilator_real failed: (Exit 127): fusesoc failed: error executing command fusesoc '--cores-root=.' run '--flag=fileset_top' '--target=sim' --setup --build '--build-root=bazel-out/k8-fastbuild/bin/hw/build.verilator_real' lowrisc:dv:chip_verilator_sim ... (remaining 2 arguments skipped)
/usr/bin/python/3.7.0/bin/python3: error while loading shared libraries: libpython3.7m.so.1.0: cannot open shared object file: No such file or directory
Aspect @rules_rust//rust/private:clippy.bzl%rust_clippy_aspect of //hw:verilator up-to-date (nothing to build)
INFO: Elapsed time: 0.346s, Critical Path: 0.05s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully
@jwnrt
Copy link
Contributor

jwnrt commented Jun 12, 2023

Bazel cuts environment variables when building, so only python's default paths will be looked at. I don't know whether or not yours is a default, I've had this problem with python modules before (#18689).

Would you mind trying with LDB_LIBRARY_PATH added to rules/nonhermetic.bzl?

@msfschaffner msfschaffner added this to the Community Support milestone Jun 19, 2023
@msfschaffner msfschaffner added the Priority:P2 Priority: medium label Jun 19, 2023
@chittaja536
Copy link
Author

chittaja536 commented Jun 29, 2023 via email

@a-will
Copy link
Contributor

a-will commented Sep 14, 2023

Fixed by #19476 perhaps?

@msfschaffner
Copy link
Contributor

Closing for now - please reopen if you have follow-up questions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority:P2 Priority: medium
Projects
None yet
Development

No branches or pull requests

4 participants