bug-guile
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Likely bug: SMOBs and mark functions


From: Luca Saiu
Subject: Re: Likely bug: SMOBs and mark functions
Date: Thu, 17 Feb 2011 15:08:34 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Icedove/3.0.10

-----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 <address@hidden> 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...

>> address@hidden ~/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.

>> address@hidden ~/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.

address@hidden ~/projects-by-others/guile-2.0.0]$ export
PKG_CONFIG_PATH="/home/luca/usr/lib/pkgconfig:$PKG_CONFIG_PATH"
address@hidden ~/projects-by-others/guile-2.0.0]$ cd doc/example-smob/
address@hidden ~/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
address@hidden ~/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 = #<procedure make-image (_ _ _)>
scheme@(guile-user)> (define i (make-image "Whistler's Mother" 100 100))
scheme@(guile-user)> i
$2 = #<image Whistler's Mother>
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-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]