From unknown Sun Aug 17 01:01:40 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#51243] [PATCH] gnu: julia: Fix llvm-julia version Resent-From: Jean-Baptiste Volatier Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 16 Oct 2021 19:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51243 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51243@debbugs.gnu.org Cc: Jean-Baptiste Volatier X-Debbugs-Original-To: guix-patches@gnu.org Reply-To: Jean-Baptiste Volatier Received: via spool by submit@debbugs.gnu.org id=B.163441155621642 (code B ref -1); Sat, 16 Oct 2021 19:13:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Oct 2021 19:12:36 +0000 Received: from localhost ([127.0.0.1]:43078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbp6h-0005d0-R8 for submit@debbugs.gnu.org; Sat, 16 Oct 2021 15:12:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:43554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbp6g-0005ct-Ji for submit@debbugs.gnu.org; Sat, 16 Oct 2021 15:12:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbp6g-0001HW-Cx for guix-patches@gnu.org; Sat, 16 Oct 2021 15:12:34 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:53346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbp6e-0001BG-2z for guix-patches@gnu.org; Sat, 16 Oct 2021 15:12:33 -0400 Date: Sat, 16 Oct 2021 19:12:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1634411539; bh=itgsqos7jUsQpe4bRENFdchf0ETM1ugPelO9+J7EsIM=; h=Date:To:From:Cc:Reply-To:Subject:From; b=cp4WfCB2w6tXWUnJuJyOXETfQwxkbyTwSC17nDw4kXaBncj7T/UIiHg5R9GI9TZrN kPJzKP27l2/i8p8YBsWSTxq2XinnYTdT5XHlfeMagbYG/X59X+YufQ2fdc0hVssU2A giceoUEgoqxULWeb+lELGcifWVVlJgxlNUnxmTTjZlzgYDGmrcGYk+TdM2zvXRodST l4R3UWb1kQXI5s5uHyvjDmlklUubFrg5XF78RgXy8Dc6g5ib6OgiW9re4+pKZeTi25 NOIx4+RVLfYQ2CTHajjXxECpezQoAzrwpnuPoPLfqol82kWwFwHXKtkVsbpk4t6lyd CiLPNvmVtFODA== From: Jean-Baptiste Volatier Message-ID: <20211016191210.3069-1-jbv@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=51.77.79.158; envelope-from=jbv@pm.me; helo=mail-0201.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) LLVM bundled in the binary julia distributed by upstream has its version with a "jl" suffix. The llvm-julia package does not have this suffix, which causes some packages (e. g. LLVM.jl) to fail to load. LLVM.jl does this in order to be sure that it is loading a LLVM as patched for julia and not LLVM from the distribution which will lack the correct patches on distribs other than GUIX. I guess there might be other packages that rely on this, so we should fix our llvm-julia package. * gnu/packages/julia.scm (llvm) [source]: Add missing upstream patch [arguments]: Add configure-flag to set a "jl" suffix to llvm version (julia)[arguments]: Symlink llvm to llvm-11jl.so --- gnu/packages/julia.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnu/packages/julia.scm b/gnu/packages/julia.scm index fe31e545c9..411f2e2e10 100644 --- a/gnu/packages/julia.scm +++ b/gnu/packages/julia.scm @@ -131,6 +131,8 @@ (define llvm-julia "19spqc3xsazn1xs9gpcgv9ldadfkv49rmc5khl7sf1dlmhgi46= 02") '("llvm-7.0-D44650" "1h55kkmkiisfj6sk956if2bcj9s0v6n5czn8dxb870vp5nccj3= ir") + '("llvm7-symver-jlprefix" + "00ng32x6xhm9czczirn5r1q1mc1myad44fqhi061hwh1vb46dw= gm") '("llvm-6.0-DISABLE_ABI_CHECKS" "014fawd1ba7yckalypfld22zgic87x9nx3cim42zrwygywd36p= yg") '("llvm9-D50010-VNCoercion-ni" @@ -211,7 +213,8 @@ (define llvm-julia ;; "-DLLVM_DEFAULT_TARGET_TRIPLE=3D${stdenv.hostPlatform.config= }" ;; "-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=3DWebAssembly" "-DLLVM_ENABLE_DUMP=3DON" - "-DLLVM_LINK_LLVM_DYLIB=3DON")))) + "-DLLVM_LINK_LLVM_DYLIB=3DON" + "-DLLVM_VERSION_SUFFIX:STRING=3Djl")))) (inputs (append (package-inputs llvm-11) @@ -548,7 +551,7 @@ (define-public julia (basename fi= le))))) (find-files (string-append (assoc-ref inputs pkgna= me) "/lib") pred))))) - (link "llvm" "libLLVM-11\\.so") + (link "llvm" "libLLVM-11jl\\.so") (link "utf8proc" "libutf8proc\\.so") #t))) (add-after 'install 'make-wrapper base-commit: 34b0aa16e77bdbb5b847267eb0f825a590e3d101 -- 2.33.1 From unknown Sun Aug 17 01:01:40 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Jean-Baptiste Volatier Subject: bug#51243: closed (Re: [bug#51243] [PATCH] gnu: julia: Fix llvm-julia version) Message-ID: References: <20211016191210.3069-1-jbv@pm.me> X-Gnu-PR-Message: they-closed 51243 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 51243@debbugs.gnu.org Date: Tue, 16 Nov 2021 07:17:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1637047022-8343-1" This is a multi-part message in MIME format... ------------=_1637047022-8343-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #51243: [PATCH] gnu: julia: Fix llvm-julia version which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 51243@debbugs.gnu.org. --=20 51243: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D51243 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1637047022-8343-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 51243-done) by debbugs.gnu.org; 16 Nov 2021 07:16:25 +0000 Received: from localhost ([127.0.0.1]:56857 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmshd-00029a-6b for submit@debbugs.gnu.org; Tue, 16 Nov 2021 02:16:25 -0500 Received: from flashner.co.il ([178.62.234.194]:49698) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mmshb-00029L-RF for 51243-done@debbugs.gnu.org; Tue, 16 Nov 2021 02:16:24 -0500 Received: from localhost (unknown [141.226.12.213]) by flashner.co.il (Postfix) with ESMTPSA id 6766440049; Tue, 16 Nov 2021 07:16:17 +0000 (UTC) Date: Tue, 16 Nov 2021 09:15:45 +0200 From: Efraim Flashner To: Jean-Baptiste Volatier Subject: Re: [bug#51243] [PATCH] gnu: julia: Fix llvm-julia version Message-ID: Mail-Followup-To: Efraim Flashner , Jean-Baptiste Volatier , 51243-done@debbugs.gnu.org References: <20211016191210.3069-1-jbv@pm.me> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="ZKbt8tdFpips+AhE" Content-Disposition: inline In-Reply-To: <20211016191210.3069-1-jbv@pm.me> X-PGP-Key-ID: 0x41AAE7DCCA3D8351 X-PGP-Key: https://flashner.co.il/~efraim/efraim_flashner.asc X-PGP-Fingerprint: A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 51243-done Cc: 51243-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) --ZKbt8tdFpips+AhE Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Thanks. Patch pushed! --=20 Efraim Flashner =D7=A8=D7=A0=D7=A9=D7=9C=D7=A4 = =D7=9D=D7=99=D7=A8=D7=A4=D7=90 GPG key =3D A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351 Confidentiality cannot be guaranteed on emails sent or received unencrypted --ZKbt8tdFpips+AhE Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEEoov0DD5VE3JmLRT3Qarn3Mo9g1EFAmGTWp4ACgkQQarn3Mo9 g1EQbg//VzgSwdTUA9nQXz4SThLxw6513hk26Nm7irkk/ANq12eRJ8+cnIO5gOBH KaRGn6p05t4FLa+VVKkrvQSDv9rHUztPUF8sFqDnbF6nyDT9Ka/n9dRMTrfXPBLI dLJm6WNRVGURDoHMoodTw+VGMb+qhAhfFxaslAC95ZK3Mh6r9Mgl5C1Luv1U2KbU +HHS9vszVvtFrYoWHQF99Z+BiK/5UM88SevQPIhtOLigf+3yWVxCF7nruRpZBG3f s/pplbCgYFbYB4JCvJN+baFapM30sTMq3GlbnIQhglObCx38CTD3uypiopG2nx01 ZbEPVFko/iq15uFDHR7AFl0v6tEC2W4qgLr5K55CyvaMLt4YvTVpG/Vh971FkQZc sxUPnyQIK5lFtugUWxQfwON07HR9R/LSDv0S/Blibffl0s/rgOt0891g1q4Gqnrq p8Jdv8us5y2Zo/MZsF0F0KxtVwuNUUeARpZfPy9MZ8YzTiOp6G/DnRW/ZzgI0Bsp /2cLzEx1+7cXIob7jztchcoBXtlnAu1ypeczE0j1TM3PmQ/Cs1Dm/FbcDiVTGX1v hxDRrAiNZpf5bkhBujcEIkNaCa979fYIgfaPXmh0AutyALdJoMG/sStvyB1jvGD7 7CKju4OsQgKxrKHb+wJ91NiDYYDGM4AaQDdYl8690EepEqHHsmM= =7Yz3 -----END PGP SIGNATURE----- --ZKbt8tdFpips+AhE-- ------------=_1637047022-8343-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Oct 2021 19:12:36 +0000 Received: from localhost ([127.0.0.1]:43078 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbp6h-0005d0-R8 for submit@debbugs.gnu.org; Sat, 16 Oct 2021 15:12:36 -0400 Received: from lists.gnu.org ([209.51.188.17]:43554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mbp6g-0005ct-Ji for submit@debbugs.gnu.org; Sat, 16 Oct 2021 15:12:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:49418) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbp6g-0001HW-Cx for guix-patches@gnu.org; Sat, 16 Oct 2021 15:12:34 -0400 Received: from mail-0201.mail-europe.com ([51.77.79.158]:53346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mbp6e-0001BG-2z for guix-patches@gnu.org; Sat, 16 Oct 2021 15:12:33 -0400 Date: Sat, 16 Oct 2021 19:12:14 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pm.me; s=protonmail; t=1634411539; bh=itgsqos7jUsQpe4bRENFdchf0ETM1ugPelO9+J7EsIM=; h=Date:To:From:Cc:Reply-To:Subject:From; b=cp4WfCB2w6tXWUnJuJyOXETfQwxkbyTwSC17nDw4kXaBncj7T/UIiHg5R9GI9TZrN kPJzKP27l2/i8p8YBsWSTxq2XinnYTdT5XHlfeMagbYG/X59X+YufQ2fdc0hVssU2A giceoUEgoqxULWeb+lELGcifWVVlJgxlNUnxmTTjZlzgYDGmrcGYk+TdM2zvXRodST l4R3UWb1kQXI5s5uHyvjDmlklUubFrg5XF78RgXy8Dc6g5ib6OgiW9re4+pKZeTi25 NOIx4+RVLfYQ2CTHajjXxECpezQoAzrwpnuPoPLfqol82kWwFwHXKtkVsbpk4t6lyd CiLPNvmVtFODA== To: guix-patches@gnu.org From: Jean-Baptiste Volatier Subject: [PATCH] gnu: julia: Fix llvm-julia version Message-ID: <20211016191210.3069-1-jbv@pm.me> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=10.0 tests=ALL_TRUSTED,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=disabled version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on mailout.protonmail.ch Received-SPF: pass client-ip=51.77.79.158; envelope-from=jbv@pm.me; helo=mail-0201.mail-europe.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit Cc: Jean-Baptiste Volatier X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Jean-Baptiste Volatier Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) LLVM bundled in the binary julia distributed by upstream has its version with a "jl" suffix. The llvm-julia package does not have this suffix, which causes some packages (e. g. LLVM.jl) to fail to load. LLVM.jl does this in order to be sure that it is loading a LLVM as patched for julia and not LLVM from the distribution which will lack the correct patches on distribs other than GUIX. I guess there might be other packages that rely on this, so we should fix our llvm-julia package. * gnu/packages/julia.scm (llvm) [source]: Add missing upstream patch [arguments]: Add configure-flag to set a "jl" suffix to llvm version (julia)[arguments]: Symlink llvm to llvm-11jl.so --- gnu/packages/julia.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnu/packages/julia.scm b/gnu/packages/julia.scm index fe31e545c9..411f2e2e10 100644 --- a/gnu/packages/julia.scm +++ b/gnu/packages/julia.scm @@ -131,6 +131,8 @@ (define llvm-julia "19spqc3xsazn1xs9gpcgv9ldadfkv49rmc5khl7sf1dlmhgi46= 02") '("llvm-7.0-D44650" "1h55kkmkiisfj6sk956if2bcj9s0v6n5czn8dxb870vp5nccj3= ir") + '("llvm7-symver-jlprefix" + "00ng32x6xhm9czczirn5r1q1mc1myad44fqhi061hwh1vb46dw= gm") '("llvm-6.0-DISABLE_ABI_CHECKS" "014fawd1ba7yckalypfld22zgic87x9nx3cim42zrwygywd36p= yg") '("llvm9-D50010-VNCoercion-ni" @@ -211,7 +213,8 @@ (define llvm-julia ;; "-DLLVM_DEFAULT_TARGET_TRIPLE=3D${stdenv.hostPlatform.config= }" ;; "-DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=3DWebAssembly" "-DLLVM_ENABLE_DUMP=3DON" - "-DLLVM_LINK_LLVM_DYLIB=3DON")))) + "-DLLVM_LINK_LLVM_DYLIB=3DON" + "-DLLVM_VERSION_SUFFIX:STRING=3Djl")))) (inputs (append (package-inputs llvm-11) @@ -548,7 +551,7 @@ (define-public julia (basename fi= le))))) (find-files (string-append (assoc-ref inputs pkgna= me) "/lib") pred))))) - (link "llvm" "libLLVM-11\\.so") + (link "llvm" "libLLVM-11jl\\.so") (link "utf8proc" "libutf8proc\\.so") #t))) (add-after 'install 'make-wrapper base-commit: 34b0aa16e77bdbb5b847267eb0f825a590e3d101 -- 2.33.1 ------------=_1637047022-8343-1--