bug-guile
[Top][All Lists]
Advanced

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

Re: guile-2.0.0 fails to build without threads


From: Marco Maggi
Subject: Re: guile-2.0.0 fails to build without threads
Date: Tue, 12 Apr 2011 08:49:22 +0200

Marijn wrote:

> guile-2.0.0 fails to  build without --disable-threads when
> libgc (boehm-gc in gentoo) is built without threads:
>
>  GEN    guile-procedures.texi
>0x75c140 is not a GC visible pointer location
>GC_is_visible test failed

I am following up here because  I have a problem at the same
point when  building branch stable-2.0; I  have just fetched
from the repository, so I have the commit c89b452993...

  On  a i686-pc-linux-gnu, I  still have  installed Autoconf
2.65, while  I see that  the last is  2.68; I run  gcc (GCC)
4.6.0, and:

$ ldd /usr/local/lib/libgc.so.1.0.3
        linux-gate.so.1 =3D>  (0xffffe000)
        libpthread.so.0 =3D> /lib/libpthread.so.0 (0xb76e8000)
        libdl.so.2 =3D> /lib/libdl.so.2 (0xb76e4000)
        libgcc_s.so.1 =3D> /usr/local/lib/libgcc_s.so.1 (0xb76c7000)
        libc.so.6 =3D> /lib/libc.so.6 (0xb7564000)
        /lib/ld-linux.so.2 (0xb7762000)

  In the stable-2.0 branch I do:

$ git clean -dxf
$ ./autogen.sh
$ ./configure \
    --prefix=3D/usr/local \
    --enable-shared --disable-static \
    CFLAGS=3D'-O3 -march=3Di686 -mtune=3Di686'

everything looks fine; then I do:

$ make

while it goes I see:

  CC     libguile_2.0_la-rw.lo
  CC     libguile_2.0_la-scmsigs.lo
scmsigs.c: In function 'signal_delivery_thread':
scmsigs.c:159:3: warning: implicit declaration of function 'GC_pthread_sigm=
ask' [-Wimplicit-function-declaration]
  CC     libguile_2.0_la-script.lo
  CC     libguile_2.0_la-simpos.lo

then:

  CC     libguile_2.0_la-symbols.lo
  CC     libguile_2.0_la-threads.lo
threads.c: In function 'launch_thread':
threads.c:962:3: warning: implicit declaration of function 'GC_pthread_deta=
ch' [-Wimplicit-function-declaration]
threads.c: In function 'scm_call_with_new_thread':
threads.c:997:3: warning: implicit declaration of function 'GC_pthread_crea=
te' [-Wimplicit-function-declaration]
  CC     libguile_2.0_la-throw.lo
  CC     libguile_2.0_la-trees.lo

then:

  SNARF  mallocs.doc
  SNARF  memoize.doc
memoize.c:478:***Mismatching FUNC_NAME.  Should be: `#define FUNC_NAME s_"@=
prompt"'
  SNARF  modules.doc
  SNARF  numbers.doc

then:

  SNARF  options.doc
  SNARF  pairs.doc
pairs.c:147:***Missing or erroneous `#define FUNC_NAME s_scm_cdr'
pairs.c:150:***Missing or erroneous #undef for scm_car:
pairs.c:155:***Missing or erroneous `#define FUNC_NAME s_scm_cddr'
pairs.c:158:***Missing or erroneous #undef for scm_cdar:
pairs.c:163:***Missing or erroneous `#define FUNC_NAME s_scm_cadr'
pairs.c:166:***Missing or erroneous #undef for scm_caar:
pairs.c:171:***Missing or erroneous `#define FUNC_NAME s_scm_cdddr'
pairs.c:174:***Missing or erroneous #undef for scm_cddar:
pairs.c:179:***Missing or erroneous `#define FUNC_NAME s_scm_cdadr'
pairs.c:182:***Missing or erroneous #undef for scm_cdaar:
pairs.c:187:***Missing or erroneous `#define FUNC_NAME s_scm_caddr'
pairs.c:190:***Missing or erroneous #undef for scm_cadar:
pairs.c:195:***Missing or erroneous `#define FUNC_NAME s_scm_caadr'
pairs.c:198:***Missing or erroneous #undef for scm_caaar:
pairs.c:203:***Missing or erroneous `#define FUNC_NAME s_scm_cddddr'
pairs.c:206:***Missing or erroneous #undef for scm_cdddar:
pairs.c:211:***Missing or erroneous `#define FUNC_NAME s_scm_cddadr'
pairs.c:214:***Missing or erroneous #undef for scm_cddaar:
pairs.c:219:***Missing or erroneous `#define FUNC_NAME s_scm_cdaddr'
pairs.c:222:***Missing or erroneous #undef for scm_cdadar:
pairs.c:227:***Missing or erroneous `#define FUNC_NAME s_scm_cdaadr'
pairs.c:230:***Missing or erroneous #undef for scm_cdaaar:
pairs.c:235:***Missing or erroneous `#define FUNC_NAME s_scm_cadddr'
pairs.c:238:***Missing or erroneous #undef for scm_caddar:
pairs.c:243:***Missing or erroneous `#define FUNC_NAME s_scm_cadadr'
pairs.c:246:***Missing or erroneous #undef for scm_cadaar:
pairs.c:251:***Missing or erroneous `#define FUNC_NAME s_scm_caaddr'
pairs.c:254:***Missing or erroneous #undef for scm_caadar:
pairs.c:259:***Missing or erroneous `#define FUNC_NAME s_scm_caaadr'
pairs.c:262:***Missing or erroneous #undef for scm_caaaar:
  SNARF  ports.doc
  SNARF  print.doc

and finally:

  SNARF  regex-posix.doc
  GEN    guile-procedures.texi
Throw without catch before boot:
Throw to key stack-overflow with args (#f "Stack overflow" #f #f)Aborting.
cat: write error: Broken pipe
/bin/sh: line 1: 14549 Done(1)                 cat alist.doc arbiters.doc a=
rray-handle.doc array-map.doc arrays.doc async.doc backtrace.doc boolean.do=
c bitvectors.doc bytevectors.doc chars.doc control.doc continuations.doc de=
bug.doc deprecated.doc deprecation.doc dynl.doc dynwind.doc eq.doc error.do=
c eval.doc evalext.doc expand.doc extensions.doc feature.doc fluids.doc for=
eign.doc fports.doc gc-malloc.doc gc.doc gettext.doc generalized-arrays.doc=
 generalized-vectors.doc goops.doc gsubr.doc guardians.doc hash.doc hashtab=
.doc hooks.doc i18n.doc init.doc ioext.doc keywords.doc list.doc load.doc m=
acros.doc mallocs.doc memoize.doc modules.doc numbers.doc objprop.doc optio=
ns.doc pairs.doc ports.doc print.doc procprop.doc procs.doc promises.doc r6=
rs-ports.doc random.doc rdelim.doc read.doc root.doc rw.doc scmsigs.doc scr=
ipt.doc simpos.doc smob.doc sort.doc srcprop.doc srfi-1.doc srfi-4.doc srfi=
-13.doc srfi-14.doc srfi-60.doc stackchk.doc stacks.doc stime.doc strings.d=
oc strorder.doc strports.doc struct.doc symbols.doc threads.doc throw.doc t=
rees.doc uniform.doc values.doc variable.doc vectors.doc version.doc vports=
.doc weaks.doc dynl.doc filesys.doc posix.doc net_db.doc socket.doc regex-p=
osix.doc
     14550 Aborted                 | GUILE_AUTO_COMPILE=3D0 ../meta/uninsta=
lled-env guile-tools snarf-check-and-output-texi > guile-procedures.texi
make[3]: *** [guile-procedures.texi] Error 1
make[3]: Leaving directory `/home/marco/src/devel/scheme/checkouts/guile/li=
bguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/marco/src/devel/scheme/checkouts/guile/li=
bguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/marco/src/devel/scheme/checkouts/guile'
make: *** [all] Error 2

  Now   if    I   repeat   the    whole   procedure   adding
"--without-threads" to the "configure" invocation, I get the
minor warning:

  CC     libguile_2.0_la-symbols.lo
  CC     libguile_2.0_la-threads.lo
threads.c: In function 'scm_cancel_thread':
threads.c:1112:7: warning: statement with no effect [-Wunused-value]
  CC     libguile_2.0_la-throw.lo
  CC     libguile_2.0_la-trees.lo

and finally the unexpected:

  CC     filesys.lo
  CC     posix.lo
posix.c:1910:1: error: unknown type name 'cpu_set_t'
posix.c: In function 'cpu_set_to_bitvector':
posix.c:1919:7: warning: implicit declaration of function 'CPU_ISSET' [-Wim=
plicit-function-declaration]
posix.c: In function 'scm_getaffinity':
posix.c:1940:3: error: unknown type name 'cpu_set_t'
posix.c:1942:3: warning: implicit declaration of function 'CPU_ZERO' [-Wimp=
licit-function-declaration]
posix.c:1943:3: warning: implicit declaration of function 'sched_getaffinit=
y' [-Wimplicit-function-declaration]
posix.c: In function 'scm_setaffinity':
posix.c:1965:3: error: unknown type name 'cpu_set_t'
posix.c:1981:2: warning: implicit declaration of function 'CPU_SET' [-Wimpl=
icit-function-declaration]
posix.c:1984:3: warning: implicit declaration of function 'sched_setaffinit=
y' [-Wimplicit-function-declaration]
make[3]: *** [posix.lo] Error 1
make[3]: Leaving directory `/home/marco/src/devel/scheme/checkouts/guile/li=
bguile'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/marco/src/devel/scheme/checkouts/guile/li=
bguile'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/marco/src/devel/scheme/checkouts/guile'
make: *** [all] Error 2

  I have kept the "config.log" files; they are quite big, so
for some days I will make them available here:

     <http://github.com/marcomaggi/nausicaa/downloads>

HTH
-- 
Marco Maggi



reply via email to

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