From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tristan Colgate Newsgroups: gmane.lisp.guile.devel Subject: starting repl from C broken Date: Thu, 13 Oct 2011 12:27:59 +0100 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1318505310 23147 80.91.229.12 (13 Oct 2011 11:28:30 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 13 Oct 2011 11:28:30 +0000 (UTC) To: guile-devel@gnu.org Original-X-From: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Thu Oct 13 13:28:26 2011 Return-path: Envelope-to: guile-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1REJSW-0001DC-K7 for guile-devel@m.gmane.org; Thu, 13 Oct 2011 13:28:20 +0200 Original-Received: from localhost ([::1]:54738 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REJSW-0001lQ-6a for guile-devel@m.gmane.org; Thu, 13 Oct 2011 07:28:20 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:50025) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REJSI-0001ig-SN for guile-devel@gnu.org; Thu, 13 Oct 2011 07:28:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1REJSD-0001ty-5Q for guile-devel@gnu.org; Thu, 13 Oct 2011 07:28:06 -0400 Original-Received: from mail-vx0-f169.google.com ([209.85.220.169]:58784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1REJSC-0001tl-SB for guile-devel@gnu.org; Thu, 13 Oct 2011 07:28:00 -0400 Original-Received: by vcbfk1 with SMTP id fk1so886009vcb.0 for ; Thu, 13 Oct 2011 04:28:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ltwARoQ+24BWiBWJH63SxvWYXFKmclvfO5a1oqz2nZE=; b=pzAlIZi8aSAun06BkUyMb4k0abUTF+xqZn6/b0pipJCiFyd+Mdd9U5W4MnNI0ZFDZY mgLrYnXNF9BWyUF9yvDQMnGbhfGwn3az0HBelf7P+3GEgSOgp5LgmFMgJBDf3zGDHEKy gQ4LK8ECK4vG0gwS36SQI9UeOa7fMshm33KqY= Original-Received: by 10.52.36.41 with SMTP id n9mr3353215vdj.41.1318505280016; Thu, 13 Oct 2011 04:28:00 -0700 (PDT) Original-Received: by 10.52.106.202 with HTTP; Thu, 13 Oct 2011 04:27:59 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.220.169 X-BeenThere: guile-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Developers list for Guile, the GNU extensibility library" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Original-Sender: guile-devel-bounces+guile-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.lisp.guile.devel:12838 Archived-At: Hi, The folliowing fails for me on current master: #include static void inner_main (void *closure, int argc, char **argv) { scm_c_use_module("system repl repl"); scm_c_eval_string("(start-repl)"); } int main (int argc, char **argv) { scm_boot_guile (argc, argv, inner_main, 0); return 0; /* never reached */ } I get: Backtrace: In ice-9/boot-9.scm: 162: 14 [catch #t # ...] 170: 13 [#] In unknown file: ?: 12 [catch-closure] ?: 11 [call-with-input-string "(start-repl)" ...] In ice-9/boot-9.scm: 2082: 10 [save-module-excursion #] In ice-9/eval-string.scm: 44: 9 [read-and-eval # #:lang ...] 37: 8 [lp (start-repl)] In system/repl/repl.scm: 135: 7 [start-repl # # #f] In system/repl/common.scm: 135: 6 [make-repl # #f] In system/base/language.scm: 58: 5 [lookup-language #] In ice-9/boot-9.scm: 2476: 4 [# # ...] 2733: 3 [try-module-autoload (language # spec) #f] 550: 2 [map # (languag= e #)] 2734: 1 [# #] In unknown file: ?: 0 [symbol->string #] ERROR: In procedure symbol->string: ERROR: In procedure symbol->string: Wrong type argument in position 1 (expecting symbol): #< name: scheme title: Scheme reader: # printer: # parser: #f compilers: ((tree-il . #)) decompilers: ((tree-il . #)) evaluator: # joiner: #f make-default-environment: #> Some code along these lines has been working OK on 2.0+ for a while, not quite sure when it broke. --=20 Tristan Colgate-McFarlane ---- =A0 "You can get all your daily vitamins from 52 pints of guiness, and a glass of milk"