unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* compile error on FreeBSD 9
@ 2013-01-29 23:54 z_axis
  2013-01-30  0:20 ` Nala Ginrut
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: z_axis @ 2013-01-29 23:54 UTC (permalink / raw)
  To: guile-user

guile-2.0.7>./configure --prefix=/home/***/guile/  
LDFLAGS='-L/usr/local/lib'
guile-2.0.7>make
...
./.libs/libguile-2.0.so: undefined reference to `GC_unregister_my_thread'
./.libs/libguile-2.0.so: undefined reference to `GC_pthread_create'
./.libs/libguile-2.0.so: undefined reference to `GC_register_my_thread'
./.libs/libguile-2.0.so: undefined reference to `GC_pthread_detach'
*** Error code 1
...
Stop in guile-2.0.7.

Regards!




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

* Re: compile error on FreeBSD 9
  2013-01-29 23:54 compile error on FreeBSD 9 z_axis
@ 2013-01-30  0:20 ` Nala Ginrut
  2013-01-30  0:27   ` z_axis
  2013-01-30 21:29 ` Ludovic Courtès
  2013-01-30 21:29 ` Ludovic Courtès
  2 siblings, 1 reply; 11+ messages in thread
From: Nala Ginrut @ 2013-01-30  0:20 UTC (permalink / raw)
  To: z_axis; +Cc: Guile User

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

It seems like you should update your libgc to the latest stable gc7.2d.
在 2013-1-30 AM7:55,"z_axis" <z_axis@163.com>写道:

> guile-2.0.7>./configure --prefix=/home/***/guile/
> LDFLAGS='-L/usr/local/lib'
> guile-2.0.7>make
> ...
> ./.libs/libguile-2.0.so: undefined reference to `GC_unregister_my_thread'
> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_create'
> ./.libs/libguile-2.0.so: undefined reference to `GC_register_my_thread'
> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_detach'
> *** Error code 1
> ...
> Stop in guile-2.0.7.
>
> Regards!
>
>
>

[-- Attachment #2: Type: text/html, Size: 1118 bytes --]

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

* Re: compile error on FreeBSD 9
  2013-01-30  0:20 ` Nala Ginrut
@ 2013-01-30  0:27   ` z_axis
  2013-01-30  0:29     ` Noah Lavine
  2013-01-30  0:29     ` Nala Ginrut
  0 siblings, 2 replies; 11+ messages in thread
From: z_axis @ 2013-01-30  0:27 UTC (permalink / raw)
  To: Nala Ginrut; +Cc: Guile User

> pkg_info -W /usr/local/lib/libgc.so
/usr/local/lib/libgc.so was installed by package boehm-gc-7.1

> pkg_info -Qx boehm-gc-7.1
boehm-gc-7.1:Garbage collection and memory leak detection for C and C++

在 Wed, 30 Jan 2013 08:20:56 +0800,Nala Ginrut <nalaginrut@gmail.com>  
写道:

> libgc


-- 
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/




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

* Re: compile error on FreeBSD 9
  2013-01-30  0:27   ` z_axis
@ 2013-01-30  0:29     ` Noah Lavine
  2013-01-30  6:34       ` Mark H Weaver
  2013-01-30  0:29     ` Nala Ginrut
  1 sibling, 1 reply; 11+ messages in thread
From: Noah Lavine @ 2013-01-30  0:29 UTC (permalink / raw)
  To: z_axis; +Cc: Guile User

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

I suspect that libgc 7.1 is too old.

But it's true that Guile's build system should detect that.

Noah



On Tue, Jan 29, 2013 at 7:27 PM, z_axis <z_axis@163.com> wrote:

> pkg_info -W /usr/local/lib/libgc.so
>>
> /usr/local/lib/libgc.so was installed by package boehm-gc-7.1
>
>  pkg_info -Qx boehm-gc-7.1
>>
> boehm-gc-7.1:Garbage collection and memory leak detection for C and C++
>
> 在 Wed, 30 Jan 2013 08:20:56 +0800,Nala Ginrut <nalaginrut@gmail.com> 写道:
>
>  libgc
>>
>
>
> --
> 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
>
>
>

[-- Attachment #2: Type: text/html, Size: 1583 bytes --]

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

* Re: compile error on FreeBSD 9
  2013-01-30  0:27   ` z_axis
  2013-01-30  0:29     ` Noah Lavine
@ 2013-01-30  0:29     ` Nala Ginrut
  2013-01-30  0:47       ` z_axis
  1 sibling, 1 reply; 11+ messages in thread
From: Nala Ginrut @ 2013-01-30  0:29 UTC (permalink / raw)
  To: z_axis; +Cc: Guile User

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

Update to 7.2 please, then give a try.
在 2013-1-30 AM8:28,"z_axis" <z_axis@163.com>写道:

> pkg_info -W /usr/local/lib/libgc.so
>>
> /usr/local/lib/libgc.so was installed by package boehm-gc-7.1
>
>  pkg_info -Qx boehm-gc-7.1
>>
> boehm-gc-7.1:Garbage collection and memory leak detection for C and C++
>
> 在 Wed, 30 Jan 2013 08:20:56 +0800,Nala Ginrut <nalaginrut@gmail.com> 写道:
>
>  libgc
>>
>
>
> --
> 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
>
>

[-- Attachment #2: Type: text/html, Size: 1258 bytes --]

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

* Re: compile error on FreeBSD 9
  2013-01-30  0:29     ` Nala Ginrut
@ 2013-01-30  0:47       ` z_axis
  0 siblings, 0 replies; 11+ messages in thread
From: z_axis @ 2013-01-30  0:47 UTC (permalink / raw)
  To: Nala Ginrut; +Cc: Guile User

I am not sure whether or not the FreeBSD ports has 7.2. i will test it  
later.

在 Wed, 30 Jan 2013 08:29:42 +0800,Nala Ginrut <nalaginrut@gmail.com>  
写道:

> Update to 7.2 please, then give a try.
> 在 2013-1-30 AM8:28,"z_axis" <z_axis@163.com>写道:
>
>> pkg_info -W /usr/local/lib/libgc.so
>>>
>> /usr/local/lib/libgc.so was installed by package boehm-gc-7.1
>>
>>  pkg_info -Qx boehm-gc-7.1
>>>
>> boehm-gc-7.1:Garbage collection and memory leak detection for C and C++
>>
>> 在 Wed, 30 Jan 2013 08:20:56 +0800,Nala Ginrut <nalaginrut@gmail.com>  
>> 写道:
>>
>>  libgc
>>>
>>
>>
>> --
>> 使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
>>
>>


-- 
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/

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

* Re: compile error on FreeBSD 9
  2013-01-30  0:29     ` Noah Lavine
@ 2013-01-30  6:34       ` Mark H Weaver
  0 siblings, 0 replies; 11+ messages in thread
From: Mark H Weaver @ 2013-01-30  6:34 UTC (permalink / raw)
  To: Noah Lavine; +Cc: Guile User

Noah Lavine <noah.b.lavine@gmail.com> writes:
> I suspect that libgc 7.1 is too old.

libgc 7.1 works with Guile 2.0, at least on GNU/Linux, and in fact I
suspect that's the most widely deployed combination of libgc + Guile by
far, because it's what Debian wheezy and Ubuntu 12.04+ include in their
repositories.

Here's the relevant bug report for Guile 2 on FreeBSD 9:

  http://bugs.gnu.org/10235

It would be great if someone on FreeBSD would be willing to continue
investigating this issue.

    Thanks,
      Mark



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

* Re: compile error on FreeBSD 9
  2013-01-29 23:54 compile error on FreeBSD 9 z_axis
  2013-01-30  0:20 ` Nala Ginrut
@ 2013-01-30 21:29 ` Ludovic Courtès
  2013-01-30 21:29 ` Ludovic Courtès
  2 siblings, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2013-01-30 21:29 UTC (permalink / raw)
  To: guile-user

Hi,

z_axis <z_axis@163.com> skribis:

> ./.libs/libguile-2.0.so: undefined reference to `GC_unregister_my_thread'
> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_create'
> ./.libs/libguile-2.0.so: undefined reference to `GC_register_my_thread'
> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_detach'
> *** Error code 1

You need either a libgc built with --enable-threads (though as Mark
noted that seems to be buggy on the Guile side), or Guile built with
--without-threads.

HTH,
Ludo’.




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

* Re: compile error on FreeBSD 9
  2013-01-29 23:54 compile error on FreeBSD 9 z_axis
  2013-01-30  0:20 ` Nala Ginrut
  2013-01-30 21:29 ` Ludovic Courtès
@ 2013-01-30 21:29 ` Ludovic Courtès
  2013-01-31  0:39   ` z_axis
  2 siblings, 1 reply; 11+ messages in thread
From: Ludovic Courtès @ 2013-01-30 21:29 UTC (permalink / raw)
  To: z_axis; +Cc: guile-user

Hi,

z_axis <z_axis@163.com> skribis:

> ./.libs/libguile-2.0.so: undefined reference to `GC_unregister_my_thread'
> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_create'
> ./.libs/libguile-2.0.so: undefined reference to `GC_register_my_thread'
> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_detach'
> *** Error code 1

You need either a libgc built with --enable-threads (though as Mark
noted that seems to be buggy on the Guile side), or Guile built with
--without-threads.

HTH,
Ludo’.



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

* Re: compile error on FreeBSD 9
  2013-01-30 21:29 ` Ludovic Courtès
@ 2013-01-31  0:39   ` z_axis
  2013-01-31 12:53     ` Ludovic Courtès
  0 siblings, 1 reply; 11+ messages in thread
From: z_axis @ 2013-01-31  0:39 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guile-user

i have installed threaded libgc:
$pkg_info | grep boehm-gc
boehm-gc-7.1        Garbage collection and memory leak detection for C and  
C++
boehm-gc-threaded-7.1_1 Garbage collection and memory leak detection for C  
and C++

ls -l /usr/local/lib/libgc[.-]*
lrwxr-xr-x  1 root  wheel      19  1 31 07:54  
/usr/local/lib/libgc-threaded.so@ -> libgc-threaded.so.1
-r--r--r--  1 root  wheel  152513  1 31 07:54  
/usr/local/lib/libgc-threaded.so.1
lrwxr-xr-x  1 root  wheel      10  1 31 07:54 /usr/local/lib/libgc.so@ ->  
libgc.so.1
-rwxr-xr-x  1 root  wheel  132311  1 31 07:54 /usr/local/lib/libgc.so.1*

$./configure --prefix=/home/***/guile --with-threads  
LDFLAGS='-L/usr/local/lib'
$gmake
...
0x281d4ef4 is not a GC visible pointer location
GC_is_visible test failed
Abort trap
gmake[3]: *** [guile-procedures.texi] Error 1

$cat meta/guile-2.0.pc | grep libdir
libdir=${exec_prefix}/lib
Libs: -L${libdir} -lguile-2.0 -L/usr/local/lib -lgc

$uname -a
FreeBSD mybsd.zsoft.com 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Fri Jul   
6 11:09:08 CST 2012  ***@mybsd.zsoft.com:/usr/obj/usr/src/sys/MYKERNEL   
i386

Regards!


在 Thu, 31 Jan 2013 05:29:09 +0800,Ludovic Courtès <ludo@gnu.org> 写道:

> Hi,
>
> z_axis <z_axis@163.com> skribis:
>
>> ./.libs/libguile-2.0.so: undefined reference to  
>> `GC_unregister_my_thread'
>> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_create'
>> ./.libs/libguile-2.0.so: undefined reference to `GC_register_my_thread'
>> ./.libs/libguile-2.0.so: undefined reference to `GC_pthread_detach'
>> *** Error code 1
>
> You need either a libgc built with --enable-threads (though as Mark
> noted that seems to be buggy on the Guile side), or Guile built with
> --without-threads.
>
> HTH,
> Ludo’.


-- 
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/




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

* Re: compile error on FreeBSD 9
  2013-01-31  0:39   ` z_axis
@ 2013-01-31 12:53     ` Ludovic Courtès
  0 siblings, 0 replies; 11+ messages in thread
From: Ludovic Courtès @ 2013-01-31 12:53 UTC (permalink / raw)
  To: z_axis; +Cc: guile-user

z_axis <z_axis@163.com> skribis:

> i have installed threaded libgc:
> $pkg_info | grep boehm-gc
> boehm-gc-7.1        Garbage collection and memory leak detection for C
> and C++
> boehm-gc-threaded-7.1_1 Garbage collection and memory leak detection
> for C and C++

[...]

> $./configure --prefix=/home/***/guile --with-threads
> LDFLAGS='-L/usr/local/lib'
> $gmake
> ...
> 0x281d4ef4 is not a GC visible pointer location
> GC_is_visible test failed
> Abort trap

As others pointed out, using version 7.2 may work better, and disabling
thread support may also work better on FreeBSD 9.

Ludo’.



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

end of thread, other threads:[~2013-01-31 12:53 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-29 23:54 compile error on FreeBSD 9 z_axis
2013-01-30  0:20 ` Nala Ginrut
2013-01-30  0:27   ` z_axis
2013-01-30  0:29     ` Noah Lavine
2013-01-30  6:34       ` Mark H Weaver
2013-01-30  0:29     ` Nala Ginrut
2013-01-30  0:47       ` z_axis
2013-01-30 21:29 ` Ludovic Courtès
2013-01-30 21:29 ` Ludovic Courtès
2013-01-31  0:39   ` z_axis
2013-01-31 12:53     ` Ludovic Courtès

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).