question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Build failed - failed to run custom build command for `openssl-sys v0.6.4`

See original GitHub issue

After successfully installing all the dependency that run.sh asked for and running run.sh again, I get this response:

(...)
   Compiling hpack v0.2.0
Build failed, waiting for other jobs to finish...
failed to run custom build command for `openssl-sys v0.6.4`
Process didn't exit successfully: `/home/kuba/temp/Eve/runtime/target/debug/build/openssl-sys-765ddf9de3c5179c/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-link-lib=dylib=crypto
cargo:rustc-link-lib=dylib=ssl
TARGET = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-gnu")
CARGO_MANIFEST_DIR = Some("/home/kuba/.multirust/toolchains/nightly-2015-08-10/cargo/registry/src/github.com-0a35038f75765ae4/openssl-sys-0.6.4")
OUT_DIR = Some("/home/kuba/temp/Eve/runtime/target/debug/build/openssl-sys-765ddf9de3c5179c/out")
OPT_LEVEL = Some("0")
PROFILE = Some("debug")
debug 0
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-gnu = None
CC_x86_64_unknown_linux_gnu = None
HOST_CC = None
CC = None
TARGET = Some("x86_64-unknown-linux-gnu")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-gnu = None
CFLAGS_x86_64_unknown_linux_gnu = None
HOST_CFLAGS = None
CFLAGS = None
running: "cc" "-O0" "-c" "-ffunction-sections" "-fdata-sections" "-g" "-m64" "-fPIC" "-o" "/home/kuba/temp/Eve/runtime/target/debug/build/openssl-sys-765ddf9de3c5179c/out/src/openssl_shim.o" "/home/kuba/.multirust/toolchains/nightly-2015-08-10/cargo/registry/src/github.com-0a35038f75765ae4/openssl-sys-0.6.4/src/openssl_shim.c"


command did not execute successfully, got: exit code: 1



--- stderr
/home/kuba/.multirust/toolchains/nightly-2015-08-10/cargo/registry/src/github.com-0a35038f75765ae4/openssl-sys-0.6.4/src/openssl_shim.c:1:26: fatal error: openssl/hmac.h: No such file or directory
 #include <openssl/hmac.h>
                          ^
compilation terminated.
thread '<main>' panicked at 'explicit panic', /home/kuba/.multirust/toolchains/nightly-2015-08-10/cargo/registry/src/github.com-0a35038f75765ae4/gcc-0.3.11/src/lib.rs:514
stack backtrace:
   1:     0x7f71a300ea6e - sys::backtrace::write::h7f613ce09e7b1d1d5As
   2:     0x7f71a30173f6 - panicking::on_panic::he6322b413efd100fGFx
   3:     0x7f71a2fd79ce - rt::unwind::begin_unwind_inner::h16a4850d896eee23R6w
   4:     0x7f71a37aeb1c - rt::unwind::begin_unwind::h17421284490640175071
                        at ../src/libstd/rt/unwind/mod.rs:236
   5:     0x7f71a37a8140 - fail::hf0d4f1ca6d7a5404COa
                        at /home/kuba/temp/Eve/runtime/<std macros>:3
   6:     0x7f71a37b7ea3 - run::h7be3ffcf524eddceKHa
                        at /home/kuba/.multirust/toolchains/nightly-2015-08-10/cargo/registry/src/github.com-0a35038f75765ae4/gcc-0.3.11/src/lib.rs:485
   7:     0x7f71a37b1a2a - Config::compile_object::h661499c1644adb0aema
                        at /home/kuba/.multirust/toolchains/nightly-2015-08-10/cargo/registry/src/github.com-0a35038f75765ae4/gcc-0.3.11/src/lib.rs:276
   8:     0x7f71a37ab5ea - Config::compile::hd820e5738d396b0eRha
                        at /home/kuba/.multirust/toolchains/nightly-2015-08-10/cargo/registry/src/github.com-0a35038f75765ae4/gcc-0.3.11/src/lib.rs:233
   9:     0x7f71a377b079 - build_openssl_shim::h4ca03af19d6db933Sfa
                        at /home/kuba/.multirust/toolchains/nightly-2015-08-10/cargo/registry/src/github.com-0a35038f75765ae4/openssl-sys-0.6.4/build.rs:75
  10:     0x7f71a3774a33 - main::h53a555fd2c70138diaa
                        at /home/kuba/.multirust/toolchains/nightly-2015-08-10/cargo/registry/src/github.com-0a35038f75765ae4/openssl-sys-0.6.4/build.rs:65
  11:     0x7f71a3016c5d - __rust_try
  12:     0x7f71a30191ca - rt::lang_start::h996e83640adddea1BAx
  13:     0x7f71a3782f0b - main
  14:     0x7f71a2751a3f - __libc_start_main
  15:     0x7f71a37733b8 - _start
  16:                0x0 - <unknown>

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
ibdknoxcommented, Aug 20, 2015

Ah sorry, it’s libssl-dev:

sudo apt-get install libssl-dev 
0reactions
thomas-sharescommented, Aug 28, 2015

ok sounds good. thank you.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Ubuntu 18: failed to run custom build command for `openssl ...
installed libssl-dev on ubuntu 18 and still get this error: error: failed to run custom build command for openssl-sys v0.9.39
Read more >
Why rust is failing to build command for openssl-sys v0.9.60 ...
I'm facing the error failed to run custom build command for openssl-sys v0.9.60 while trying to build my rust program.
Read more >
failed to run custom build command for `openssl-sys v0.9.75`
First of all about your effort to install OpenSSL. After cloning the repository, you do not select any particular branch before configuring and...
Read more >
openssl-sys 0.9.36 - Docs.rs
Both the libraries and headers need to be present in the build ... cause the linker to fail after compilation, to rectify this...
Read more >
Error: failed to run custom build command for `openssl-sys v0 ...
Input: cargo install spl-token-cli. Output: error: failed to run custom build command for `openssl-sys v0.9.74` Caused by: process didn't ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found