help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Advice about guile-spec package definition


From: Efraim Flashner
Subject: Re: Advice about guile-spec package definition
Date: Thu, 1 Apr 2021 10:22:25 +0300

On Wed, Mar 31, 2021 at 11:13:55PM +0200, Jérémy Korwin-Zmijowski wrote:
> Dear Guixters,
> 
> Hope you are doing well !
> 
> I am working on the package definition for 
> https://framagit.org/Jeko/guile-spec (file: guix.scm). It is a set of
> macro based on SRFI-64.
> 
> The definition's inputs field is filled with guile-3.0 (or the guix
> build reports an error with a stack trace I can't understand haha).
> 
> For Guix users willing to try guile-spec before installing it, I know
> guix environment can help.
> 
> But…
> 
> When I use guild (with highest warning level) to compile t.scm[1] in an
> environment based on this definition, it raises unknown warnings :
> 
> $ guix environment -l guix.scm -- guild compile -W3 /tmp/t.scm
> warning: unknown warning type `#{3}#'
> wrote `/home/jeko/.cache/guile/ccache/3.0-LE-8-4.2/tmp/t.scm.go'
> 
> When I call it outside of the environment, the warning is fine :
> 
> $ guild compile -W3 /tmp/t.scm
> /tmp/t.scm:3:0: warning: unused variable `name'
> wrote `/home/jeko/.cache/guile/ccache/3.0-LE-8-4.4/tmp/t.scm.go'
> 
> When I remove Guile from the definition's inputs fiels, the warning is
> fine :
> 
> $ guix environment -l guix.scm -- guild compile -W3 /tmp/t.scm
> /tmp/t.scm:3:0: warning: unused variable `name'
> wrote `/home/jeko/.cache/guile/ccache/3.0-LE-8-4.4/tmp/t.scm.go'
> 
> 
> [1] t.scm doesn't use guile-spec macro to narrow the context
> $ cat /tmp/t.scm 
> (use-modules (srfi srfi-64))
> (test-begin "group")
> (test-assert "test" #t)
> (test-end)
> 
> 
> How can I make it to work ? Maybe I misuse something here… Let me know
> !
> 

The difference could be the version of guile. What's the output of
'guile --version' and 'guix environment -l guix.scm -- guile --version'?

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]