From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ricardo Wurmus Newsgroups: gmane.lisp.guile.bugs Subject: bug#19180: Weak tables harmful to GC? Date: Wed, 25 Oct 2017 08:38:35 +0200 Message-ID: <87a80fd95g.fsf__16643.0556601428$1508920000$gmane$org@elephly.net> References: <87wp9gwz8m.fsf@gnu.org> <87fug4o8z2.fsf@pobox.com> <87wp54z3p5.fsf@gnu.org> <87zi9th1i6.fsf_-_@gnu.org> <87y3o454pr.fsf@gnu.org> <87r2tvncs5.fsf@dustycloud.org> <87wp3mwwef.fsf@gnu.org> <87mv4gd0ik.fsf@elephly.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1508920000 14315 195.159.176.226 (25 Oct 2017 08:26:40 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Oct 2017 08:26:40 +0000 (UTC) User-Agent: mu4e 0.9.18; emacs 25.3.1 Cc: Andy Wingo , 19180@debbugs.gnu.org, guile-devel@gnu.org To: Ludovic =?UTF-8?Q?Court=C3=A8s?= Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Wed Oct 25 10:26:28 2017 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7H14-0001A7-Mh for guile-bugs@m.gmane.org; Wed, 25 Oct 2017 10:26:23 +0200 Original-Received: from localhost ([::1]:47137 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7H18-0002ki-HR for guile-bugs@m.gmane.org; Wed, 25 Oct 2017 04:26:26 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:46828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1e7H0q-0002kU-Mk for bug-guile@gnu.org; Wed, 25 Oct 2017 04:26:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1e7H0k-0003gr-Q7 for bug-guile@gnu.org; Wed, 25 Oct 2017 04:26:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:51966) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1e7H0k-0003gd-La for bug-guile@gnu.org; Wed, 25 Oct 2017 04:26:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1e7H0j-0004OV-WC for bug-guile@gnu.org; Wed, 25 Oct 2017 04:26:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Ricardo Wurmus Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Wed, 25 Oct 2017 08:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19180 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 19180-submit@debbugs.gnu.org id=B19180.150891995916881 (code B ref 19180); Wed, 25 Oct 2017 08:26:01 +0000 Original-Received: (at 19180) by debbugs.gnu.org; 25 Oct 2017 08:25:59 +0000 Original-Received: from localhost ([127.0.0.1]:60647 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7H0g-0004OC-73 for submit@debbugs.gnu.org; Wed, 25 Oct 2017 04:25:59 -0400 Original-Received: from sender-of-o51.zoho.com ([135.84.80.216]:21091) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1e7H0c-0004O3-V6 for 19180@debbugs.gnu.org; Wed, 25 Oct 2017 04:25:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1508913519; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; l=19628; bh=nZp4PIzcjXWt2vYn4q7EZ8p3FAJBYHJpe6YhlJyHuUM=; b=ZhixuHyiWx6UYs6AxNDAGjyvX7/qio0Q7fR4i0VYfrGYHn4uTh6px9iT1PDMDqBz NgfBFsmrMAVH49INVQlJHw0qAPkFhLlZCYNDTrR6tdzh6aQqpNWRaxdt0TPRlvKBYp3 gVCfcv7hfn5OaT4kIPCtGm3vsUEUjqN/BVjSOsQM= Original-Received: from localhost (port-92-200-38-92.dynamic.qsc.de [92.200.38.92]) by mx.zohomail.com with SMTPS id 1508913519475657.0389736608046; Tue, 24 Oct 2017 23:38:39 -0700 (PDT) In-reply-to: <87mv4gd0ik.fsf@elephly.net> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC X-ZohoMailClient: External X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-guile@gnu.org 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" Xref: news.gmane.org gmane.lisp.guile.bugs:8858 Archived-At: [resending this because it may not have arrived] Ricardo Wurmus writes: > Hi Ludo, > > does this apply to the latest release of Guile 2.2.2? I’ve created this > package definition: > > --8<---------------cut here---------------start------------->8--- > (define-public guile-2.2-awesome > (package (inherit guile-2.2) > (name "guile-awesome") > (source (origin (inherit (package-source guile-2.2)) > (patches (list "0001-Remove-weak-tables-and-revert-to-weak-hash-tables.patch" > "0002-Keep-weak-hash-table-item-count-consistent.patch")))))) > > --8<---------------cut here---------------end--------------->8--- > > But the build fails: > > --8<---------------cut here---------------start------------->8--- > In file included from weak-table.c:37:0: > ../libguile/weak-table.h:34:3: error: redeclaration of enumerator 'SCM_WEAK_TABLE_KIND_KEY' > SCM_WEAK_TABLE_KIND_KEY, > ^ > In file included from ../libguile.h:65:0, > from ../libguile/programs.h:22, > from ../libguile/_scm.h:85, > from weak-table.c:30: > ../libguile/hashtab.h:36:3: note: previous definition of 'SCM_WEAK_TABLE_KIND_KEY' was here > SCM_WEAK_TABLE_KIND_KEY = 1, > ^ > In file included from weak-table.c:37:0: > ../libguile/weak-table.h:35:3: error: redeclaration of enumerator 'SCM_WEAK_TABLE_KIND_VALUE' > SCM_WEAK_TABLE_KIND_VALUE, > ^ > In file included from ../libguile.h:65:0, > from ../libguile/programs.h:22, > from ../libguile/_scm.h:85, > from weak-table.c:30: > ../libguile/hashtab.h:37:3: note: previous definition of 'SCM_WEAK_TABLE_KIND_VALUE' was here > SCM_WEAK_TABLE_KIND_VALUE = 2, > ^ > In file included from weak-table.c:37:0: > ../libguile/weak-table.h:36:3: error: redeclaration of enumerator 'SCM_WEAK_TABLE_KIND_BOTH' > SCM_WEAK_TABLE_KIND_BOTH, > ^ > In file included from ../libguile.h:65:0, > from ../libguile/programs.h:22, > from ../libguile/_scm.h:85, > from weak-table.c:30: > ../libguile/hashtab.h:38:3: note: previous definition of 'SCM_WEAK_TABLE_KIND_BOTH' was here > SCM_WEAK_TABLE_KIND_BOTH = 1 | 2 > ^ > In file included from weak-table.c:37:0: > ../libguile/weak-table.h:37:3: error: conflicting types for 'scm_t_weak_table_kind' > } scm_t_weak_table_kind; > ^ > In file included from ../libguile.h:65:0, > from ../libguile/programs.h:22, > from ../libguile/_scm.h:85, > from weak-table.c:30: > ../libguile/hashtab.h:39:3: note: previous declaration of 'scm_t_weak_table_kind' was here > } scm_t_weak_table_kind; > ^ > In file included from weak-table.c:37:0: > ../libguile/weak-table.h:46:18: error: conflicting types for 'scm_c_make_weak_table' > SCM_INTERNAL SCM scm_c_make_weak_table (unsigned long k, > ^ > In file included from ../libguile.h:65:0, > from ../libguile/programs.h:22, > from ../libguile/_scm.h:85, > from weak-table.c:30: > ../libguile/hashtab.h:179:18: note: previous declaration of 'scm_c_make_weak_table' was here > SCM_INTERNAL SCM scm_c_make_weak_table (unsigned long k, > ^ > weak-table.c: In function 'make_weak_table': > weak-table.c:798:20: error: 'scm_tc7_weak_table' undeclared (first use in this function) > return scm_cell (scm_tc7_weak_table, (scm_t_bits)table); > ^ > weak-table.c:798:20: note: each undeclared identifier is reported only once for each function it appears in > weak-table.c: At top level: > weak-table.c:848:1: error: conflicting types for 'scm_c_make_weak_table' > scm_c_make_weak_table (unsigned long k, scm_t_weak_table_kind kind) > ^ > In file included from ../libguile.h:65:0, > from ../libguile/programs.h:22, > from ../libguile/_scm.h:85, > from weak-table.c:30: > ../libguile/hashtab.h:179:18: note: previous declaration of 'scm_c_make_weak_table' was here > SCM_INTERNAL SCM scm_c_make_weak_table (unsigned long k, > ^ > In file included from ../libguile/_scm.h:81:0, > from weak-table.c:30: > weak-table.c: In function 'scm_weak_table_p': > weak-table.c:216:47: error: 'scm_tc7_weak_table' undeclared (first use in this function) > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../libguile/boolean.h:88:28: note: in definition of macro 'scm_from_bool' > #define scm_from_bool(x) ((x) ? SCM_BOOL_T : SCM_BOOL_F) > ^ > ../libguile/tags.h:396:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' > #define SCM_HAS_TYP7(x, tag) (SCM_HAS_HEAP_TYPE (x, SCM_TYP7, tag)) > ^ > weak-table.c:216:30: note: in expansion of macro 'SCM_HAS_TYP7' > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > weak-table.c:864:25: note: in expansion of macro 'SCM_WEAK_TABLE_P' > return scm_from_bool (SCM_WEAK_TABLE_P (obj)); > ^ > In file included from ../libguile/_scm.h:40:0, > from weak-table.c:30: > weak-table.c: In function 'scm_c_weak_table_ref': > weak-table.c:216:47: error: 'scm_tc7_weak_table' undeclared (first use in this function) > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../config.h:2584:34: note: in definition of macro '__builtin_expect' > # define __builtin_expect(e, c) (e) > ^ > ../libguile/error.h:42:12: note: in expansion of macro 'SCM_UNLIKELY' > do { if (SCM_UNLIKELY (!(_cond))) \ > ^ > ../libguile/validate.h:124:5: note: in expansion of macro 'SCM_ASSERT_TYPE' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/tags.h:396:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' > #define SCM_HAS_TYP7(x, tag) (SCM_HAS_HEAP_TYPE (x, SCM_TYP7, tag)) > ^ > weak-table.c:216:30: note: in expansion of macro 'SCM_HAS_TYP7' > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../libguile/validate.h:124:22: note: in expansion of macro 'SCM_WEAK_TABLE_P' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/validate.h:128:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' > SCM_I_MAKE_VALIDATE_MSG2 (pos, var, SCM_ ## pred, msg) > ^ > weak-table.c:218:3: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' > SCM_MAKE_VALIDATE_MSG (pos, arg, WEAK_TABLE_P, "weak-table") > ^ > weak-table.c:876:3: note: in expansion of macro 'SCM_VALIDATE_WEAK_TABLE' > SCM_VALIDATE_WEAK_TABLE (1, table); > ^ > weak-table.c: In function 'scm_c_weak_table_put_x': > weak-table.c:216:47: error: 'scm_tc7_weak_table' undeclared (first use in this function) > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../config.h:2584:34: note: in definition of macro '__builtin_expect' > # define __builtin_expect(e, c) (e) > ^ > ../libguile/error.h:42:12: note: in expansion of macro 'SCM_UNLIKELY' > do { if (SCM_UNLIKELY (!(_cond))) \ > ^ > ../libguile/validate.h:124:5: note: in expansion of macro 'SCM_ASSERT_TYPE' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/tags.h:396:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' > #define SCM_HAS_TYP7(x, tag) (SCM_HAS_HEAP_TYPE (x, SCM_TYP7, tag)) > ^ > weak-table.c:216:30: note: in expansion of macro 'SCM_HAS_TYP7' > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../libguile/validate.h:124:22: note: in expansion of macro 'SCM_WEAK_TABLE_P' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/validate.h:128:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' > SCM_I_MAKE_VALIDATE_MSG2 (pos, var, SCM_ ## pred, msg) > ^ > weak-table.c:218:3: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' > SCM_MAKE_VALIDATE_MSG (pos, arg, WEAK_TABLE_P, "weak-table") > ^ > weak-table.c:898:3: note: in expansion of macro 'SCM_VALIDATE_WEAK_TABLE' > SCM_VALIDATE_WEAK_TABLE (1, table); > ^ > weak-table.c: In function 'scm_c_weak_table_remove_x': > weak-table.c:216:47: error: 'scm_tc7_weak_table' undeclared (first use in this function) > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../config.h:2584:34: note: in definition of macro '__builtin_expect' > # define __builtin_expect(e, c) (e) > ^ > ../libguile/error.h:42:12: note: in expansion of macro 'SCM_UNLIKELY' > do { if (SCM_UNLIKELY (!(_cond))) \ > ^ > ../libguile/validate.h:124:5: note: in expansion of macro 'SCM_ASSERT_TYPE' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/tags.h:396:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' > #define SCM_HAS_TYP7(x, tag) (SCM_HAS_HEAP_TYPE (x, SCM_TYP7, tag)) > ^ > weak-table.c:216:30: note: in expansion of macro 'SCM_HAS_TYP7' > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../libguile/validate.h:124:22: note: in expansion of macro 'SCM_WEAK_TABLE_P' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/validate.h:128:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' > SCM_I_MAKE_VALIDATE_MSG2 (pos, var, SCM_ ## pred, msg) > ^ > weak-table.c:218:3: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' > SCM_MAKE_VALIDATE_MSG (pos, arg, WEAK_TABLE_P, "weak-table") > ^ > weak-table.c:918:3: note: in expansion of macro 'SCM_VALIDATE_WEAK_TABLE' > SCM_VALIDATE_WEAK_TABLE (1, table); > ^ > weak-table.c: In function 'scm_weak_table_clear_x': > weak-table.c:216:47: error: 'scm_tc7_weak_table' undeclared (first use in this function) > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../config.h:2584:34: note: in definition of macro '__builtin_expect' > # define __builtin_expect(e, c) (e) > ^ > ../libguile/error.h:42:12: note: in expansion of macro 'SCM_UNLIKELY' > do { if (SCM_UNLIKELY (!(_cond))) \ > ^ > ../libguile/validate.h:124:5: note: in expansion of macro 'SCM_ASSERT_TYPE' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/tags.h:396:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' > #define SCM_HAS_TYP7(x, tag) (SCM_HAS_HEAP_TYPE (x, SCM_TYP7, tag)) > ^ > weak-table.c:216:30: note: in expansion of macro 'SCM_HAS_TYP7' > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../libguile/validate.h:124:22: note: in expansion of macro 'SCM_WEAK_TABLE_P' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/validate.h:128:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' > SCM_I_MAKE_VALIDATE_MSG2 (pos, var, SCM_ ## pred, msg) > ^ > weak-table.c:218:3: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' > SCM_MAKE_VALIDATE_MSG (pos, arg, WEAK_TABLE_P, "weak-table") > ^ > weak-table.c:965:3: note: in expansion of macro 'SCM_VALIDATE_WEAK_TABLE' > SCM_VALIDATE_WEAK_TABLE (1, table); > ^ > weak-table.c: In function 'scm_weak_table_fold': > weak-table.c:216:47: error: 'scm_tc7_weak_table' undeclared (first use in this function) > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../config.h:2584:34: note: in definition of macro '__builtin_expect' > # define __builtin_expect(e, c) (e) > ^ > ../libguile/error.h:42:12: note: in expansion of macro 'SCM_UNLIKELY' > do { if (SCM_UNLIKELY (!(_cond))) \ > ^ > ../libguile/validate.h:124:5: note: in expansion of macro 'SCM_ASSERT_TYPE' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/tags.h:396:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' > #define SCM_HAS_TYP7(x, tag) (SCM_HAS_HEAP_TYPE (x, SCM_TYP7, tag)) > ^ > weak-table.c:216:30: note: in expansion of macro 'SCM_HAS_TYP7' > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../libguile/validate.h:124:22: note: in expansion of macro 'SCM_WEAK_TABLE_P' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/validate.h:128:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' > SCM_I_MAKE_VALIDATE_MSG2 (pos, var, SCM_ ## pred, msg) > ^ > weak-table.c:218:3: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' > SCM_MAKE_VALIDATE_MSG (pos, arg, WEAK_TABLE_P, "weak-table") > ^ > weak-table.c:1028:3: note: in expansion of macro 'SCM_VALIDATE_WEAK_TABLE' > SCM_VALIDATE_WEAK_TABLE (3, table); > ^ > SNARF variable.doc > weak-table.c: In function 'scm_weak_table_for_each': > weak-table.c:216:47: error: 'scm_tc7_weak_table' undeclared (first use in this function) > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../config.h:2584:34: note: in definition of macro '__builtin_expect' > # define __builtin_expect(e, c) (e) > ^ > ../libguile/error.h:42:12: note: in expansion of macro 'SCM_UNLIKELY' > do { if (SCM_UNLIKELY (!(_cond))) \ > ^ > ../libguile/validate.h:124:5: note: in expansion of macro 'SCM_ASSERT_TYPE' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/tags.h:396:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' > #define SCM_HAS_TYP7(x, tag) (SCM_HAS_HEAP_TYPE (x, SCM_TYP7, tag)) > ^ > weak-table.c:216:30: note: in expansion of macro 'SCM_HAS_TYP7' > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../libguile/validate.h:124:22: note: in expansion of macro 'SCM_WEAK_TABLE_P' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/validate.h:128:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' > SCM_I_MAKE_VALIDATE_MSG2 (pos, var, SCM_ ## pred, msg) > ^ > weak-table.c:218:3: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' > SCM_MAKE_VALIDATE_MSG (pos, arg, WEAK_TABLE_P, "weak-table") > ^ > weak-table.c:1046:3: note: in expansion of macro 'SCM_VALIDATE_WEAK_TABLE' > SCM_VALIDATE_WEAK_TABLE (2, table); > ^ > weak-table.c: In function 'scm_weak_table_map_to_list': > weak-table.c:216:47: error: 'scm_tc7_weak_table' undeclared (first use in this function) > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../config.h:2584:34: note: in definition of macro '__builtin_expect' > # define __builtin_expect(e, c) (e) > ^ > ../libguile/error.h:42:12: note: in expansion of macro 'SCM_UNLIKELY' > do { if (SCM_UNLIKELY (!(_cond))) \ > ^ > ../libguile/validate.h:124:5: note: in expansion of macro 'SCM_ASSERT_TYPE' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/tags.h:396:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' > #define SCM_HAS_TYP7(x, tag) (SCM_HAS_HEAP_TYPE (x, SCM_TYP7, tag)) > ^ > weak-table.c:216:30: note: in expansion of macro 'SCM_HAS_TYP7' > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../libguile/validate.h:124:22: note: in expansion of macro 'SCM_WEAK_TABLE_P' > SCM_ASSERT_TYPE (pred (var), var, pos, FUNC_NAME, msg); \ > ^ > ../libguile/validate.h:128:3: note: in expansion of macro 'SCM_I_MAKE_VALIDATE_MSG2' > SCM_I_MAKE_VALIDATE_MSG2 (pos, var, SCM_ ## pred, msg) > ^ > weak-table.c:218:3: note: in expansion of macro 'SCM_MAKE_VALIDATE_MSG' > SCM_MAKE_VALIDATE_MSG (pos, arg, WEAK_TABLE_P, "weak-table") > ^ > weak-table.c:1063:3: note: in expansion of macro 'SCM_VALIDATE_WEAK_TABLE' > SCM_VALIDATE_WEAK_TABLE (2, table); > ^ > In file included from ../libguile/_scm.h:81:0, > from weak-table.c:30: > weak-table.c: In function 'scm_weak_key_hash_table_p': > weak-table.c:216:47: error: 'scm_tc7_weak_table' undeclared (first use in this function) > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../libguile/boolean.h:88:28: note: in definition of macro 'scm_from_bool' > #define scm_from_bool(x) ((x) ? SCM_BOOL_T : SCM_BOOL_F) > ^ > ../libguile/tags.h:396:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' > #define SCM_HAS_TYP7(x, tag) (SCM_HAS_HEAP_TYPE (x, SCM_TYP7, tag)) > ^ > weak-table.c:216:30: note: in expansion of macro 'SCM_HAS_TYP7' > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > weak-table.c:1124:25: note: in expansion of macro 'SCM_WEAK_TABLE_P' > return scm_from_bool (SCM_WEAK_TABLE_P (obj) && > ^ > weak-table.c: In function 'scm_weak_value_hash_table_p': > weak-table.c:216:47: error: 'scm_tc7_weak_table' undeclared (first use in this function) > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../libguile/boolean.h:88:28: note: in definition of macro 'scm_from_bool' > #define scm_from_bool(x) ((x) ? SCM_BOOL_T : SCM_BOOL_F) > ^ > ../libguile/tags.h:396:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' > #define SCM_HAS_TYP7(x, tag) (SCM_HAS_HEAP_TYPE (x, SCM_TYP7, tag)) > ^ > weak-table.c:216:30: note: in expansion of macro 'SCM_HAS_TYP7' > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > weak-table.c:1135:25: note: in expansion of macro 'SCM_WEAK_TABLE_P' > return scm_from_bool (SCM_WEAK_TABLE_P (obj) && > ^ > weak-table.c: In function 'scm_doubly_weak_hash_table_p': > weak-table.c:216:47: error: 'scm_tc7_weak_table' undeclared (first use in this function) > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > ../libguile/boolean.h:88:28: note: in definition of macro 'scm_from_bool' > #define scm_from_bool(x) ((x) ? SCM_BOOL_T : SCM_BOOL_F) > ^ > ../libguile/tags.h:396:34: note: in expansion of macro 'SCM_HAS_HEAP_TYPE' > #define SCM_HAS_TYP7(x, tag) (SCM_HAS_HEAP_TYPE (x, SCM_TYP7, tag)) > ^ > weak-table.c:216:30: note: in expansion of macro 'SCM_HAS_TYP7' > #define SCM_WEAK_TABLE_P(x) (SCM_HAS_TYP7 (x, scm_tc7_weak_table)) > ^ > weak-table.c:1146:25: note: in expansion of macro 'SCM_WEAK_TABLE_P' > return scm_from_bool (SCM_WEAK_TABLE_P (obj) && > ^ > SNARF vectors.doc > weak-table.c: In function 'make_weak_table': > weak-table.c:799:1: warning: control reaches end of non-void function [-Wreturn-type] > } > ^ > weak-table.c: In function 'scm_weak_table_p': > weak-table.c:865:1: warning: control reaches end of non-void function [-Wreturn-type] > } > ^ > SNARF version.doc > SNARF vports.doc > SNARF weak-set.doc > SNARF weak-table.doc > weak-table.c: In function 'scm_weak_key_hash_table_p': > weak-table.c:1126:1: warning: control reaches end of non-void function [-Wreturn-type] > } > ^ > weak-table.c: In function 'scm_weak_value_hash_table_p': > weak-table.c:1137:1: warning: control reaches end of non-void function [-Wreturn-type] > } > ^ > weak-table.c: In function 'scm_doubly_weak_hash_table_p': > weak-table.c:1148:1: warning: control reaches end of non-void function [-Wreturn-type] > } > ^ > SNARF weak-vector.doc > SNARF posix.doc > SNARF net_db.doc > SNARF socket.doc > SNARF regex-posix.doc > make[3]: *** [Makefile:3368: libguile_2.2_la-weak-table.lo] Error 1 > make[3]: *** Waiting for unfinished jobs.... > make[3]: Leaving directory '/tmp/guix-build-guile-awesome-2.2.2.drv-0/guile-2.2.2/libguile' > make[2]: *** [Makefile:2299: all] Error 2 > make[2]: Leaving directory '/tmp/guix-build-guile-awesome-2.2.2.drv-0/guile-2.2.2/libguile' > make[1]: *** [Makefile:1857: all-recursive] Error 1 > make[1]: Leaving directory '/tmp/guix-build-guile-awesome-2.2.2.drv-0/guile-2.2.2' > make: *** [Makefile:1743: all] Error 2 > phase `build' failed after 7.7 seconds > builder for `/gnu/store/hgkdv4gx0rvhi8aawkh9ykyr50vi3lv0-guile-awesome-2.2.2.drv' failed with exit code 1 > @ build-failed /gnu/store/hgkdv4gx0rvhi8aawkh9ykyr50vi3lv0-guile-awesome-2.2.2.drv - 1 builder for `/gnu/store/hgkdv4gx0rvhi8aawkh9ykyr50vi3lv0-guile-awesome-2.2.2.drv' failed with exit code 1 > guix build: error: build failed: build of > `/gnu/store/hgkdv4gx0rvhi8aawkh9ykyr50vi3lv0-guile-awesome-2.2.2.drv' failed > --8<---------------cut here---------------end--------------->8--- > > Am I doing something wrong? -- Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net