unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#65041] [PATCH] gnu: clisp: Add threads support on x84_64-linux.
@ 2023-08-03 16:01 Sharlatan Hellseher
  2023-08-26 16:14 ` [bug#65041] Sharlatan Hellseher
  2023-08-28 16:23 ` [bug#65041] [PATCH] gnu: clisp: Add threads support on x84_64-linux Guillaume Le Vaillant
  0 siblings, 2 replies; 6+ messages in thread
From: Sharlatan Hellseher @ 2023-08-03 16:01 UTC (permalink / raw)
  To: 65041; +Cc: Sharlatan Hellseher, Guillaume Le Vaillant, jgart

Guix's build version of CLISP, fails to load bordeaux-threads:

Error while trying to load definition for system bordeaux-threads
      This implementation is unsupported.

This patch adds support for POSIX_THREADS on x86_64-linux
system.

* gnu/packages/lisp.scm (clisp)[arguments]: Add configuration options to
support threads on x86_64-linux system.

Reported and Co-Authored by Andrew Kravchuk <awkravchuk@gmail.com>
---
 gnu/packages/lisp.scm | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 2f4fe6476d..47caa8e389 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -17,7 +17,7 @@
 ;;; Copyright © 2019-2023 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
-;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
+;;; Copyright © 2021, 2023 Sharlatan Hellseher <sharlatanus@gmail.com>
 ;;; Copyright © 2021 Paul A. Patience <paul@apatience.com>
 ;;; Copyright © 2021 Charles Jackson <charles.b.jackson@protonmail.com>
 ;;; Copyright © 2022 Joeke de Graaf <joeke@posteo.net>
@@ -25,6 +25,7 @@
 ;;; Copyright © 2022 ( <paren@disroot.org>
 ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
 ;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
+;;; Copyright © 2023 Andrew Kravchuk <awkravchuk@gmail.com.
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -380,6 +381,12 @@ (define-public clisp
                                                      (%current-target-system)))
                                  '("CFLAGS=-falign-functions=4")
                                  '())
+                           ,@(if (string-prefix? "x86_64-linux"
+                                                 (or (%current-system)
+                                                     (%current-target-system)))
+                                 '("--enable-portability"
+                                   "--with-threads=POSIX_THREADS")
+                                 '())
                             "--with-dynamic-ffi"
                             "--with-dynamic-modules"
                             "--with-ffcall"

base-commit: 782cf09b84bc72514e89d783460ea98bc353bf6a
-- 
2.40.1





^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#65041]
  2023-08-03 16:01 [bug#65041] [PATCH] gnu: clisp: Add threads support on x84_64-linux Sharlatan Hellseher
@ 2023-08-26 16:14 ` Sharlatan Hellseher
  2023-08-28 16:23 ` [bug#65041] [PATCH] gnu: clisp: Add threads support on x84_64-linux Guillaume Le Vaillant
  1 sibling, 0 replies; 6+ messages in thread
From: Sharlatan Hellseher @ 2023-08-26 16:14 UTC (permalink / raw)
  To: 65041; +Cc: Guillaume Le Vaillant

Hi Guix!

A gentle ping on the status of this issue, this patch helps to add
support for thread on x86_64 to CLISP.

Thanks,
Oleg

-- 
… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#65041] [PATCH] gnu: clisp: Add threads support on x84_64-linux.
  2023-08-03 16:01 [bug#65041] [PATCH] gnu: clisp: Add threads support on x84_64-linux Sharlatan Hellseher
  2023-08-26 16:14 ` [bug#65041] Sharlatan Hellseher
@ 2023-08-28 16:23 ` Guillaume Le Vaillant
  2023-08-31 13:19   ` Sharlatan Hellseher
  1 sibling, 1 reply; 6+ messages in thread
From: Guillaume Le Vaillant @ 2023-08-28 16:23 UTC (permalink / raw)
  To: Sharlatan Hellseher; +Cc: jgart, 65041

[-- Attachment #1: Type: text/plain, Size: 904 bytes --]

Hi.

As clisp has over 1600 dependent packages, updating it should be done on
a "lisp-team" branch which will be merged into the master branch if all
goes well. However I can't do that right now as I'm on holiday until
next week.


Sharlatan Hellseher <sharlatanus@gmail.com> skribis:

> * gnu/packages/lisp.scm (clisp)[arguments]: Add configuration options to
> support threads on x86_64-linux system.
> [...]
> +                           ,@(if (string-prefix? "x86_64-linux"
> +                                                 (or (%current-system)
> +                                                     (%current-target-system)))
> +                                 '("--enable-portability"
> +                                   "--with-threads=POSIX_THREADS")
> +                                 '())

Does clisp only support threads on x86-64, or could it be enabled for
some other architectures?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [bug#65041] [PATCH] gnu: clisp: Add threads support on x84_64-linux.
  2023-08-28 16:23 ` [bug#65041] [PATCH] gnu: clisp: Add threads support on x84_64-linux Guillaume Le Vaillant
@ 2023-08-31 13:19   ` Sharlatan Hellseher
  2023-09-04 13:28     ` Guillaume Le Vaillant
  0 siblings, 1 reply; 6+ messages in thread
From: Sharlatan Hellseher @ 2023-08-31 13:19 UTC (permalink / raw)
  To: Guillaume Le Vaillant; +Cc: jgart, 65041

[-- Attachment #1: Type: text/plain, Size: 1721 bytes --]

Hi Guillaume,

Andrew tried to build it on Raspberry Pi (ARM based) but it's failed
without that restriction. I had no chance to test on other platform
supported by Guix yet.
I'm including V2 of the patch which include minor adjustment for
target architecture detection simplification.

Thanks,
Oleg

On Mon, 28 Aug 2023 at 17:31, Guillaume Le Vaillant <glv@posteo.net> wrote:
>
> Hi.
>
> As clisp has over 1600 dependent packages, updating it should be done on
> a "lisp-team" branch which will be merged into the master branch if all
> goes well. However I can't do that right now as I'm on holiday until
> next week.
>
>
> Sharlatan Hellseher <sharlatanus@gmail.com> skribis:
>
> > * gnu/packages/lisp.scm (clisp)[arguments]: Add configuration options to
> > support threads on x86_64-linux system.
> > [...]
> > +                           ,@(if (string-prefix? "x86_64-linux"
> > +                                                 (or (%current-system)
> > +                                                     (%current-target-system)))
> > +                                 '("--enable-portability"
> > +                                   "--with-threads=POSIX_THREADS")
> > +                                 '())
>
> Does clisp only support threads on x86-64, or could it be enabled for
> some other architectures?



-- 

… наш разум - превосходная объяснительная машина которая способна
найти смысл почти в чем угодно, истолковать любой феномен, но
совершенно не в состоянии принять мысль о непредсказуемости.

[-- Attachment #2: 0001-gnu-clisp-Add-threads-support-on-x84_64-linux.patch --]
[-- Type: text/x-patch, Size: 2453 bytes --]

From a1501772832bf453bfdd241d6ff76ef4e1800c62 Mon Sep 17 00:00:00 2001
Message-Id: <a1501772832bf453bfdd241d6ff76ef4e1800c62.1693487783.git.sharlatanus@gmail.com>
From: Sharlatan Hellseher <sharlatanus@gmail.com>
Date: Thu, 3 Aug 2023 16:44:16 +0100
Subject: [PATCH] gnu: clisp: Add threads support on x84_64-linux.

Guix's build version of CLISP, fails to load bordeaux-threads:

Error while trying to load definition for system bordeaux-threads
      This implementation is unsupported.

This patch adds support for POSIX_THREADS on x86_64-linux
system.

* gnu/packages/lisp.scm (clisp)[arguments]: Add configuration options to
support threads on x86_64-linux system.

Reported and Co-Authored by Andrew Kravchuk <awkravchuk@gmail.com>
---
 gnu/packages/lisp.scm | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/lisp.scm b/gnu/packages/lisp.scm
index 2f4fe6476d..867a5df496 100644
--- a/gnu/packages/lisp.scm
+++ b/gnu/packages/lisp.scm
@@ -17,7 +17,7 @@
 ;;; Copyright © 2019-2023 Guillaume Le Vaillant <glv@posteo.net>
 ;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
 ;;; Copyright © 2020 Zhu Zihao <all_but_last@163.com>
-;;; Copyright © 2021 Sharlatan Hellseher <sharlatanus@gmail.com>
+;;; Copyright © 2021, 2023 Sharlatan Hellseher <sharlatanus@gmail.com>
 ;;; Copyright © 2021 Paul A. Patience <paul@apatience.com>
 ;;; Copyright © 2021 Charles Jackson <charles.b.jackson@protonmail.com>
 ;;; Copyright © 2022 Joeke de Graaf <joeke@posteo.net>
@@ -25,6 +25,7 @@
 ;;; Copyright © 2022 ( <paren@disroot.org>
 ;;; Copyright © 2023 Zheng Junjie <873216071@qq.com>
 ;;; Copyright © 2023 Yovan Naumovski <yovan@gorski.stream>
+;;; Copyright © 2023 Andrew Kravchuk <awkravchuk@gmail.com.
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -380,6 +381,10 @@ (define-public clisp
                                                      (%current-target-system)))
                                  '("CFLAGS=-falign-functions=4")
                                  '())
+                           ,@(if (target-x86?)
+                                 '("--enable-portability"
+                                   "--with-threads=POSIX_THREADS")
+                                 '())
                             "--with-dynamic-ffi"
                             "--with-dynamic-modules"
                             "--with-ffcall"

base-commit: 782cf09b84bc72514e89d783460ea98bc353bf6a
-- 
2.40.1


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [bug#65041] [PATCH] gnu: clisp: Add threads support on x84_64-linux.
  2023-08-31 13:19   ` Sharlatan Hellseher
@ 2023-09-04 13:28     ` Guillaume Le Vaillant
  2023-09-23  9:15       ` bug#65041: " Guillaume Le Vaillant
  0 siblings, 1 reply; 6+ messages in thread
From: Guillaume Le Vaillant @ 2023-09-04 13:28 UTC (permalink / raw)
  To: Sharlatan Hellseher; +Cc: jgart, 65041

[-- Attachment #1: Type: text/plain, Size: 107 bytes --]

The patch has been applied on the lisp-team branch, along with an update
for sbcl, if you want to test it.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* bug#65041: [PATCH] gnu: clisp: Add threads support on x84_64-linux.
  2023-09-04 13:28     ` Guillaume Le Vaillant
@ 2023-09-23  9:15       ` Guillaume Le Vaillant
  0 siblings, 0 replies; 6+ messages in thread
From: Guillaume Le Vaillant @ 2023-09-23  9:15 UTC (permalink / raw)
  To: Sharlatan Hellseher; +Cc: 65041-done

[-- Attachment #1: Type: text/plain, Size: 71 bytes --]

Merged in master at 4f35ff1275e05be31f5d41464ccf147e9dbfd016.
Closing.

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-09-23  9:17 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-03 16:01 [bug#65041] [PATCH] gnu: clisp: Add threads support on x84_64-linux Sharlatan Hellseher
2023-08-26 16:14 ` [bug#65041] Sharlatan Hellseher
2023-08-28 16:23 ` [bug#65041] [PATCH] gnu: clisp: Add threads support on x84_64-linux Guillaume Le Vaillant
2023-08-31 13:19   ` Sharlatan Hellseher
2023-09-04 13:28     ` Guillaume Le Vaillant
2023-09-23  9:15       ` bug#65041: " Guillaume Le Vaillant

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).