From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: =?UTF-8?B?VG9tbWkgSMO2eW7DpGzDpG5tYWE=?= Newsgroups: gmane.lisp.guile.user Subject: A problem with compilation to CPS Date: Tue, 20 Sep 2016 16:19:24 +0300 Message-ID: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1474377891 21585 195.159.176.226 (20 Sep 2016 13:24:51 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 20 Sep 2016 13:24:51 +0000 (UTC) To: guile-user@gnu.org Original-X-From: guile-user-bounces+guile-user=m.gmane.org@gnu.org Tue Sep 20 15:24:47 2016 Return-path: Envelope-to: guile-user@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 1bmL2M-0004C1-4j for guile-user@m.gmane.org; Tue, 20 Sep 2016 15:24:38 +0200 Original-Received: from localhost ([::1]:35252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmL2K-000750-Bj for guile-user@m.gmane.org; Tue, 20 Sep 2016 09:24:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58054) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmKxK-00045G-Un for guile-user@gnu.org; Tue, 20 Sep 2016 09:19:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmKxJ-00033F-TO for guile-user@gnu.org; Tue, 20 Sep 2016 09:19:26 -0400 Original-Received: from mail-it0-x234.google.com ([2607:f8b0:4001:c0b::234]:35886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmKxJ-00032t-Nc for guile-user@gnu.org; Tue, 20 Sep 2016 09:19:25 -0400 Original-Received: by mail-it0-x234.google.com with SMTP id o3so97309520ita.1 for ; Tue, 20 Sep 2016 06:19:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=lCFM1i06/bFHRdEuLT9iqR5upm8ncbbXD6kzLUUAEz8=; b=uMu9dl0pwEOJP+WAJHK/DvZkQJhH+QU8M+TdMPg+1ig5HuJCxVWtmKAgoLUcw6xtyX m3+QYnyb+FyVDuGQx2VbxjFM67SiVnMoT6SIOPZk237s7Tp+uMgUpNT65pJSOk+Hh7NW gf0JqzINLrs2EqF8Z63T7ch5oRn6Qw96bzhCLCDXw3aqg+a10haQSztAJKiVmfzHm1Ok 0650tq/RzADZDNIU3s0xWmiujL0fo5Yvfx58VCAUMegpZm1OsepyckBg40iR8k0lRyOd iyTUcObx6F2l/8We1KxvBwEMkoFyl68AKMoC7eRGxwO1PEvSMbemPEupJtIWihfRU3tO dBDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=lCFM1i06/bFHRdEuLT9iqR5upm8ncbbXD6kzLUUAEz8=; b=HKBB0XHpy/AblhHIHFLuQNnH/oeVoXf67hk/HBQvNWcwySQN4iov0yj8tJZVdH6lZi qBc/Y8rjrsprpqYWc5Y8Fd1g6VppWZvxg0ZeBIpBzk8fZxXr1f3jbTDvcDjlOqzAO8Vu JpEvJiAiwzGNVgUcYOQ2B2L4o4Ysz5plw/taIdZQ35hTTJFaDQLZGZVHdJjjInnS7pdh PzCiYYF5WrnBjBKOeshlmAiXKEFi8Y108JprF/Zg7r6msQEMyRZvFuMTlabvtUbiQUsp j0D7mYQCByuEz/lLuy7shCdaVRdEBDhCkxGADEZL0lQd8eha5qjzdYZJZBad8TeS7oYi P7ag== X-Gm-Message-State: AE9vXwOG8cIPK5GfGQM74bdYq5o9+wZyeRKI1KQr7GGOi5gELFNxYopH3jc2JqI3BV/bFsqQkcwGGboXQNHQMA== X-Received: by 10.36.142.131 with SMTP id h125mr4151542ite.105.1474377565211; Tue, 20 Sep 2016 06:19:25 -0700 (PDT) Original-Received: by 10.107.47.214 with HTTP; Tue, 20 Sep 2016 06:19:24 -0700 (PDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4001:c0b::234 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: guile-user@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: General Guile related discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guile-user-bounces+guile-user=m.gmane.org@gnu.org Original-Sender: "guile-user" Xref: news.gmane.org gmane.lisp.guile.user:12921 Archived-At: I get the following error message when I try to compile a program to CPS: ---cut here--- tohoyn@tohoyn-laptop:~/src/guile-2.1.4/work$ ../guile-2.1.4/meta/uninstalled-env dash $ ../guile-2.1.4/meta/guild compile -t cps hello.scm Backtrace: 13 (apply-smob/1 #) In ice-9/boot-9.scm: 704:2 12 (call-with-prompt _ _ #) In ice-9/eval.scm: 608:8 11 (_ #(#(#))) In /home/tohoyn/src/guile-2.1.4/guile-2.1.4/meta/guild: 72:17 10 (main _) In srfi/srfi-1.scm: 640:9 9 (for-each1 ("hello.scm")) In scripts/compile.scm: 251:26 8 (_ _) In system/base/target.scm: 57:6 7 (with-target _ _) In system/base/compile.scm: 152:6 6 (compile-file _ #:output-file _ #:from _ #:to _ #:env _ =E2=80= =A6) 43:4 5 (call-once _) In ice-9/boot-9.scm: 829:4 4 (with-throw-handler _ _ _) In system/base/compile.scm: 59:11 3 (_) In language/cps/spec.scm: 28:9 2 (write-cps # _) In unknown file: 1 (scm-error misc-error #f "~A ~S" ("unexpected cps" #) #f) In ice-9/boot-9.scm: 753:26 0 (dispatch-exception _ _ _) ice-9/boot-9.scm:753:26: In procedure dispatch-exception: ice-9/boot-9.scm:753:26: unexpected cps # $ ---cut here--- The contents of the program file to be compiled are: ---cut here--- (define (main args) (display "Hello") (newline)) ---cut here--- Can you help me with this? - Tommi H=C3=B6yn=C3=A4l=C3=A4nmaa