Re: Guile support in GNU make

Kirill Smelkov <[email protected]>
Newsgroups gmane.comp.gnu.make.devel,gmane.lisp.guile.user
Organization St.Petersburg State University
Message-ID <[email protected]>
Paul,

On Sun, Jan 29, 2012 at 03:05:54PM -0500, Paul Smith wrote:
> On Mon, 2012-01-23 at 07:08 +0100, Thien-Thi Nguyen wrote:
> > Best is ‘string-every’ w/ ‘char-set:printing’ directly.
> 
> I implemented this change.  Seemed to work in both Guile 1.8 and 2.0.3.

Thanks for fixing this.


> However, please see my recent email to the guile-user list: I'm getting
> error output from GNU make compiled with Guile 2.0.3 every time I use
> (define ...), even completely unrelated to this.  The same code works
> fine in Guile 1.8.
> 
> Did anyone else see these with GNU make / Guile 2.0.3?  Maybe I just
> built or installed my version of 2.0.3 incorrectly somehow (I'm using
> the 1.8 that was provided with my GNU/Linux distribution).

My Guile is

	kirr@mini:~$ guile --version
	guile (GNU Guile) 2.0.3-deb+1-2

from Debian testing, and I don't see the problem for test from the
make.info example - it works ok:

	define GUILEIO
	;; A simple Guile IO library for GNU make
	
	(define MKPORT #f)
	
	(define (mkopen name mode)
	  (set! MKPORT (open-file name mode))
	  #f)
	
	(define (mkwrite s)
	  (display s MKPORT)
	  (newline MKPORT)
	  #f)
	
	(define (mkclose)
	  (close-port MKPORT)
	  #f)
	
	#f
	endef
	
	# Internalize the Guile IO functions
	$(guile $(GUILEIO))
	
	# now test the thing
	$(guile (mkopen "tmp.out" "w"))
	$(guile (mkwrite "Hello"))
	$(guile (mkclose))
	
	$(stop 1)


Is it that (define ...) or maybe I've misunderstood something?


Thanks again,
Kirill

_______________________________________________
Make-alpha mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/make-alpha
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.