[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: trouble compiling guile
From: |
Waitman Gobble |
Subject: |
Re: trouble compiling guile |
Date: |
Tue, 28 Feb 2012 11:43:09 -0800 (PST) |
Waitman Gobble <address@hidden> wrote ..
>
> Hi,
>
> Hitting a snag compiling guile.
>
> # ./configure --prefix=/usr
> # make
> ..
> gc.c:213: error: static declaration of 'GC_get_free_space_divisor' follows
> non-static
> declaration
> /usr/include/gc/gc.h:260: error: previous declaration of
> 'GC_get_free_space_divisor'
> was here
> make[3]: *** [libguile_2.2_la-gc.lo] Error 1
> make[3]: Leaving directory `/usr/src/gnu/usr.bin/guile/libguile'
> make[2]: *** [install] Error 2
> make[2]: Leaving directory `/usr/src/gnu/usr.bin/guile/libguile'
> make[1]: *** [install-recursive] Error 1
> make[1]: Leaving directory `/usr/src/gnu/usr.bin/guile'
> make: *** [install] Error 2
>
> the machine:
>
> # uname -a
> FreeBSD hunny.waitman.net 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Sat Feb 25
> 23:36:23
> PST 2012 root@:/usr/obj/usr/src/sys/KEYSHIA amd64
>
>
> I'm using gc-7.2alpha6 which I think I recall worked better on my CentOS 5.7
> Machine...
> when I bootstrapped gcc4.6 from 4.2. but maybe I need to recompile gc.
>
> Hints/Suggestions appreciated!
>
> Thank you,
>
It looks like maybe there is code in libguile/gc.c that is only compiled if
functions don't previously exist (in bdw-gc i guess).. for some reason it's not
catching it. The stock gcc compiler with FreeBSD 10.0-Current (4.2.1 i think)
is complaining. Commenting out the function def GC_get_free_space_divisor in
gc.c seems to fix it, but it hits some more similar issues.. Anyway I'm trying
to build it now with gcc46 from ports, (which I was trying to avoid)... seems
to be working, or spitting out warnings but no errors, made it past the
libguile stuff. :) We'll see what happens.
Thanks
--
Waitman Gobble
San Jose California USA