Received: from cogitri.dev (cogitri.dev [207.180.226.74]) by nld3-dev1.alpinelinux.org (Postfix) with ESMTPS id 1CA06782B70 for <~alpine/devel@lists.alpinelinux.org>; Fri, 3 Apr 2020 15:19:50 +0000 (UTC) X-Virus-Scanned: Yes Message-ID: <2a1589a885d5f7e81609ed43dee892555379aff6.camel@cogitri.dev> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cogitri.dev; s=mail; t=1585927163; bh=vBQGEMFiyNwKgUb5G81Fp8+/wIevldhy3HIOnyLX1MA=; h=Subject:From:To:Cc:In-Reply-To:References; b=b6SN45bKFTWMbq3J9cPzpJXQjIAyzeSzAYP9Dc+lOd6AAqrmLXnLlET6tDonwtgeh KPZhJ0QcQ6PkHj4i5miZJo1ex+ZHA7KM2ar4o+CM4m7YqFLI7qSV33UIb0JBt9ZKdv LtcvCefrYfSlhcHNP1RLhD9056qzXbLJfRmQEIASTOoxOIcGS0v/JN8CRB81gvEU4k lnwNbOFVimNHP2f66rP1T2AoSOY2UAdEwX4U5G0GMirTx3sXWV5m9hYPZDms2aBqhW blEUnE70MUX8c1JwiTmceJCEirOgctVo24vVe5NmarzT/XcBBh5MeruItvwdryGhq3 4Cw6E+zrqC6EocDEBf9SuP4pnFxK3n33MR/XBCeApWzU/RW7NU/eCu8czuiAX6Z6W+ 44QpEWYOJ2YnCr9VSiSnz+DaL6Z4iGsjYImJBSA+AfWJsHuJiewcxDnmtPsnAh2pX1 HNGOAPv3bGCnTonRDT+2UwhUMKW6h3m3hMBJ7x0L/Ql53wl1mkKRLgfVgD9NyRH8kv E7K+MJcjW+28aR2eiQBU+B31u8PkfuilkwllogOlnKCjGpcN1pI3/0ATxtu+n6SEXu M5PtFv5quyFqW56lgXkNsbjs0lZSeMVt1RYhfRIaDDZR4NZvkLZJnByOHimHk0eT66 KCmApN6yEGXN9kKJn5fOJKTA= Subject: Re: rust triples (WAS: Re: Planning for 3.12 feature freeze) From: Rasmus Thomsen To: Natanael Copa , Shiz Cc: Jean-Louis Fuchs , "~alpine/devel@lists.alpinelinux.org" <~alpine/devel@lists.alpinelinux.org> Date: Fri, 03 Apr 2020 17:19:22 +0200 In-Reply-To: <20200403171727.7e4bb42b@ncopa-desktop.copa.dup.pw> References: <280DD35B-697F-41E2-89E7-7235690B8DD4@shiz.me> <20200403171727.7e4bb42b@ncopa-desktop.copa.dup.pw> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit On Fri, 2020-04-03 at 17:17 +0200, Natanael Copa wrote: > 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 > When you're switching triplets you would have to only adjust _target in the first run since you're still building with the old triplet.