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

Docker Image build fails. #1

Open
jakobgetz opened this issue Aug 23, 2023 · 2 comments
Open

Docker Image build fails. #1

jakobgetz opened this issue Aug 23, 2023 · 2 comments

Comments

@jakobgetz
Copy link

Hey there I am trying to build the Docker image of this project. Sadly the build fails on command 14 RUN opam install --yes . when trying to install wassail.
Output:

...
=> ERROR [14/21] RUN opam install --yes .                                                                                                   14.4s
------
 > [14/21] RUN opam install --yes .:
#18 0.625 [WARNING] Running as root is not recommended
#18 1.901 [wassail.~dev] no changes from git+file:///home/toughcall/tools/wassail#master
#18 9.218 The following actions will be performed:
#18 9.218   - install wassail ~dev*
#18 9.220 
#18 9.220 <><> Processing actions <><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#18 14.03 [ERROR] The compilation of wassail failed at "/root/.opam/system/bin/dune build -p wassail -j 3".
#18 14.03 
#18 14.03 #=== ERROR while compiling wassail.~dev =======================================#
#18 14.03 # context              2.0.5 | linux/x86_64 | ocaml-base-compiler.4.14.1 | pinned(git+file:///home/toughcall/tools/wassail#master#a45f6e03)
#18 14.03 # path                 ~/.opam/system/.opam-switch/build/wassail.~dev
#18 14.03 # command              ~/.opam/system/bin/dune build -p wassail -j 3
#18 14.03 # exit-code            1
#18 14.03 # env-file             ~/.opam/log/wassail-8-c743ac.env
#18 14.03 # output-file          ~/.opam/log/wassail-8-c743ac.out
#18 14.03 ### output ###
#18 14.03 # (cd _build/default && /root/.opam/system/bin/ocamlc.opt -w -40 -g -bin-annot -I lib/.wassail.objs/byte -I /root/.opam/system/lib/apron -I /root/.opam/system/lib/base -I /root/.opam/system/lib/base/base_internalhash_types -I /root/.opam/system/lib/base/caml -I /root/.opam/system/lib/base/md5 -I /root/.opam/system/lib/base/shadow_stdlib -I /root/.opam/system/lib/base_bigstring -I /root/.opam/sy[...]
#18 14.03 # File "lib/test.ml", line 28, characters 19-25:
#18 14.03 # 28 |         let diff = T.diff actual expected in
#18 14.03 #                         ^^^^^^
#18 14.03 # Error: Unbound value T.diff
#18 14.03 
#18 14.03 
#18 14.03 
#18 14.03 <><> Error report <><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
#18 14.03 +- The following actions failed
#18 14.03 | - build wassail ~dev
#18 14.03 +- 
#18 14.03 - No changes have been performed
#18 14.03 # Run eval $(opam env) to update the current shell environment
------
executor failed running [/bin/sh -c opam install --yes .]: exit code: 31
@jannikbmc
Copy link

I am getting the same error.

@danleh
Copy link
Collaborator

danleh commented Sep 1, 2023

This is an error related to Wassail, which is one of the static analysis approaches we evaluated in the paper.
@michelledaviest might know more on how to fix this issue. You can also try to comment out the related lines in the Dockerfile (https://github.com/sola-st/wasm-call-graphs/blob/main/Dockerfile#L23 until https://github.com/sola-st/wasm-call-graphs/blob/main/Dockerfile#L33) and then try to build and install Wassail yourself.

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

No branches or pull requests

3 participants