X-Original-To: alpine-devel@lists.alpinelinux.org Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lists.alpinelinux.org (Postfix) with ESMTP id BE0AF5C4D2A for ; Wed, 18 Oct 2017 00:35:24 +0000 (GMT) Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v9I0YBpv092927 for ; Tue, 17 Oct 2017 20:35:24 -0400 Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) by mx0b-001b2d01.pphosted.com with ESMTP id 2dntfh4awk-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 17 Oct 2017 20:35:23 -0400 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 17 Oct 2017 18:35:23 -0600 Received: from b03cxnp07028.gho.boulder.ibm.com (9.17.130.15) by e38.co.us.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 17 Oct 2017 18:35:22 -0600 Received: from b03ledav005.gho.boulder.ibm.com (b03ledav005.gho.boulder.ibm.com [9.17.130.236]) by b03cxnp07028.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v9I0ZLWY3670448 for ; Tue, 17 Oct 2017 17:35:21 -0700 Received: from b03ledav005.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 7A432BE03E for ; Tue, 17 Oct 2017 18:35:21 -0600 (MDT) Received: from localhost.localdomain (unknown [9.85.157.141]) by b03ledav005.gho.boulder.ibm.com (Postfix) with ESMTPS id DACE3BE038 for ; Tue, 17 Oct 2017 18:35:20 -0600 (MDT) From: Roberto Oliveira Subject: [alpine-devel] Bootstrap rust on Alpine ppc64le To: alpine-devel@lists.alpinelinux.org Date: Tue, 17 Oct 2017 22:35:17 -0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 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=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17101800-0028-0000-0000-00000884280B X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00007908; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000237; SDB=6.00932654; UDB=6.00469688; IPR=6.00712944; BA=6.00005643; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00017583; XFM=3.00000015; UTC=2017-10-18 00:35:22 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17101800-0029-0000-0000-000037FA384A Message-Id: <3e472787-fd85-afdd-4562-8682444ca383@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-10-17_15:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1710180007 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 ---