objcopy: elf_begin() failed: Invalid argument

From: Johannes Lundberg <johalun0_at_gmail.com>
Date: Fri, 7 Jul 2017 09:56:11 +0200

I'm trying to build the rust crate
on 12-CURRENT.

World is most recent snapshot, kernel is drm-next which have been synced to
-HEAD at roughly the same time as world snapshot.

backtrace-rs builds a static c library, libbacktrace.a as a part of the
rust build process and I get the following error output on 12-CURRENT
(builds just fine on 11.0)

-- snip --

libtool: link: ranlib .libs/libbacktrace.a
libtool: link: ( cd ".libs" && rm -f "libbacktrace.la" && ln -s
"../libbacktrace.la" "libbacktrace.la" )
gmake[1]: Leaving directory
running: "ar" "x"
running: "objcopy" "--redefine-syms=symbol-map"

--- stderr
objcopy: elf_begin() failed: Invalid argument
thread 'main' panicked at 'failed with: exit code: 1', build.rs:147:8
note: Run with `RUST_BACKTRACE=1` for a backtrace.

Github issue and full build output here:

Any ideas what has changed from 11->12 and how to deal with this change?

Received on Fri Jul 07 2017 - 05:56:14 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:12 UTC