From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Luca Saiu Newsgroups: gmane.lisp.guile.bugs Subject: Re: Likely bug: SMOBs and mark functions Date: Thu, 17 Feb 2011 15:08:34 +0100 Message-ID: <4D5D2BE2.4050900@gnu.org> References: <20100719-005153.sv1523.70961@savannah.gnu.org> <20100719-005459.sv1523.65271@savannah.gnu.org> <20100719-005950.sv1523.43708@savannah.gnu.org> <20100724-161608.sv15145.2405@savannah.gnu.org> <20110213-185123.sv20118.98931@savannah.gnu.org> <4D5A6A92.1080702@gnu.org> <8739npi9zq.fsf@gnu.org> <4D5AA730.2040706@gnu.org> <871v38cduu.fsf@gnu.org> <4D5CED2D.6090600@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1297951776 21211 80.91.229.12 (17 Feb 2011 14:09:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 17 Feb 2011 14:09:36 +0000 (UTC) Cc: bug-guile@gnu.org, =?UTF-8?B?THVkb3ZpYyBDb3VydMOocw==?= To: Andy Wingo Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Thu Feb 17 15:09:32 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Pq4Xx-0000es-TD for guile-bugs@m.gmane.org; Thu, 17 Feb 2011 15:09:30 +0100 Original-Received: from localhost ([127.0.0.1]:38854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq4Xw-0005Nc-Q0 for guile-bugs@m.gmane.org; Thu, 17 Feb 2011 09:09:28 -0500 Original-Received: from [140.186.70.92] (port=39152 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pq4XC-0004oP-1T for bug-guile@gnu.org; Thu, 17 Feb 2011 09:08:43 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pq4XA-00021d-Cw for bug-guile@gnu.org; Thu, 17 Feb 2011 09:08:42 -0500 Original-Received: from mail.lipn.univ-paris13.fr ([194.254.163.24]:50551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pq4XA-00021F-5A; Thu, 17 Feb 2011 09:08:40 -0500 Original-Received: from [10.10.0.234] (optimum.lipn.univ-paris13.fr [10.10.0.234]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: saiu@lipn.univ-paris13.fr) by mail.lipn.univ-paris13.fr (sendmail 8.9.3/8.9.2) with ESMTP id 1DEB422E0D; Thu, 17 Feb 2011 15:08:39 +0100 (CET) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10 In-Reply-To: X-Enigmail-Version: 1.0.1 OpenPGP: id=26C5D286; url=http://www-lipn.univ-paris13.fr/~saiu/lucasaiu.asc X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 194.254.163.24 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:5172 Archived-At: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 02/17/2011 12:13 PM, Andy Wingo wrote: > On Thu 17 Feb 2011 10:41, Luca Saiu writes: > >> I've tried with the latest 7.2 tarball I've found at >> http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/ , i.e. the >> alpha5 of 2011-02-01; to make it quick yes, the thing worked, so the >> problem probably depended on libgc. Sorry for the noise. > > NP. Did you also enable parallel collection on that build? Not on that build, as you requested a 'stock' GC. Now I'm testing again with parallel marking enabled... >> [luca@optimum ~/projects-by-others/guile-2.0.0/doc/example-smob]$ >> pkg-config guile-2.0 --cflags >> Package guile-2.0 was not found in the pkg-config search path. >> Perhaps you should add the directory containing `guile-2.0.pc' >> to the PKG_CONFIG_PATH environment variable >> No package 'guile-2.0' found > > Indeed, just as you add paths to the other env vars, you need to do so > for pkg-config. > > See "Environment Variables" in the pkg-config(1) man page. I will. Thanks. >> [luca@optimum ~/projects-by-others/guile-2.0.0/doc/example-smob]$ gcc -c >> `guile-config compile` myguile.c > > This is really strange, for me, because I think the current guile-config > just shells out to pkg-config. Indeed. > Is it possible you modified the environment in the meantime? I didn't modify the environment, but the source of guile-config explains everything: after configuration, I see the second line of guile-config as PKG_CONFIG_PATH="/home/luca/usr/lib/pkgconfig:$PKG_CONFIG_PATH" , and I see that PKG_CONFIG_PATH is (at least part of) what you were hinting at in pkg-config(1). So, just for completeness, I'm fixing my PKG_CONFIG_PATH and testing again; this time with parallel marking on, GC version 7_2alpha5-20110107. [luca@optimum ~/projects-by-others/guile-2.0.0]$ export PKG_CONFIG_PATH="/home/luca/usr/lib/pkgconfig:$PKG_CONFIG_PATH" [luca@optimum ~/projects-by-others/guile-2.0.0]$ cd doc/example-smob/ [luca@optimum ~/projects-by-others/guile-2.0.0/doc/example-smob]$ make cc `pkg-config guile-2.0 --cflags` -c -o image-type.o image-type.c cc `pkg-config guile-2.0 --cflags` -c -o myguile.o myguile.c cc image-type.o myguile.o `pkg-config guile-2.0 --libs` -o myguile [luca@optimum ~/projects-by-others/guile-2.0.0/doc/example-smob]$ ./myguile GNU Guile 2.0.0 Copyright (C) 1995-2011 Free Software Foundation, Inc. Guile comes with ABSOLUTELY NO WARRANTY; for details type `,show w'. This program is free software, and you are welcome to redistribute it under certain conditions; type `,show c' for details. Enter `,help' for help. scheme@(guile-user)> make-image $1 = # scheme@(guile-user)> (define i (make-image "Whistler's Mother" 100 100)) scheme@(guile-user)> i $2 = # scheme@(guile-user)> (gc) scheme@(guile-user)> (gc) scheme@(guile-user)> (gc) scheme@(guile-user)> (gc) scheme@(guile-user)> (gc) scheme@(guile-user)> (gc) scheme@(guile-user)> (gc) scheme@(guile-user)> (gc) scheme@(guile-user)> (gc) scheme@(guile-user)> (gc) scheme@(guile-user)> (gc) scheme@(guile-user)> And it works. Good :-). Sorry again, - -- Luca Saiu http://www-lipn.univ-paris13.fr/~saiu GNU epsilon: http://www.gnu.org/software/epsilon Marionnet: http://www.marionnet.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk1dK+IACgkQvzOavibF0obsTACeJPfbUJ7eL9bQ+Nm2w1pIaBi9 BG0AoKG3q25XfmxQkWiyJTBsFIrs9Miw =uWmd -----END PGP SIGNATURE-----