From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kMcWI8HE+F6GXAAA0tVLHw (envelope-from ) for ; Sun, 28 Jun 2020 16:26:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id KDRYHsHE+F6lTAAAB5/wlQ (envelope-from ) for ; Sun, 28 Jun 2020 16:26:41 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id DE863940145 for ; Sun, 28 Jun 2020 16:26:40 +0000 (UTC) Received: from localhost ([::1]:35592 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jpa8d-0001W8-S8 for larch@yhetil.org; Sun, 28 Jun 2020 12:26:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:58462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpZuj-00087v-UQ for guix-devel@gnu.org; Sun, 28 Jun 2020 12:12:17 -0400 Received: from mail.ftbfs.org ([52.8.68.13]:31466 helo=aws.ftbfs.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jpZui-0005Ny-8E for guix-devel@gnu.org; Sun, 28 Jun 2020 12:12:17 -0400 Received: from ip68-5-94-190.oc.oc.cox.net ([68.5.94.190] helo=inspiron-3147) by aws.ftbfs.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jpZuf-0002HH-EG for guix-devel@gnu.org; Sun, 28 Jun 2020 16:12:13 +0000 Date: Sun, 28 Jun 2020 09:12:12 -0700 From: Matthew Kraai To: guix-devel@gnu.org Subject: RUNPATH problem building Rust 1.40.0 Message-ID: <20200628161212.GA9864@inspiron-3147> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=52.8.68.13; envelope-from=kraai@ftbfs.org; helo=aws.ftbfs.org X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/28 12:12:13 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Sun, 28 Jun 2020 12:26:32 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -0.51 X-TUID: wjjCb1I62Tt+ Hi, I'm trying to package Rust 1.40.0. Here's the patch I'm testing: diff --git a/gnu/packages/rust.scm b/gnu/packages/rust.scm index d139657f39..58515d55e6 100644 --- a/gnu/packages/rust.scm +++ b/gnu/packages/rust.scm @@ -1183,4 +1183,23 @@ move around." (generate-all-checksums "vendor") #t))))))))) -(define-public rust rust-1.39) +(define-public rust-1.40 + (let ((base-rust + (rust-bootstrapped-package rust-1.39 "1.40.0" + "1ba9llwhqm49w7sz3z0gqscj039m53ky9wxzhaj11z6yg1ah15yx"))) + (package + (inherit base-rust) + (source + (origin + (inherit (package-source base-rust)) + (snippet '(begin + (delete-file-recursively "src/llvm-project") + (delete-file-recursively "vendor/jemalloc-sys/jemalloc") + #t)))) + (arguments + (substitute-keyword-arguments (package-arguments base-rust) + ((#:phases phases) + `(modify-phases ,phases + (delete 'remove-unsupported-tests)))))))) + +(define-public rust rust-1.40) It currently fails to build with the following error: /gnu/store/j4zssa8y397q5l2hgkj5svcnj8dlgg32-rust-1.40.0/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/librustc_codegen_llvm-llvm.so: error: depends on 'librustc_driver-1040000d6b8afc7f.so', which cannot be found in RUNPATH ("/gnu/store/j4zssa8y397q5l2hgkj5svcnj8dlgg32-rust-1.40.0/lib/rustlib/x86_64-unknown-linux-gnu/codegen-backends/../lib" "/gnu/store/sqpf340l6nnjw33395kmjv97vm8bp8pv-llvm-8.0.0/lib" "/gnu/store/01b4w3m6mp55y531kyi1g8shh722kwqm-gcc-7.5.0-lib/lib/gcc/x86_64-unknown-linux-gnu/7.5.0/../../.." "/gnu/store/fa6wj5bxkj5ll1d7292a70knmyl7a0cr-glibc-2.31/lib") librustc_driver-1040000d6b8afc7f.so is in /gnu/store/j4zssa8y397q5l2hgkj5svcnj8dlgg32-rust-1.40.0/lib, which is not in the RUNPATH. Does anyone know how I should resolve this? -- Matthew Kraai