[Fedora 26 x86_64] configure: error: C compiler cannot create executables
Created by: gojun077
Reproduction: [describe how you are able to reproduce ("trigger") this bug/issue.]
-
run bootstrap script
$ curl -sf https://raw.githubusercontent.com/redox-os/redox/master/bootstrap.sh -o bootstrap.sh && bash -e bootstrap.sh
-
Source the cargo env file
source $HOME/.cargo/env
-
Change to the directory into which redox source was cloned
cd redox
-
Install
xargo
from cargo pkg managercargo install xargo
-
Run
make all
Expected behavior: [describe the behavior you would expect the repro to yield.]
After running make all
I should then be able to make virtualbox
Actual behavior: [describe the actual behavior, which is presented through the repro.].
cook - drivers build
Compiling gcc v0.3.53
Compiling libc v0.0.0 (file:///MULTIMEDIA/redox/rust/src/rustc/libc_shim)
Compiling unwind v0.0.0 (file:///MULTIMEDIA/redox/rust/src/libunwind)
Compiling libc v0.2.30
Compiling core v0.0.0 (file:///MULTIMEDIA/redox/rust/src/libcore)
Compiling filetime v0.1.10
Compiling build_helper v0.1.0 (file:///MULTIMEDIA/redox/rust/src/build_helper)
Compiling compiler_builtins v0.0.0 (file:///MULTIMEDIA/redox/rust/src/rustc/compiler_builtins_shim)
Compiling std v0.0.0 (file:///MULTIMEDIA/redox/rust/src/libstd)
error: failed to run custom build command for `std v0.0.0 (file:///MULTIMEDIA/redox/rust/src/libstd)`
process didn't exit successfully: `/tmp/xargo.DQY0d0tOq9ZK/target/release/build/std-981199f880fd36d8/build-script-build` (exit code: 1)
--- stdout
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/config.h.in
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/backtrace.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/mmapio.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/install-sh
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/ChangeLog
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/fileline.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/Makefile.am
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/btest.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/alloc.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/backtrace-supported.h.in
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/macho.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/nounwind.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/hashtab.h
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/stest.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/config.sub
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/dwarf2.def
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/internal.h
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/dwarf.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/elf.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/configure
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/configure.ac
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/state.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/read.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/backtrace.h
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/atomic.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/README
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/sort.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/pecoff.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/dwarf2.h
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/unknown.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/ChangeLog.jit
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/ltmain.sh
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/posix.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/aclocal.m4
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/print.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/Makefile.in
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/mmap.c
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/ansidecl.h
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/filenames.h
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/filetype.awk
cargo:rerun-if-changed=/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/simple.c
cargo:rustc-link-lib=static=backtrace
cargo:rustc-link-search=native=/tmp/xargo.DQY0d0tOq9ZK/target/x86_64-unknown-redox/release/build/std-479cef6ea432e1f4/out/libbacktrace/.libs
OPT_LEVEL = Some("3")
TARGET = Some("x86_64-unknown-redox")
HOST = Some("x86_64-unknown-linux-gnu")
TARGET = Some("x86_64-unknown-redox")
TARGET = Some("x86_64-unknown-redox")
HOST = Some("x86_64-unknown-linux-gnu")
CC_x86_64-unknown-redox = None
CC_x86_64_unknown_redox = None
TARGET_CC = None
CC = Some("x86_64-unknown-redox-gcc")
TARGET = Some("x86_64-unknown-redox")
HOST = Some("x86_64-unknown-linux-gnu")
CFLAGS_x86_64-unknown-redox = None
CFLAGS_x86_64_unknown_redox = None
TARGET_CFLAGS = None
CFLAGS = None
DEBUG = Some("false")
running: "sh" "/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/configure" "--with-pic" "--disable-multilib" "--disable-shared" "--disable-host-shared" "--host=x86_64-unknown-redox" "--build=x86_64-unknown-linux-gnu"
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-redox
checking target system type... x86_64-unknown-redox
checking for x86_64-unknown-redox-gcc... x86_64-unknown-redox-gcc
checking for C compiler default output file name...
command did not execute successfully: "sh" "/MULTIMEDIA/redox/rust/src/libstd/../libbacktrace/configure" "--with-pic" "--disable-multilib" "--disable-shared" "--disable-host-shared" "--host=x86_64-unknown-redox" "--build=x86_64-unknown-linux-gnu"
expected success, got: exit code: 77
--- stderr
configure: error: in `/tmp/xargo.DQY0d0tOq9ZK/target/x86_64-unknown-redox/release/build/std-479cef6ea432e1f4/out/libbacktrace':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Build information: [only when using a self build version: output of rustc -V
, git rev-parse HEAD
qemu-i386 -version
, uname -a
, etc.]
Redox release: [only when using a prebuild version: redox version]
Blocking/related: [issues or PRs blocking or being related to this issue.]
Misc: [optional: for other relevant information that should be known or cannot be described in the other fields.]
If the above does not fit the nature of the issue feel free to modify it.