X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mx1.tetrasec.net (mx1.tetrasec.net [74.117.190.25]) by lists.alpinelinux.org (Postfix) with ESMTP id 15C095C579E for ; Mon, 23 Oct 2017 12:10:20 +0000 (GMT) Received: from mx1.tetrasec.net (mail.local [127.0.0.1]) by mx1.tetrasec.net (Postfix) with ESMTP id DE07E9E3079; Mon, 23 Oct 2017 12:10:19 +0000 (GMT) Received: from ncopa-macbook.copa.dup.pw (176.84.213.193.static.cust.telenor.com [193.213.84.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: n@tanael.org) by mx1.tetrasec.net (Postfix) with ESMTPSA id 4027B9E0126; Mon, 23 Oct 2017 12:10:19 +0000 (GMT) Date: Mon, 23 Oct 2017 14:10:15 +0200 From: Natanael Copa To: Roberto Oliveira Cc: alpine-devel@lists.alpinelinux.org, Jakub Jirutka Subject: Re: [alpine-devel] Bootstrap rust on Alpine ppc64le Message-ID: <20171023141015.7d45582f@ncopa-macbook.copa.dup.pw> In-Reply-To: <3e472787-fd85-afdd-4562-8682444ca383@linux.vnet.ibm.com> References: <3e472787-fd85-afdd-4562-8682444ca383@linux.vnet.ibm.com> X-Mailer: Claws Mail 3.15.0-dirty (GTK+ 2.24.31; x86_64-alpine-linux-musl) X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit This also reminds me that we still don't have rust for x86, armhf or aarch64. Jakub, do you know what the status is of bootstrapping rust for other arches? Do you think it is realistic to have rust available for any arch more than x86_64 for alpine v3.7? I think it would be nice if we could have atleast one more arch in addition to x86_64 -nc On Tue, 17 Oct 2017 22:35:17 -0200 Roberto Oliveira wrote: > Hi, > > I'm trying to bootstrap rust on Alpine ppc64le and I saw that Jirutka and Shiz > did the bootstrap on Alpine x86_64, so maybe they or anyone can help me. > > I saw the thread[1] about bootstraping rust on Alpine x86_64 and the gist that > Japaric created [2]. > I created a target for "powerpc64le_unknown_linux_musl" and added it to rust > (tag 1.20.0). I used the script provided by Japaric in an Ubuntu ppc64le > container and the musl cross built successfully. However when building rust, it > fails with error: > > Building stage1 compiler artifacts (powerpc64le-unknown-linux-gnu -> > powerpc64le-unknown-linux-musl) > error: cannot produce dylib for `rustdoc v0.0.0 > (file:///home/rustbuild/rust/src/librustdoc)` as the target > `powerpc64le-unknown-linux-musl` does not support these crate types > > > I saw that PR[3] added support for dynamic linking with musl, so I tried to > build rust 'master' branch, that contains these patches, but it is failing with > the same error. > > I also tried to add "base.dynamic_linking = true" in > src/librustc_back/target/linux_musl_base.rs as suggested in [4], but didn't work > too. > > > Any idea what I can do to fix/workaround this error? > > > Regards, > Roberto Oliveira > > -- > [1] - https://github.com/rust-lang/rust/issues/31322 > [2] - https://gist.github.com/japaric/52b8816a4c86f5a4699bcc50ebc3e020 > [3] - https://github.com/rust-lang/rust/pull/40113 > [4] - https://github.com/rust-lang/rust/pull/40113#issuecomment-323193341 > > > > --- > Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org > Help: alpine-devel+help@lists.alpinelinux.org > --- > --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---