From: Marco Maggi <marco.maggi-ipsu@poste.it>
To: bug-guile@gnu.org
Subject: Re: guile-2.0.0 fails to build without threads
Date: Tue, 12 Apr 2011 08:49:22 +0200 [thread overview]
Message-ID: <87y63gj765.fsf@rapitore.luna> (raw)
In-Reply-To: 4D9DCE98.5080808@gentoo.org
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
next prev parent reply other threads:[~2011-04-12 6:49 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-07 14:47 guile-2.0.0 fails to build without threads Marijn
2011-04-11 16:19 ` Andy Wingo
2011-04-12 7:26 ` Marijn
2011-04-13 10:05 ` Andy Wingo
2011-04-13 13:44 ` Marijn
2011-04-13 14:09 ` Andy Wingo
2011-04-13 14:27 ` Marijn
2011-04-13 15:22 ` Andy Wingo
2011-04-14 13:25 ` Marijn
2011-04-28 11:17 ` Andy Wingo
2011-04-28 13:08 ` Ludovic Courtès
2011-04-28 13:15 ` Andy Wingo
2011-04-28 15:09 ` Ludovic Courtès
2011-05-03 14:58 ` Marijn
2011-05-04 12:19 ` Ludovic Courtès
2011-05-05 8:04 ` Marijn
2011-05-05 12:08 ` Ludovic Courtès
2011-05-05 13:59 ` Marijn
2011-05-05 14:25 ` Ludovic Courtès
2011-05-06 8:16 ` Marijn
2011-05-06 9:52 ` Ludovic Courtès
2011-05-06 12:49 ` Marijn
2011-05-10 7:43 ` Marijn
2011-05-03 14:55 ` Marijn
2011-04-12 6:49 ` Marco Maggi [this message]
2011-04-13 9:04 ` Marco Maggi
2011-04-13 11:42 ` Marco Maggi
2011-04-13 12:26 ` Andy Wingo
2011-04-13 13:56 ` Marco Maggi
2011-04-28 11:21 ` Andy Wingo
2011-05-02 6:20 ` Marco Maggi
2011-05-20 9:37 ` Andy Wingo
2011-05-20 18:41 ` Marco Maggi
2011-05-21 2:23 ` Mark H Weaver
2011-05-21 8:45 ` Andy Wingo
2011-05-21 13:51 ` Marco Maggi
2011-05-21 14:29 ` Neil Jerram
2011-06-17 10:25 ` Andy Wingo
2011-06-20 8:06 ` Andy Wingo
2011-06-22 21:39 ` Neil Jerram
2011-04-13 9:55 ` Andy Wingo
2011-04-13 14:19 ` Marco Maggi
2011-04-13 21:57 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/guile/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87y63gj765.fsf@rapitore.luna \
--to=marco.maggi-ipsu@poste.it \
--cc=bug-guile@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).