Stream: git-wasmtime

Topic: wasmtime / issue #1084 cranelift uses hard coded gcc path...


view this post on Zulip Wasmtime GitHub notifications bot (May 04 2022 at 20:21):

cfallin commented on issue #1084:

I'm doing some issue gardening and I believe we can close this issue: we successfully cross-compile in CI for aarch64 and s390x from the x86-64 CI host. If someone is having specific cross-compilation difficulties with some recent configuration, please feel free to open a new issue though!

view this post on Zulip Wasmtime GitHub notifications bot (May 04 2022 at 20:21):

cfallin closed issue #1084:

   Compiling wabt-sys v0.5.4
   Compiling atty v0.2.11
error: failed to run custom build command for `backtrace-sys v0.1.28`
process didn't exit successfully: `/tmp/cranelift/target/debug/build/backtrace-sys-b770679a71cebfb4/build-script-build` (exit code: 101)
--- stdout
cargo:rustc-cfg=rbt
TARGET = Some("armv7-unknown-linux-gnueabihf")
OPT_LEVEL = Some("0")
HOST = Some("x86_64-unknown-linux-gnu")
CC_armv7-unknown-linux-gnueabihf = None
CC_armv7_unknown_linux_gnueabihf = None
TARGET_CC = None
CC = None
CROSS_COMPILE = None
CFLAGS_armv7-unknown-linux-gnueabihf = None
CFLAGS_armv7_unknown_linux_gnueabihf = None
TARGET_CFLAGS = None
CFLAGS = None
CRATE_CC_NO_DEFAULTS = None
CARGO_CFG_TARGET_FEATURE = None
running: "arm-linux-gnueabihf-gcc" "-O0" "-ffunction-sections" "-fdata-sections" "-fPIC" "-march=armv7-a" "-I" "src/libbacktrace" "-I" "/tmp/cranelift/target/armv7-unknown-linux-gnueabihf/debug/build/backtrace-sys-a78f5a2c6137992e/out" "-fvisibility=hidden" "-DBACKTRACE_ELF_SIZE=32" "-DBACKTRACE_SUPPORTED=1" "-DBACKTRACE_USES_MALLOC=1" "-DBACKTRACE_SUPPORTS_THREADS=0" "-DBACKTRACE_SUPPORTS_DATA=0" "-DHAVE_DL_ITERATE_PHDR=1" "-D_GNU_SOURCE=1" "-D_LARGE_FILES=1" "-Dbacktrace_full=__rbt_backtrace_full" "-Dbacktrace_dwarf_add=__rbt_backtrace_dwarf_add" "-Dbacktrace_initialize=__rbt_backtrace_initialize" "-Dbacktrace_pcinfo=__rbt_backtrace_pcinfo" "-Dbacktrace_syminfo=__rbt_backtrace_syminfo" "-Dbacktrace_get_view=__rbt_backtrace_get_view" "-Dbacktrace_release_view=__rbt_backtrace_release_view" "-Dbacktrace_alloc=__rbt_backtrace_alloc" "-Dbacktrace_free=__rbt_backtrace_free" "-Dbacktrace_vector_finish=__rbt_backtrace_vector_finish" "-Dbacktrace_vector_grow=__rbt_backtrace_vector_grow" "-Dbacktrace_vector_release=__rbt_backtrace_vector_release" "-Dbacktrace_close=__rbt_backtrace_close" "-Dbacktrace_open=__rbt_backtrace_open" "-Dbacktrace_print=__rbt_backtrace_print" "-Dbacktrace_simple=__rbt_backtrace_simple" "-Dbacktrace_qsort=__rbt_backtrace_qsort" "-Dbacktrace_create_state=__rbt_backtrace_create_state" "-Dbacktrace_uncompress_zdebug=__rbt_backtrace_uncompress_zdebug" "-o" "/tmp/cranelift/target/armv7-unknown-linux-gnueabihf/debug/build/backtrace-sys-a78f5a2c6137992e/out/src/libbacktrace/alloc.o" "-c" "src/libbacktrace/alloc.c"

--- stderr
thread 'main' panicked at '

Internal error occurred: Failed to find tool. Is `arm-linux-gnueabihf-gcc` installed?

', /home/tim/.cargo/registry/src/github.com-1ecc6299db9ec823/cc-1.0.35/src/lib.rs:2398:5
note: Run with `RUST_BACKTRACE=1` for a backtrace.

my cross compiler is at /usr/bin/armv7a-unknown-linux-gnueabihf-gcc

this is fixable by symlinking the actuall gcc-cross compiler to /usr/bin/arm-linux-gnueabihf-gcc, and in addition to do the same with g++


Last updated: Nov 22 2024 at 16:03 UTC