From owner-freebsd-current@freebsd.org Fri Jul 7 07:56:14 2017 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A0530D9CE2A for ; Fri, 7 Jul 2017 07:56:14 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: from mail-wr0-x22e.google.com (mail-wr0-x22e.google.com [IPv6:2a00:1450:400c:c0c::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 45FBA701CB for ; Fri, 7 Jul 2017 07:56:14 +0000 (UTC) (envelope-from johalun0@gmail.com) Received: by mail-wr0-x22e.google.com with SMTP id c11so35171987wrc.3 for ; Fri, 07 Jul 2017 00:56:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:cc; bh=C9WDEimsCxjzz8FdDk/zNxjmBisJOsHaiOVI+u1UrrM=; b=ZfgaL9JSq+uwsPKWmE/93fOJlv4KhiEJF0k2NOtv6+olbDB4Yf5iKQBs2G8Rrxgrfr Gb8g9N7lobjSr3TURTerpNLXs18pLyVVlZv4AMdOghqN3L04JIAOp7+WUfwEV1gpHmqJ bOnnctjl30m41eWWWZVrXgrb/hXXfRdLwddZN/Vczjd0bKiH+HBrNhHr3TQZh6r3ZEPS z/i7uG4ZEslfLwDoOnSNh5ZSWoxqAHTAuoPhLQx5n3/1DPKrMnZKzSEaBQs42v4g3c+1 1z2zrrpBFZfS0+yYP4UuYW3rMNOFofcNW3nQokUlwomzcle4RKl4CCkWgqCCEhcTP4Nb bYPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to:cc; bh=C9WDEimsCxjzz8FdDk/zNxjmBisJOsHaiOVI+u1UrrM=; b=enfF3V4aFtXsStkf8+AE7RKqCqDQSp/rQsu+Ck/hDmwdi+uswXTpaQq73FrtKVuD5m Sh3uyh2xzrY2/ft7RPRC5n2QR4XL6TBhCWhZ9zW7n1trk2sQR4k6MDpsY5rkV3zLI6d0 ByKw7d8HGiMH0ldukP0bwKa1BVQN+I2bYTHAmVDShiwG/yNU5pDiSPo/IA0938zmViEW KwzdKve5qe2t7MPppkg3liYN2ceyBmpM9dkFPxBYnR2GoqVQco0aNRHi7k1e7SPVrL3F /NuuodMpHxdrKG0Ni802YBgb1GSrqEREuD6qg5gu1Q4JA01eTgJKtwkCQB5UB/DMXfhr txug== X-Gm-Message-State: AIVw110oMswEbIfb6VuCQ0Bi9dyF82Ki/EjPd/9x9HE/Dq9jLfKI29dc /uTjzy1HD8B+99Jm5bKyzvF3k/risFBI X-Received: by 10.28.211.132 with SMTP id k126mr1155280wmg.109.1499414172272; Fri, 07 Jul 2017 00:56:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.154.193 with HTTP; Fri, 7 Jul 2017 00:56:11 -0700 (PDT) From: Johannes Lundberg Date: Fri, 7 Jul 2017 09:56:11 +0200 Message-ID: Subject: objcopy: elf_begin() failed: Invalid argument To: freebsd-current Cc: alex@alexcrichton.com Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 07 Jul 2017 07:56:14 -0000 Hi I'm trying to build the rust crate https://github.com/alexcrichton/backtrace-rs 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 '/usr/home/johannes/dev/backtrace-rs/backtrace-sys/target/debug/build/backtrace-sys-816693a76d1c3a25/out' cargo:rustc-link-search=native=/usr/home/johannes/dev/backtrace-rs/backtrace-sys/target/debug/build/backtrace-sys-816693a76d1c3a25/out/.libs cargo:rustc-link-lib=static=backtrace running: "ar" "x" "/usr/home/johannes/dev/backtrace-rs/backtrace-sys/target/debug/build/backtrace-sys-816693a76d1c3a25/out/.libs/libbacktrace.a" running: "objcopy" "--redefine-syms=symbol-map" "/usr/home/johannes/dev/backtrace-rs/backtrace-sys/target/debug/build/backtrace-sys-816693a76d1c3a25/out/__tmp/" --- 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: https://github.com/alexcrichton/backtrace-rs/issues/56 Any ideas what has changed from 11->12 and how to deal with this change? Thanks!