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

build failed even with with suggested rustc alias #6

Open
softprops opened this issue Feb 22, 2016 · 4 comments
Open

build failed even with with suggested rustc alias #6

softprops opened this issue Feb 22, 2016 · 4 comments

Comments

@softprops
Copy link

I'm getting a build error when trying to run a musl build. It may just be bad error reporting on cargo's part but the error reported is

failed to execute command: No such file or directory (os error 2)
Is `musl-gcc` not installed?

It looks like some crates were successful but the error seems to happen on the openssl crate.

The full error is below.

Build failed, waiting for other jobs to finish...
failed to run custom build command for `openssl v0.7.6`
Process didn't exit successfully: `/source/target/release/build/openssl-09576f2f9776fa80/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-unknown-linux-musl")
OPT_LEVEL = Some("3")
PROFILE = Some("release")
TARGET = Some("x86_64-unknown-linux-musl")
debug=false opt-level=3
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-musl")
TARGET = Some("x86_64-unknown-linux-musl")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-musl = None
CC_x86_64_unknown_linux_musl = None
TARGET_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-musl")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-musl = None
CFLAGS_x86_64_unknown_linux_musl = None
TARGET_CFLAGS = None
CFLAGS = None
running: "musl-gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-fPIC" "-static" "-o" "/source/target/x86_64-unknown-linux-musl/release/build/openssl-09576f2f9776fa80/out/src/c_helpers.o" "-c" "src/c_helpers.c"


failed to execute command: No such file or directory (os error 2)
Is `musl-gcc` not installed?



--- stderr
thread '<main>' panicked at 'explicit panic', /root/.cargo/registry/src/github.com-88ac128001ac3a9a/gcc-0.3.24/src/lib.rs:809
@softprops
Copy link
Author

got a little further by adding /usr/local/musl/bin manually to my $PATH but still hitting an issue with the openssl crate

failed to run custom build command for `openssl v0.7.6`
Process didn't exit successfully: `/source/target/release/build/openssl-09576f2f9776fa80/build-script-build` (exit code: 101)
--- stdout
TARGET = Some("x86_64-unknown-linux-musl")
OPT_LEVEL = Some("3")
PROFILE = Some("release")
TARGET = Some("x86_64-unknown-linux-musl")
debug=false opt-level=3
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-musl")
TARGET = Some("x86_64-unknown-linux-musl")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-linux-musl = None
CC_x86_64_unknown_linux_musl = None
TARGET_CC = None
CC = None
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-linux-musl")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-linux-musl = None
CFLAGS_x86_64_unknown_linux_musl = None
TARGET_CFLAGS = None
CFLAGS = None
running: "musl-gcc" "-O3" "-ffunction-sections" "-fdata-sections" "-m64" "-fPIC" "-static" "-o" "/source/target/x86_64-unknown-linux-musl/release/build/openssl-09576f2f9776fa80/out/src/c_helpers.o" "-c" "src/c_helpers.c"
ExitStatus(ExitStatus(256))


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



--- stderr
src/c_helpers.c:1:25: fatal error: openssl/ssl.h: No such file or directory
 #include <openssl/ssl.h>
                         ^
compilation terminated.
thread '<main>' panicked at 'explicit panic', /root/.cargo/registry/src/github.com-88ac128001ac3a9a/gcc-0.3.24/src/lib.rs:809

@ppamorim
Copy link

Me too, same problem here.

@Mythra
Copy link

Mythra commented Aug 15, 2016

Also running into this problem.

@miton18
Copy link

miton18 commented Jan 21, 2017

same thing here

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

4 participants