unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Errors using Guile 2.0 vs. Guile 1.8
@ 2012-01-29 15:54 Paul Smith
  2012-01-29 21:18 ` Thien-Thi Nguyen
  2012-01-29 22:26 ` Mark H Weaver
  0 siblings, 2 replies; 9+ messages in thread
From: Paul Smith @ 2012-01-29 15:54 UTC (permalink / raw)
  To: guile-user

Hi all.

To test my GNU make Guile integration I was using guile 1.8 which is
what my distribution provided.  To test the newer Guile 2.x I downloaded
the Guile 2.0.3 release and built it and installed in an alternate
location (/opt/guile).  I compiled GNU make using that version, and all
the tests ultimately work BUT whenever I use (define ...) from within
GNU make I get these errors:

        $ cat g1.mk
        define show
        (define (show s)
          (display s)
          (newline))
        endef
        $(info define display)
        $(guile $(show))
        $(info after define)
        $(guile (show "HI"))
        all:;
        
        $ make -f g1.mk
        define display
        Backtrace:
        In ice-9/boot-9.scm:
         162: 5 [catch #t #<catch-closure 1cb55c0> ...]
         170: 4 [#<procedure 1cb8cd0 ()>]
        In unknown file:
           ?: 3 [catch-closure]
        In ice-9/eval.scm:
         389: 2 [eval # #]
         374: 1 [eval # #]
        In unknown file:
           ?: 0 [scm-error misc-error #f ...]
        
        ERROR: In procedure scm-error:
        ERROR: Unknown object: #<variable 1cd0180 value: #<procedure 1cb95a0 at ice-9/eval.scm:378:13 (a)>>
        after define
        HI
        make: `all' is up to date.

I don't know what this means, or how to proceed with debugging.  The
same code works fine with Guile 1.8.

Did I make a mistake with my build or install of Guile 2.0.3?

Thoughts?

-- 
-------------------------------------------------------------------------------
 Paul D. Smith <psmith@gnu.org>          Find some GNU make tips at:
 http://www.gnu.org                      http://make.mad-scientist.net
 "Please remain calm...I may be mad, but I am a professional." --Mad Scientist




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-01-30 11:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-29 15:54 Errors using Guile 2.0 vs. Guile 1.8 Paul Smith
2012-01-29 21:18 ` Thien-Thi Nguyen
2012-01-29 21:51   ` Paul Smith
2012-01-29 22:26 ` Mark H Weaver
2012-01-29 22:57   ` Mark H Weaver
2012-01-30  0:17     ` Paul Smith
2012-01-30  1:16       ` Mark H Weaver
2012-01-30  1:42         ` Paul Smith
2012-01-30 11:06     ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).