From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mark H Weaver Newsgroups: gmane.lisp.guile.bugs Subject: bug#19233: Errors building guile on Armv7 Date: Sun, 07 Dec 2014 00:24:42 -0500 Message-ID: <87ppbw3ucl.fsf@yeeloong.lan> References: <20141130112836.GA32628@jocasta.intra> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1417930045 9717 80.91.229.3 (7 Dec 2014 05:27:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 7 Dec 2014 05:27:25 +0000 (UTC) Cc: 19233@debbugs.gnu.org To: John Darrington Original-X-From: bug-guile-bounces+guile-bugs=m.gmane.org@gnu.org Sun Dec 07 06:27:19 2014 Return-path: Envelope-to: guile-bugs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XxUNK-00075z-A2 for guile-bugs@m.gmane.org; Sun, 07 Dec 2014 06:27:18 +0100 Original-Received: from localhost ([::1]:56458 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxUNJ-0006ot-SX for guile-bugs@m.gmane.org; Sun, 07 Dec 2014 00:27:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxUNA-0006of-7c for bug-guile@gnu.org; Sun, 07 Dec 2014 00:27:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XxUN4-0002iT-Oe for bug-guile@gnu.org; Sun, 07 Dec 2014 00:27:08 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:58609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XxUN4-0002iP-Kz for bug-guile@gnu.org; Sun, 07 Dec 2014 00:27:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XxUN4-0007tg-4n for bug-guile@gnu.org; Sun, 07 Dec 2014 00:27:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Mark H Weaver Original-Sender: "Debbugs-submit" Resent-CC: bug-guile@gnu.org Resent-Date: Sun, 07 Dec 2014 05:27:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 19233 X-GNU-PR-Package: guile X-GNU-PR-Keywords: Original-Received: via spool by 19233-submit@debbugs.gnu.org id=B19233.141792999630319 (code B ref 19233); Sun, 07 Dec 2014 05:27:02 +0000 Original-Received: (at 19233) by debbugs.gnu.org; 7 Dec 2014 05:26:36 +0000 Original-Received: from localhost ([127.0.0.1]:55822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XxUMe-0007sw-4Y for submit@debbugs.gnu.org; Sun, 07 Dec 2014 00:26:36 -0500 Original-Received: from world.peace.net ([50.252.239.5]:59845) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XxUMb-0007sl-2M for 19233@debbugs.gnu.org; Sun, 07 Dec 2014 00:26:34 -0500 Original-Received: from c-24-62-95-23.hsd1.ma.comcast.net ([24.62.95.23] helo=yeeloong.lan) by world.peace.net with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1XxUMT-0007vt-4Z; Sun, 07 Dec 2014 00:26:25 -0500 In-Reply-To: <20141130112836.GA32628@jocasta.intra> (John Darrington's message of "Sun, 30 Nov 2014 12:28:37 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+guile-bugs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.bugs:7666 Archived-At: John Darrington writes: > I downloaded the snapshot from http://hydra.nixos.org/build/17611516 > > and ran into the following problems: > > My system does not have a libc with threading, so I configured guile and > dependencies with --without-threads (or --disable-threads as appropriate). > > > I get the following error: > > > Throw without catch before boot: > > Error while printing exception: [...] > gdb suggests that the problem is that iconv fails and sets the error > message: "Cannot find thread-local variables on this target" That error comes from GDB while trying to access 'errno', which is a thread-local variable. We still don't know the value of 'errno'. As a temporary hack, you could replace the call to 'scm_encoding_error' at strings.c:2106 with a call to 'printf' that prints out the value of 'errno'. I guess that both iconv and gdb are somewhat broken on your system. Thanks, Mark > #66 0x2ab9e51c in scm_encoding_error (subr=0x2abf6398 <__func__.18606> "scm_to_stringn", err=22, message=0x2abf6108 "cannot convert narrow string to output locale", port=0x4, chr=0x4) at strings.c:1486 > #67 0x2ab9f2e8 in scm_to_stringn (str=0x103870, lenp=0x0, encoding=0x2b0975ec "ANSI_X3.4-1968", handler=SCM_FAILED_CONVERSION_QUESTION_MARK) at strings.c:2106 > #68 0x2ab9ecd0 in scm_to_locale_stringn (str=0x103870, lenp=0x0) at strings.c:1820 > #69 0x2ab9eca4 in scm_to_locale_string (str=0x103870) at strings.c:1814 > #70 0x2ab4d444 in search_path (path=0xfe0e8, filename=0x103870, extensions=0x304, require_exts=0x4, stat_buf=0x7efffa28) at load.c:571 > #71 0x2ab4e126 in scm_init_eval_in_scheme () at load.c:1094 > #72 0x2ab441ce in scm_i_init_guile (base=0x7efffafc) at init.c:507 > #73 0x2aba57a0 in scm_i_init_thread_for_guile (base=0x7efffafc, parent=0x0) at threads.c:833 > #74 0x2aba588a in with_guile_and_parent (base=0x7efffafc, base@entry=, data=0x7efffb24, data@entry=) at threads.c:899 > #75 0x2ac3c552 in GC_call_with_stack_base (fn=, arg=) at misc.c:1840 > #76 0x2aba5964 in scm_i_with_guile_and_parent (func=0x2ab43f31 , data=0x7efffb5c, parent=0x0) at threads.c:949 > #77 0x2aba598e in scm_with_guile (func=0x2ab43f31 , data=0x7efffb5c) at threads.c:955 > #78 0x2ab43f16 in scm_boot_guile (argc=1, argv=0x7efffcd4, main_func=0x89fd , closure=0x0) at init.c:323 > #79 0x00008af8 in main (argc=1, argv=0x7efffcd4) at guile.c:108 > (gdb) frame 67 > #67 0x2ab9f2e8 in scm_to_stringn (str=0x103870, lenp=0x0, encoding=0x2b0975ec "ANSI_X3.4-1968", handler=SCM_FAILED_CONVERSION_QUESTION_MARK) at strings.c:2106 > 2106 scm_encoding_error (__func__, errno, > (gdb) print errno > Cannot find thread-local variables on this target