-
Notifications
You must be signed in to change notification settings - Fork 272
Closed
Description
I did a cargo update on my project and that bumped up the version of backtrace-sys to 0.1.6.
Unfortunately, this has resulted in the build of the project failing. It does build on Windows but not when cross compiling for ARM Linux.
This is the error message that I got:
error: failed to run custom build command for `backtrace-sys v0.1.6`
process didn't exit successfully: `/home/tlostroh/project/target/release/build/backtrace-sys-630598d76a7afd9a/build-script-build` (exit code: 101)
--- stdout
OPT_LEVEL = Some("3")
TARGET = Some("armv7-unknown-linux-gnueabihf")
HOST = Some("i686-unknown-linux-gnu")
TARGET = Some("armv7-unknown-linux-gnueabihf")
TARGET = Some("armv7-unknown-linux-gnueabihf")
HOST = Some("i686-unknown-linux-gnu")
CC_armv7-unknown-linux-gnueabihf = None
CC_armv7_unknown_linux_gnueabihf = None
TARGET_CC = None
CC = None
HOST = Some("i686-unknown-linux-gnu")
CROSS_COMPILE = None
TARGET = Some("armv7-unknown-linux-gnueabihf")
HOST = Some("i686-unknown-linux-gnu")
CFLAGS_armv7-unknown-linux-gnueabihf = None
CFLAGS_armv7_unknown_linux_gnueabihf = None
TARGET_CFLAGS = None
CFLAGS = None
PROFILE = Some("release")
running: "/home/tlostroh/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.6/src/libbacktrace/configure" "--with-pic" "--disable-multilib" "--disable-shared" "--disable-host-shared" "--target=armv7-unknown-linux-gnueabihf" "--host=i686-unknown-linux-gnu"
checking build system type... i686-pc-linux-gnu
checking host system type... i686-unknown-linux-gnu
checking target system type... armv7-unknown-linux-gnueabihf
checking for i686-unknown-linux-gnu-gcc... arm-linux-gnueabihf-gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... yes
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether arm-linux-gnueabihf-gcc accepts -g... yes
checking for arm-linux-gnueabihf-gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... arm-linux-gnueabihf-gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i686-unknown-linux-gnu-strip... no
checking for strip... strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-unknown-linux-gnu-gcc... (cached) arm-linux-gnueabihf-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether arm-linux-gnueabihf-gcc accepts -g... (cached) yes
checking for arm-linux-gnueabihf-gcc option to accept ISO C89... (cached) none needed
checking for i686-unknown-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for gawk... (cached) mawk
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for fgrep... /bin/grep -F
checking for ld used by arm-linux-gnueabihf-gcc... /usr/arm-linux-gnueabihf/bin/ld
checking if the linker (/usr/arm-linux-gnueabihf/bin/ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... no
checking for i686-unknown-linux-gnu-dumpbin... no
checking for i686-unknown-linux-gnu-link... no
checking for dumpbin... no
checking for link... link -dump
checking the name lister (nm) interface... BSD nm
checking whether ln -s works... no, using cp -p
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking for /usr/arm-linux-gnueabihf/bin/ld option to reload object files... -r
checking for i686-unknown-linux-gnu-objdump... no
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for i686-unknown-linux-gnu-ar... no
checking for ar... ar
checking for i686-unknown-linux-gnu-strip... strip
checking for i686-unknown-linux-gnu-ranlib... ranlib
checking command to parse nm output from arm-linux-gnueabihf-gcc object... ok
checking for dlfcn.h... yes
checking for objdir... .libs
checking if arm-linux-gnueabihf-gcc supports -fno-rtti -fno-exceptions... no
checking for arm-linux-gnueabihf-gcc option to produce PIC... -fPIC -DPIC
checking if arm-linux-gnueabihf-gcc PIC flag -fPIC -DPIC works... yes
checking if arm-linux-gnueabihf-gcc static flag -static works... yes
checking if arm-linux-gnueabihf-gcc supports -c -o file.o... yes
checking if arm-linux-gnueabihf-gcc supports -c -o file.o... (cached) yes
checking whether the arm-linux-gnueabihf-gcc linker (/usr/arm-linux-gnueabihf/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
checking unwind.h usability... yes
checking unwind.h presence... yes
checking for unwind.h... yes
checking for _Unwind_Backtrace... yes
checking for -funwind-tables option... yes
checking for -frandom-seed=string option... yes
checking whether arm-linux-gnueabihf-gcc supports -W... yes
checking whether arm-linux-gnueabihf-gcc supports -Wall... yes
checking whether arm-linux-gnueabihf-gcc supports -Wwrite-strings... yes
checking whether arm-linux-gnueabihf-gcc supports -Wstrict-prototypes... yes
checking whether arm-linux-gnueabihf-gcc supports -Wmissing-prototypes... yes
checking whether arm-linux-gnueabihf-gcc supports -Wold-style-definition... yes
checking whether arm-linux-gnueabihf-gcc supports -Wmissing-format-attribute... yes
checking whether arm-linux-gnueabihf-gcc supports -Wcast-qual... yes
checking for _Unwind_GetIPInfo... yes
checking __sync extensions... yes
checking __atomic extensions... yes
checking output filetype... elf32
looking for a compliant stdint.h in stdint.h, checking for uintmax_t... yes
checking for uintptr_t... yes
checking for int_least32_t... yes
checking for int_fast32_t... yes
checking for uint64_t... yes
checking what to include in gstdint.h... stdint.h (already complete)
checking sys/mman.h usability... yes
checking sys/mman.h presence... yes
checking for sys/mman.h... yes
checking for mmap... yes
checking link.h usability... yes
checking link.h presence... yes
checking for link.h... yes
checking for dl_iterate_phdr... yes
checking for fcntl... yes
checking whether strnlen is declared... yes
checking for getexecname... no
checking whether tests can run... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating backtrace-supported.h
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing libtool commands
config.status: executing gstdint.h commands
config.status: executing default commands
running: "make" "INCDIR=/home/tlostroh/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.6/src/libbacktrace"
make all-am
make[1]: Entering directory '/home/tlostroh/project/target/armv7-unknown-linux-gnueabihf/release/build/backtrace-sys-b2e53518d4e6e892/out'
/bin/bash ./libtool --tag=CC --mode=compile arm-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -I/home/tlostroh/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.6/src/libbacktrace -I /home/tlostroh/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.6/src/libbacktrace/../include -I /home/tlostroh/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.6/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=state.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O3 -ffunction-sections -fdata-sections -fPIC -march=armv7-a -c -o state.lo /home/tlostroh/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.6/src/libbacktrace/state.c
libtool: compile: arm-linux-gnueabihf-gcc -DHAVE_CONFIG_H -I. -I/home/tlostroh/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.6/src/libbacktrace -I /home/tlostroh/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.6/src/libbacktrace/../include -I /home/tlostroh/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.6/src/libbacktrace/../libgcc -I ../libgcc -funwind-tables -frandom-seed=state.lo -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O3 -ffunction-sections -fdata-sections -fPIC -march=armv7-a -c /home/tlostroh/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.6/src/libbacktrace/state.c -fPIC -DPIC -o state.o
/bin/bash ./libtool --tag=CC --mode=link arm-linux-gnueabihf-gcc -funwind-tables -frandom-seed=libbacktrace.la -W -Wall -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wmissing-format-attribute -Wcast-qual -fPIC -O3 -ffunction-sections -fdata-sections -fPIC -march=armv7-a -o libbacktrace.la atomic.lo dwarf.lo fileline.lo posix.lo print.lo sort.lo state.lo backtrace.lo simple.lo elf.lo mmapio.lo mmap.lo
libtool: link: rm -fr .libs/libbacktrace.la
libtool: link: ar cru .libs/libbacktrace.a atomic.o dwarf.o fileline.o posix.o print.o sort.o state.o backtrace.o simple.o elf.o mmapio.o mmap.o
libtool: link: ranlib .libs/libbacktrace.a
libtool: link: ( cd ".libs" && rm -f "libbacktrace.la" && cp -p "../libbacktrace.la" "libbacktrace.la" )
true DO=all multi-do # make
make[1]: Leaving directory '/home/tlostroh/project/target/armv7-unknown-linux-gnueabihf/release/build/backtrace-sys-b2e53518d4e6e892/out'
cargo:rustc-link-search=native=/home/tlostroh/project/target/armv7-unknown-linux-gnueabihf/release/build/backtrace-sys-b2e53518d4e6e892/out/.libs
cargo:rustc-link-lib=static=backtrace
running: "ar" "x" "/home/tlostroh/project/target/armv7-unknown-linux-gnueabihf/release/build/backtrace-sys-b2e53518d4e6e892/out/.libs/libbacktrace.a"
running: "objcopy" "--redefine-syms=symbol-map" "/home/tlostroh/project/target/armv7-unknown-linux-gnueabihf/release/build/backtrace-sys-b2e53518d4e6e892/out/__tmp/atomic.o"
--- stderr
configure: WARNING: If you wanted to set the --build type, don't use --host.
If a cross compiler is detected then cross compile mode will be used.
configure: WARNING: using cross tools not prefixed with host triplet
ar: `u' modifier ignored since `D' is the default (see `U')
objcopy: Unable to recognise the format of the input file `/home/tlostroh/project/target/armv7-unknown-linux-gnueabihf/release/build/backtrace-sys-b2e53518d4e6e892/out/__tmp/atomic.o'
thread 'main' panicked at 'failed with: exit code: 1', /home/tlostroh/.cargo/registry/src/github.com-1ecc6299db9ec823/backtrace-sys-0.1.6/build.rs:94
note: Run with `RUST_BACKTRACE=1` for a backtrace.
If I downgrade the version to 0.1.5 in the Cargo.lock
file, everything works as expected.
Metadata
Metadata
Assignees
Labels
No labels