-
Notifications
You must be signed in to change notification settings - Fork 62
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
Docker + write_(aig|cnf)_external -> abc: error while loading shared libraries: libreadline.so.7: cannot open shared object file: No such file or directory #1211
Comments
I can reproduce this with the Docker invocation you're using (minus the filesystem-specific parts such as |
Some further digging reveals that Lines 1 to 5 in 731bcd0
The result of that stage is copied over in a subsequent stage: Lines 61 to 65 in 731bcd0
However, that later stage doesn't install diff --git a/saw/Dockerfile b/saw/Dockerfile
index f7f13c46..345bd48e 100644
--- a/saw/Dockerfile
+++ b/saw/Dockerfile
@@ -60,7 +60,7 @@ RUN chown -R root:root /home/saw/rootfs
FROM debian:buster-slim
RUN apt-get update \
- && apt-get install -y libgmp10 libgomp1 libffi6 wget libncurses5 unzip
+ && apt-get install -y libgmp10 libgomp1 libffi6 wget libncurses5 libreadline-dev unzip
COPY --from=build /home/saw/rootfs /
COPY --from=solvers /solvers/rootfs /
RUN useradd -m saw && chown -R saw:saw /home/saw Patch incoming. |
This is necessary for `saw` commands that rely on `libreadline` to work, such as `write_cnf_external`. Fixes #1211.
I'm unable to try write_aig_external etc. because I'm using Docker and abc seems to be installed incorrectly? Maybe?
The text was updated successfully, but these errors were encountered: