From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Neil Jerram Newsgroups: gmane.lisp.guile.user Subject: Re: threads in guile-1.8 Date: Fri, 25 Jan 2008 19:02:00 +0000 Message-ID: <87lk6dybiv.fsf@ossau.uklinux.net> References: <3F715C67433E594B88B5ABEBBC6EE49F01A21010@fe-mail47.de.bosch.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1201287755 14019 80.91.229.12 (25 Jan 2008 19:02:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 25 Jan 2008 19:02:35 +0000 (UTC) Cc: guile-user@gnu.org To: "Pach Roman (DGS-EC/EHS2)" Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Fri Jan 25 20:02:54 2008 Return-path: Envelope-to: guile-user@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JITp3-0004ZO-N2 for guile-user@m.gmane.org; Fri, 25 Jan 2008 20:02:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JITod-0004ky-Fb for guile-user@m.gmane.org; Fri, 25 Jan 2008 14:02:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JIToY-0004jq-FR for guile-user@gnu.org; Fri, 25 Jan 2008 14:02:10 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JIToW-0004iI-Ra for guile-user@gnu.org; Fri, 25 Jan 2008 14:02:10 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JIToW-0004i5-OJ for guile-user@gnu.org; Fri, 25 Jan 2008 14:02:08 -0500 Original-Received: from mail3.uklinux.net ([80.84.72.33]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JIToW-0006h7-7j for guile-user@gnu.org; Fri, 25 Jan 2008 14:02:08 -0500 Original-Received: from arudy (host86-145-183-175.range86-145.btcentralplus.com [86.145.183.175]) by mail3.uklinux.net (Postfix) with ESMTP id 628681F691F; Fri, 25 Jan 2008 19:02:07 +0000 (GMT) Original-Received: from laruns (unknown [192.168.0.10]) by arudy (Postfix) with ESMTP id 551F43800A; Fri, 25 Jan 2008 19:02:01 +0000 (GMT) In-Reply-To: <3F715C67433E594B88B5ABEBBC6EE49F01A21010@fe-mail47.de.bosch.com> (Pach Roman's message of "Fri, 25 Jan 2008 05:56:42 +0100") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: guile-user-bounces+guile-user=m.gmane.org@gnu.org Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.user:6387 Archived-At: "Pach Roman (DGS-EC/EHS2)" writes: > Hello, Hello! > I have tried to move my software from guile-1.6 to 1.8. > The part using threads did not want to run. > So I tried a small test: > > guile> (use-modules (ice-9 threads)) > guile> (make-thread (lambda () '())) > > and become a following error message: > > In standard input: > 3: 0* (make-thread (lambda () (quote ()))) > 3: 1 [call-with-new-thread # # #>] > standard input:3:1: In procedure call-with-new-thread in expression > (call-with-new-thread (lambda () #) %thread-handler): > > standard input:3:1: Function not implemented That's not good. Which 1.8 version are you using? ("guile --version" will tell you.) > My question is, are the threads not implemented in version 1.8 ? Yes, they certainly are implemented. With 1.8.x CVS, I get: neil@arudy:~/Organized/SW/Guile/guile-cvs-1.8/guile/guile-core$ ./pre-inst-guile -q guile> (use-modules (ice-9 threads)) guile> (make-thread (lambda () '())) # and I don't believe there have been big changes to the relevant code since the start of the 1.8 series. Did you configure --with-threads ? If not, maybe that's the problem. (Although I still can't work out where the "Function not implemented" message comes from.) Regards, Neil