From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marco Maggi Newsgroups: gmane.lisp.guile.bugs Subject: Re: guile-2.0.0 fails to build without threads Date: Tue, 12 Apr 2011 08:49:22 +0200 Message-ID: <87y63gj765.fsf@rapitore.luna> References: <4D9DCE98.5080808@gentoo.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1302590844 9973 80.91.229.12 (12 Apr 2011 06:47:24 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 12 Apr 2011 06:47:24 +0000 (UTC) To: bug-guile@gnu.org Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Tue Apr 12 08:47:20 2011 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from [140.186.70.17] (helo=lists.gnu.org) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Q9XNe-0001io-KI for guile-bugs@m.gmane.org; Tue, 12 Apr 2011 08:47:18 +0200 Original-Received: from localhost ([::1]:35293 helo=lists2.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9XNe-0001Pb-6w for guile-bugs@m.gmane.org; Tue, 12 Apr 2011 02:47:18 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:36785) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9XNa-0001Oo-QY for bug-guile@gnu.org; Tue, 12 Apr 2011 02:47:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q9XNY-0001Q6-UW for bug-guile@gnu.org; Tue, 12 Apr 2011 02:47:14 -0400 Original-Received: from relay-pt2.poste.it ([62.241.5.253]:40908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q9XNY-0001Pf-KC for bug-guile@gnu.org; Tue, 12 Apr 2011 02:47:12 -0400 Original-Received: from rapitore.luna (93.147.76.220) by relay-pt2.poste.it (8.5.121.01) (authenticated as marco.maggi-ipsu@poste.it) id 00000000005D6D4F for bug-guile@gnu.org; Tue, 12 Apr 2011 08:47:10 +0200 Original-Sender: marco.maggi-ipsu@poste.it X-Loop: marco@maggi.it.invalid X-Mailer: GNU Emacs Original-Lines: 192 X-detected-operating-system: by eggs.gnu.org: Solaris 9 X-Received-From: 62.241.5.253 X-BeenThere: bug-guile@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Bug reports for GUILE, GNU's Ubiquitous Extension Language" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Original-Sender: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org X-Broken-Reverse-DNS: no host name found for IP address 140.186.70.17 Xref: news.gmane.org gmane.lisp.guile.bugs:5456 Archived-At: 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: HTH -- Marco Maggi