Received: from mx1.tetrasec.net (mx1.tetrasec.net [66.245.176.36]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 47E46781E21 for <~alpine/devel@lists.alpinelinux.org>; Fri, 3 Apr 2020 15:17:35 +0000 (UTC) Received: from mx1.tetrasec.net (mail.local [127.0.0.1]) by mx1.tetrasec.net (Postfix) with ESMTP id 770C369F1D; Fri, 3 Apr 2020 15:17:34 +0000 (UTC) Received: from ncopa-desktop.copa.dup.pw (67.63.200.37.customer.cdi.no [37.200.63.67]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: alpine@tanael.org) by mx1.tetrasec.net (Postfix) with ESMTPSA id 948E669F1C; Fri, 3 Apr 2020 15:17:33 +0000 (UTC) Date: Fri, 3 Apr 2020 17:17:27 +0200 From: Natanael Copa To: Shiz Cc: Jean-Louis Fuchs , Rasmus Thomsen , "~alpine/devel@lists.alpinelinux.org" <~alpine/devel@lists.alpinelinux.org> Subject: Re: rust triples (WAS: Re: Planning for 3.12 feature freeze) Message-ID: <20200403171727.7e4bb42b@ncopa-desktop.copa.dup.pw> In-Reply-To: <280DD35B-697F-41E2-89E7-7235690B8DD4@shiz.me> References: <280DD35B-697F-41E2-89E7-7235690B8DD4@shiz.me> X-Mailer: Claws Mail 3.17.5 (GTK+ 2.24.32; x86_64-alpine-linux-musl) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit On Fri, 3 Apr 2020 15:32:18 +0200 Shiz wrote: > I propose we move to $arch-alpine-linux-musl everywhere and fix any > outstanding issues with it. I can help if needed. I think this would be the cleanest thing to do, however, I don't have much experience with rust, so help would be appreciated. I tried to build it on armv7 as a test: diff --git a/community/rust/APKBUILD b/community/rust/APKBUILD index bcde30fbd3..3941803500 100644 --- a/community/rust/APKBUILD +++ b/community/rust/APKBUILD @@ -7,7 +7,7 @@ pkgname=rust pkgver=1.42.0 _llvmver=10 _bootver=1.41.1 -pkgrel=1 +pkgrel=2 pkgdesc="The Rust Programming Language" url="https://www.rust-lang.org" arch="x86_64 armv7 armhf aarch64 x86 ppc64le" @@ -88,10 +88,10 @@ case "$CARCH" in _build="i686-unknown-linux-musl" _target="$_build" ;; - armv7) - _build="armv7-unknown-linux-musleabihf" - _target="$_build" - ;; +# armv7) +# _build="armv7-unknown-linux-musleabihf" +# _target="$_build" +# ;; armhf) _build="arm-unknown-linux-musleabihf" _target="$_build" It manages to build but during `abuild rootpkg` it fails. Apparently due to it needs uses cargo, but the installed cargo does not have an installed stdlib: Compiling quote v0.6.12 error[E0461]: couldn't find crate `core` with expected target triple armv7-alpine-linux-musleabihf | = note: the following crate versions were found: crate `core`, target triple armv7-unknown-linux-musleabihf: /usr/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libcore-522d58512672202f.rlib error[E0461]: couldn't find crate `core` with expected target triple armv7-alpine-linux-musleabihf | = note: the following crate versions were found: crate `core`, target triple armv7-unknown-linux-musleabihf: /usr/lib/rustlib/armv7-unknown-linux-musleabihf/lib/libcore-522d58512672202f.rlib Is there a way to make cargo look into another directory? Or is it better to manually create bootstrap packages? -nc > > - Shiz >