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

Failed to build demo Docker image #38

Closed
6 of 9 tasks
Yiidiir opened this issue Mar 12, 2021 · 1 comment
Closed
6 of 9 tasks

Failed to build demo Docker image #38

Yiidiir opened this issue Mar 12, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@Yiidiir
Copy link

Yiidiir commented Mar 12, 2021

Checklist

  • Make sure you are using the latest code (git checkout master && git pull origin)
  • Compile only with rust nightly: rustup default nightly && rustup update nightly && cargo test --all --all-features -v
  • Try to do cargo update
  • Try to remove target directory

Classify the bug
Put x in the boxes below:

  • Build issue
  • Test failing
  • Runtime panic
  • Incorrect results
  • Unexpected/undocumented behaviour /

Describe the problem

Running docker build -t lnp-node:v0.1.0-alpha.4 . as mentionned in demo-alpha.4 fails.

  • Changing the version to a recent tag doesn't help.
  • Adding libssl-dev & pkg-config didn't help neither

To Reproduce
Steps to reproduce the behavior:

  1. Have docker running
  2. Run the docker-compose command

Expected behavior
Build the image successfully

Logs

#20 324.3    Compiling rand v0.5.6
#20 327.0    Compiling atty v0.2.14
#20 327.1    Compiling socks v0.3.3
#20 328.7    Compiling dirs-sys-next v0.1.2
#20 333.3 error: failed to run custom build command for `openssl-sys v0.9.60`
#20 333.3
#20 333.3 Caused by:
#20 333.3   process didn't exit successfully: `/usr/local/src/lnp/target/release/build/openssl-sys-509982c4d7e3ad7d/build-script-main` (exit code: 101)
#20 333.3   --- stdout
#20 333.3   cargo:rustc-cfg=const_fn
#20 333.3   cargo:rerun-if-env-changed=X86_64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR
#20 333.3   X86_64_UNKNOWN_LINUX_GNU_OPENSSL_NO_VENDOR unset
#20 333.3   cargo:rerun-if-env-changed=OPENSSL_NO_VENDOR
#20 333.3   OPENSSL_NO_VENDOR unset
#20 333.3   CC_x86_64-unknown-linux-gnu = None
#20 333.3   CC_x86_64_unknown_linux_gnu = None
#20 333.3   HOST_CC = None
#20 333.3   CC = None
#20 333.3   CFLAGS_x86_64-unknown-linux-gnu = None
#20 333.3   CFLAGS_x86_64_unknown_linux_gnu = None
#20 333.3   HOST_CFLAGS = None
#20 333.3   CFLAGS = None
#20 333.3   CRATE_CC_NO_DEFAULTS = None
#20 333.3   DEBUG = Some("false")
#20 333.3   CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2")
#20 333.3   running "perl" "./Configure" "--prefix=/usr/local/src/lnp/target/release/build/openssl-sys-6d3f5fbab1cee494/out/openssl-build/install" "no-dso" "no-shared" "no-ssl3" "no-unit-test" "no-comp" "no-zlib" "no-zlib-dynamic" "no-md2" "no-rc5" "no-weak-ssl-ciphers" "no-camellia" "no-idea" "no-seed" "linux-x86_64" "-O2" "-ffunction-sections" "-fdata-sections" "-fPIC" "-m64"
#20 333.3   Configuring OpenSSL version 1.1.1j (0x101010afL) for linux-x86_64
#20 333.3   Using os-specific seed configuration
#20 333.3   Creating configdata.pm
#20 333.3   Creating Makefile
#20 333.3
#20 333.3   **********************************************************************
#20 333.3   ***                                                                ***
#20 333.3   ***   OpenSSL has been successfully configured                     ***
#20 333.3   ***                                                                ***
#20 333.3   ***   If you encounter a problem while building, please open an    ***
#20 333.3   ***   issue on GitHub <https://github.com/openssl/openssl/issues>  ***
#20 333.3   ***   and include the output from the following command:           ***
#20 333.3   ***                                                                ***
#20 333.3   ***       perl configdata.pm --dump                                ***
#20 333.3   ***                                                                ***
#20 333.3   ***   (If you are new to OpenSSL, you might want to consult the    ***
#20 333.3   ***   'Troubleshooting' section in the INSTALL file first)         ***
#20 333.3   ***                                                                ***
#20 333.3   **********************************************************************
#20 333.3   running "make" "depend"
#20 333.3
#20 333.3   --- stderr
#20 333.3   thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', /usr/local/cargo/registry/src/github.aaakk.us.kg-1ecc6299db9ec823/openssl-src-111.14.0+1.1.1j/src/lib.rs:413:39
#20 333.3   note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
#20 333.3 warning: build failed, waiting for other jobs to finish...
#20 333.7 error: failed to compile `lnp_node v0.1.0-beta.3 (/usr/local/src/lnp)`, intermediate artifacts can be found at `/usr/local/src/lnp/target`
#20 333.7
#20 333.7 Caused by:
#20 333.7   build failed
------
executor failed running [/bin/sh -c cargo install --path . --root "${BUILDER_DIR}" --bins --all-features]: exit code: 101

Additional context
Add any other context about the problem here.

Other links
sfackler/rust-openssl#1021

@Yiidiir Yiidiir added the bug Something isn't working label Mar 12, 2021
@Yiidiir
Copy link
Author

Yiidiir commented Mar 13, 2021

Using the Dockerfiles and docker-composer config here, worked so I'll close this.

@Yiidiir Yiidiir closed this as completed Mar 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants