Closed Yiidiir closed 3 years ago
Checklist
git checkout master && git pull origin
rustup default nightly && rustup update nightly && cargo test --all --all-features -v
cargo update
target
Classify the bug Put x in the boxes below:
x
Describe the problem
Running docker build -t lnp-node:v0.1.0-alpha.4 . as mentionned in demo-alpha.4 fails.
docker build -t lnp-node:v0.1.0-alpha.4 .
demo-alpha.4
libssl-dev
pkg-config
To Reproduce Steps to reproduce the behavior:
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.com-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 https://github.com/sfackler/rust-openssl/issues/1021
Using the Dockerfiles and docker-composer config here, worked so I'll close this.
Checklist
git checkout master && git pull origin
)rustup default nightly && rustup update nightly && cargo test --all --all-features -v
cargo update
target
directoryClassify the bug Put
x
in the boxes below:Describe the problem
Running
docker build -t lnp-node:v0.1.0-alpha.4 .
as mentionned indemo-alpha.4
fails.libssl-dev
&pkg-config
didn't help neitherTo Reproduce Steps to reproduce the behavior:
Expected behavior Build the image successfully
Logs
Additional context Add any other context about the problem here.
Other links https://github.com/sfackler/rust-openssl/issues/1021