From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id MIiAOn10s2GaOwAAgWs5BA (envelope-from ) for ; Fri, 10 Dec 2021 16:38:37 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +O8nNn10s2FnbQAAbx9fmQ (envelope-from ) for ; Fri, 10 Dec 2021 15:38:37 +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 8F7341B476 for ; Fri, 10 Dec 2021 16:38:37 +0100 (CET) Received: from localhost ([::1]:46344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvhym-0007Vz-Ln for larch@yhetil.org; Fri, 10 Dec 2021 10:38:36 -0500 Received: from eggs.gnu.org ([209.51.188.92]:41604) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvhyR-0007TR-Ry for guix-devel@gnu.org; Fri, 10 Dec 2021 10:38:16 -0500 Received: from mout02.posteo.de ([185.67.36.66]:49005) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvhyP-00027N-G2 for guix-devel@gnu.org; Fri, 10 Dec 2021 10:38:15 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 29072240105 for ; Fri, 10 Dec 2021 16:38:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1639150691; bh=R7/4UAbhaza+ll+EmuImju+/jZqxdEqI9LcxzoZ8+c0=; h=From:To:Cc:Subject:Date:From; b=SiB4o2Up07dw5CqZ9FY0BewwcVEmetlIYZWPAImmB9rZKW37bi909TDLVvazajG/1 +1cs56cnPk+YX5934hz3KfdDyBRD7/oZj2OPFNNnQsL356FYaqY1jYdX1bJSFUTErg HWKbS+GqsGobJ+5kHeOnLZVGAvD4ud8/m4gFuwTi2mRTttst7CaruI4lFOpeKlH+// 76x2YxxmjFe5trkZkTmCriWsmDWuvZPsSKmXr5VLaqnhthHkZpGAvwWNNbMrXXzVrg 1HhPjvY0EwTabwyP3GW6b4TGiu749XsiFRRMcn8yoxzyYkvym2uhVmrFRtrqcXq2JT xC3qGb7eCHkiA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4J9Zmd6x44z9rxL; Fri, 10 Dec 2021 16:38:09 +0100 (CET) References: <87v900efyw.fsf@kitej> <87k0gch8ml.fsf@kitej> From: Guillaume Le Vaillant To: Guillaume Le Vaillant Subject: Re: cl-gsll fails to load Date: Fri, 10 Dec 2021 15:27:14 +0000 In-reply-to: <87k0gch8ml.fsf@kitej> Message-ID: <87fsr0h3mu.fsf@kitej> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=185.67.36.66; envelope-from=glv@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -38 X-Spam_score: -3.9 X-Spam_bar: --- X-Spam_report: (-3.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URI_NOVOWEL=0.5 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: guix-devel@gnu.org, Foo Chuan Wei Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639150717; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=/MgEzTpO57AfHaydYyhz6USYPwdwKoy+BRg3TyeMTZI=; b=RUvToZ/eVxAcvXO8YBfJ5Yj1V6+3uQQGzpErdoDdIMlIjI1PsoORVv2XXviXTB2SLY+Wld dYk58Jx313k3/T6UBGoTBuxH1ErboAlvR59cPKOccOz4XgXW77O9kp31PQ9kHY90HaAapq Yt3yQynKoPff0oabitta26pWFzaBXbVdV0xUoJi7Yn+DNmiRR0+1aE2HjrBbKdSoweVv7+ AWhSEqg5+/sxmzco/pfvyEEvbxKn+qgPX6CYAEIxhOr8GU9qmxOuShvFarTvY8ZA/Jy7lF Yoln+iiUtsKBEDDLk4fAq918aRpMVJ5z7SvwDFSOcFXr/eR20KXU/vNSX3O2ng== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639150717; a=rsa-sha256; cv=none; b=GkLBOUDfzRuD01YGwq9zUK8XYPkf8pglih7A8FiKd5OD76VEDB8MlJ8ryyiwMwEltH7885 okhtidWqQnl5m7i0gzbJE/Nw49JGyb8qCEB3lrSFHo6hrtFFDe6kApF7J07FL1u0QCSTad fhbXx999zce+9tTUb4y4PkrEZOkukRx0gObhb1TuVOCg0XDvyfClIj2utL6o1QWlSlKBq9 ye4BTjmOeyfQpg+8WuG5qTuTIZJ0AiE2eBn7319SLBEfi16+y27jhwFkeVJrFtieox0U51 6HVpDzd13Wqmqc/jl+/aG7ZB0PPLJey3KuYLkMXWtPFhpKgCf/smPXJgMB9xnw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=SiB4o2Up; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.66 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.net header.s=2017 header.b=SiB4o2Up; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.net (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 8F7341B476 X-Spam-Score: -3.66 X-Migadu-Scanner: scn1.migadu.com X-TUID: yTIaBYmfgDYi --==-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: text/plain Could you try the attached patches and see if things work for you with a command such as: --8<---------------cut here---------------start------------->8--- guix shell -C sbcl sbcl-gsll gcc-toolchain -- ... --8<---------------cut here---------------end--------------->8--- There may be a way to patch our CFFI package to fix the links to all the GCC toolchain things, which would allow us to remove gcc-toolchain in the command above, but it will probably not be super easy. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-cl-cffi-Fix-some-paths.patch Content-Transfer-Encoding: quoted-printable From=207613cc6c054bfc5dc66f657aeb2987a22c342b80 Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Fri, 10 Dec 2021 15:56:07 +0100 Subject: [PATCH 1/2] gnu: cl-cffi: Fix some paths. CFFI can require pkg-config and a GCC toolchain at runtime. This patch improves the use of the source cl-cffi package from a REPL, but it's not perfect and using cl-cffi in an environment without explicitly add= ing gcc-toolchain to it might not work. * gnu/packages/lisp-xyz.scm (sbcl-cffi)[native-inputs]: Move pkg-config to = ... [inputs]: .. here. [arguments]: Update 'fix-paths' phase. =2D-- gnu/packages/lisp-xyz.scm | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index 635f8e48cb..9f06be28ee 100644 =2D-- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -2782,10 +2782,10 @@ (define-public sbcl-cffi `(("alexandria" ,sbcl-alexandria) ("babel" ,sbcl-babel) ("libffi" ,libffi) + ("pkg-config" ,pkg-config) ("trivial-features" ,sbcl-trivial-features))) (native-inputs `(("bordeaux-threads" ,sbcl-bordeaux-threads) =2D ("pkg-config" ,pkg-config) ("rt" ,sbcl-rt))) (arguments '(#:phases @@ -2799,10 +2799,25 @@ (define-public sbcl-cffi (add-after 'unpack 'fix-paths (lambda* (#:key inputs #:allow-other-keys) (substitute* "libffi/libffi.lisp" =2D (("libffi.so.7" all) (string-append =2D (assoc-ref inputs "libffi") =2D "/lib/" all))) + (("libffi.so.7" all) + (string-append (assoc-ref inputs "libffi") "/lib/" all))) + (substitute* "libffi/libffi-types.lisp" + (("\\(in-package #:cffi\\)" all) + (string-append all + "\n #+linux (cc-flags \"-I" + (assoc-ref inputs "libffi") + "/include/\")"))) + (substitute* "grovel/grovel.lisp" + (("\"pkg-config\"") + (string-append "\"" (assoc-ref inputs "pkg-config") + "/bin/pkg-config\""))) + ;; Force use of (default-toolchain-parameters) which the fixed + ;; path to gcc. (substitute* "toolchain/c-toolchain.lisp" + (("\\(clisp-toolchain-parameters\\)") "nil") + (("\\(ecl-toolchain-parameters\\)") "nil") + (("\\(mkcl-toolchain-parameters\\)") "nil") + (("\\(sbcl-toolchain-parameters\\)") "nil") (("\"cc\"") (format #f "~S" (which "gcc")))))) (add-after 'build 'install-headers (lambda* (#:key outputs #:allow-other-keys) =2D-=20 2.34.0 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-gnu-cl-gsll-Fix-more-paths.patch Content-Transfer-Encoding: quoted-printable From=208bdf4c2dac67a9f5baf0d0facef7bd8bef120e63 Mon Sep 17 00:00:00 2001 From: Guillaume Le Vaillant Date: Fri, 10 Dec 2021 16:22:26 +0100 Subject: [PATCH 2/2] gnu: cl-gsll: Fix more paths. * gnu/packages/lisp-xyz.scm (sbcl-gsll)[arguments]: Update 'fix-cffi-paths' phase. =2D-- gnu/packages/lisp-xyz.scm | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) diff --git a/gnu/packages/lisp-xyz.scm b/gnu/packages/lisp-xyz.scm index 9f06be28ee..58d4b889f6 100644 =2D-- a/gnu/packages/lisp-xyz.scm +++ b/gnu/packages/lisp-xyz.scm @@ -7989,11 +7989,28 @@ (define-public sbcl-gsll (substitute* "init/init.lisp" (("libgslcblas.so" all) (string-append =2D (assoc-ref inputs "gsl") "/lib/" all))) =2D (substitute* "init/init.lisp" + (assoc-ref inputs "gsl") "/lib/" all)) (("libgsl.so" all) (string-append =2D (assoc-ref inputs "gsl") "/lib/" all)))))))) + (assoc-ref inputs "gsl") "/lib/" all))) + (substitute* '("calculus/monte-carlo-structs.lisp" + "data/array-structs.lisp" + "eigensystems/eigen-struct.lisp" + "init/callback-struct.lisp" + "init/libgsl-unix.lisp" + "ordinary-differential-equations/ode-struct.= lisp" + "physical-constants/cgsm.lisp" + "physical-constants/mksa.lisp" + "physical-constants/num.lisp" + "series-struct.lisp" + "solve-minimize-fit/solver-struct.lisp" + "special-functions/sf-result.lisp" + "test-unit/machine.lisp") + (("\\(in-package :gsl\\)" all) + (string-append all + "\n#+linux (cc-flags \"-I" + (assoc-ref inputs "gsl") + "/include/\")")))))))) (synopsis "GNU Scientific Library for Lisp") (description "The GNU Scientific Library for Lisp (GSLL) allows the use of the =2D-=20 2.34.0 --=-=-=-- --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIUEAREKAC0WIQTLxZxm7Ce5cXlAaz5r6CCK3yH+PwUCYbN0WQ8cZ2x2QHBvc3Rl by5uZXQACgkQa+ggit8h/j/SqQD/RYDsvyXb+pcGEyVJqk6g/UAcBImQ1siXzMrk gH3mkuUA/21+iiPznJs3zS7rtE6sj4z9k4j1bbFxPss8Rs9Oto/d =j3kx -----END PGP SIGNATURE----- --==-=-=--