Hello Guilhem,

Il y a 34 minutes et 8 secondes, [email protected] écrivit :
> Hello,
>
> Here are the steps the problem:
> - get the last bigloo distributino (4.2a, have also tried with 4.1a and 3.9)
> - build it
>   $ ./configure --enable-pthread && make & &make install
>   no error, installation is correct
> - run bigloo and use the pthread library
>   $ bigloo
>   1:=> (module x (library pthread) (main main))
> *** ERROR:dynamic-load:/usr/local/lib/bigloo/4.2a/libbigloopthread_s-4.2a.so:
> /usr/local/lib/bigloo/4.2a/libbigloopthread_s-4.2a.so: undefined symbol:
> GC_pthread_sigmask -- /usr/local/lib/bigloo/4.2a/libbigloopthread_s-4.2a.so
> - same result with fthread, bigloo 4.1a and 3.9

This is a known issue [1].  The bigloo REPL is linked against the
mono-threaded GC.  The consequence is that symbols needed by the
pthread library are not defined in the GC library.

You can write and build your own pthread-enabled REPL using the simple
following code, quoting from [1]:

-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----
$ cat > bglrepl.scm << EOF
(module bglrepl
(library pthread))

(repl)
EOF
$ bigloo bglrepl.scm -o bglrepl
$ ./bglrepl
:=> (load "test-pthread.scm")
^D
-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----|-----


Hope this helps


1. https://sympa.inria.fr/sympa/arc/bigloo/2008-05/msg00015.html

-- 
Cyprien Nicolas, PhD Student, INDES Team

Attachment: signature.asc
Description: Digital signature

Reply via email to