NetBSD Problem Report #54250
From tron@zhadum.org.uk Thu May 30 10:10:36 2019
Return-Path: <tron@zhadum.org.uk>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
by mollari.NetBSD.org (Postfix) with ESMTPS id 717037A0D9
for <gnats-bugs@gnats.netbsd.org>; Thu, 30 May 2019 10:10:36 +0000 (UTC)
Message-Id: <20190530101031.0EB1B20176E4C3@excalibur.zhadum.org.uk>
Date: Thu, 30 May 2019 11:10:30 +0100 (BST)
From: tron@zhadum.org.uk
Reply-To:
To: gnats-bugs@gnats.netbsd.org
Cc:
Subject: "rust" package fails to build under macOS Mojave
X-Send-Pr-Version: 3.113.1
X-GNATS-Notify:
>Number: 54250
>Category: pkg
>Synopsis: "rust" package fails to build under macOS Mojave
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu May 30 10:15:00 +0000 2019
>Closed-Date: Sat Jun 13 06:20:53 +0000 2020
>Last-Modified: Sat Jun 13 06:20:53 +0000 2020
>Originator: tron@zhadum.org.uk
>Release: Darwin 17.7.0 pkgsrc HEAD from 2019-05-29
>Organization:
>Environment:
System: Darwin excalibur.zhadum.org.uk 17.7.0 Darwin Kernel Version 17.7.0: Wed Apr 24 21:17:24 PDT 2019; root:xnu-4570.71.45~1/RELEASE_X86_64 x86_64
macOS Mojave 10.14.5
>Description:
Building the "lang/rust" package fails under macOS Mojave for me:
y file for linking.
Undefined symbols for architecture x86_64:
"___isOSVersionAtLeast", referenced from:
_darwinssl_connect_common in libcurl_sys-b65ef28c9739dfd0.rlib(darwinssl.o)
_darwinssl_connect_step2 in libcurl_sys-b65ef28c9739dfd0.rlib(darwinssl.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: aborting due to previous error
error: Could not compile `cargo`.
This seems to be related:
https://github.com/sfackler/cargo-tree/issues/58
>How-To-Repeat:
cd pkgsrc/lang/rust
bmake
>Fix:
Not known
>Release-Note:
>Audit-Trail:
From: Jonathan Perkin <jperkin@joyent.com>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/54250: "rust" package fails to build under macOS Mojave
Date: Fri, 31 May 2019 15:14:11 +0100
I upgraded rust to 1.35.0. Testing on Darwin gets past this error
now, but eventually fails with:
=> Checking for missing run-time search paths in rust-1.35.0
ERROR: lib/rustlib/x86_64-apple-darwin/lib/librustc_errors-33f1cb5f4ac9626b.dylib: relative library path: @rpath/libserialize-2943783d78c6cc6d.dylib
ERROR: lib/rustlib/x86_64-apple-darwin/lib/librustc_errors-33f1cb5f4ac9626b.dylib: relative library path: @rpath/libstd-5e0c051908eaf904.dylib
For some reason LDFLAGS+= -headerpad_max_install_names is not being
applied to this file and so the fixup at the end is failing.
--
Jonathan Perkin - Joyent, Inc. - www.joyent.com
State-Changed-From-To: open->feedback
State-Changed-By: gdt@NetBSD.org
State-Changed-When: Fri, 12 Jun 2020 17:32:18 +0000
State-Changed-Why:
rust has been updated since this PR; please either close or refresh symptom info
State-Changed-From-To: feedback->closed
State-Changed-By: tron@NetBSD.org
State-Changed-When: Sat, 13 Jun 2020 06:20:53 +0000
State-Changed-Why:
I currently don't have a macOS system using "pkgsrc".
Let's assume that it has been fixed.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.