unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Théo Tyburn" <theo.tyburn@posteo.net>
To: guix-devel@gnu.org
Subject: Re: Help Packaging Incudine (Common Lisp)
Date: Thu, 28 Sep 2023 14:20:21 +0000	[thread overview]
Message-ID: <87r0mi750q.fsf@posteo.net> (raw)
In-Reply-To: <871qekptft.fsf@posteo.net>

For some weird reasons I manage to compile this reluctant file in an
interactive session by accepting the error in the debugger and retrying
compilation later on when the compiled file is required.

Not sure in what retrying a compilation on the interactive debugger is
different from compiling normally. But I need to understand why the
retrying of compilation does in order to replicate it without the need
of an interactive session.

Here are the logs:
This is the first error where where I accept:

> ASDF could not load incudine because
> COMPILE-FILE-ERROR while
> compiling #<INCUDINE-SOURCE-FILE "incudine" "contrib/cl-sndfile" "cffi-sndfile">.
> While evaluating the form starting at line 3, column 0
>   of #P"/home/teddd/src/music/incudine/require.lisp":

> debugger invoked on a UIOP/LISP-BUILD:COMPILE-FILE-ERROR in thread
> #<THREAD tid=19946 "main thread" RUNNING {100AFF0113}>:
>   COMPILE-FILE-ERROR while
>   compiling #<INCUDINE-SOURCE-FILE "incudine" "contrib/cl-sndfile" "cffi-sndfile">

> Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

> restarts (invokable by number or by possibly-abbreviated name):
>   0: [RETRY                        ] Retry
>                                      compiling #<INCUDINE-SOURCE-FILE "incudine" "contrib/cl-sndfile" "cffi-sndfile">.
>   1: [ACCEPT                       ] Continue, treating
>                                      compiling #<INCUDINE-SOURCE-FILE "incudine" "contrib/cl-sndfile" "cffi-sndfile">
>                                      as having been successful.
>   2:                                 Retry ASDF operation.
>   3: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
>                                      configuration.
>   4:                                 Retry ASDF operation.
>   5:                                 Retry ASDF operation after resetting the
>                                      configuration.
>   6: [RETRY                        ] Retry EVAL of current toplevel form.
>   7: [CONTINUE                     ] Ignore error and continue loading file "/home/teddd/src/music/incudine/require.lisp".
>   8: [ABORT                        ] Abort loading file "/home/teddd/src/music/incudine/require.lisp".
>   9:                                 Ignore runtime option --load "require.lisp".
>  10:                                 Skip rest of --eval and --load options.
>  11:                                 Skip to toplevel READ/EVAL/PRINT loop.
>  12: [EXIT                         ] Exit SBCL (calling #'EXIT, killing the process).

> (UIOP/LISP-BUILD:CHECK-LISP-COMPILE-RESULTS NIL T T "~/asdf-action::format-action/" ((#<ASDF/LISP-ACTION:COMPILE-OP > . #<ASDF/USER::INCUDINE-SOURCE-FILE "incudine" "contrib/cl-sndfile" "cffi-sndfile">)))
> ; File has been modified since compilation:
> ;   SYS:CONTRIB;ASDF;ASDF.LISP.NEWEST
> ; Using form offset instead of character position.

>    source: (ERROR 'COMPILE-FILE-ERROR :CONTEXT-FORMAT CONTEXT-FORMAT
>                   :CONTEXT-ARGUMENTS CONTEXT-ARGUMENTS)
> 0] 1

Then comes the second error where I retry compilation:

> ASDF could not load incudine because
> Couldn't load
> #P"/home/teddd/.cache/common-lisp/sbcl-2.3.5-linux-x64/home/teddd/src/music/incudine/contrib/cl-sndfile/cffi-sndfile.fasl":
> file does not exist..
> While evaluating the form starting at line 3, column 0
>   of #P"/home/teddd/src/music/incudine/require.lisp":

> debugger invoked on a SB-INT:SIMPLE-FILE-ERROR in thread
> #<THREAD tid=19946 "main thread" RUNNING {100AFF0113}>:
>   Couldn't load
>   #P"/home/teddd/.cache/common-lisp/sbcl-2.3.5-linux-x64/home/teddd/src/music/incudine/contrib/cl-sndfile/cffi-sndfile.fasl":
>   file does not exist.

> Type HELP for debugger help, or (SB-EXT:EXIT) to exit from SBCL.

> restarts (invokable by number or by possibly-abbreviated name):
>   0: [TRY-RECOMPILING              ] Recompile cffi-sndfile and try loading it again
>   1: [RETRY                        ] Retry loading FASL for
>    #<INCUDINE-SOURCE-FILE "incudine" "contrib/cl-sndfile" "cffi-sndfile">.
>   2: [ACCEPT                       ] Continue, treating loading FASL for
>    #<INCUDINE-SOURCE-FILE "incudine" "contrib/cl-sndfile" "cffi-sndfile">
>                                      as having been successful.
>   3:                                 Retry ASDF operation.
>   4: [CLEAR-CONFIGURATION-AND-RETRY] Retry ASDF operation after resetting the
>                                      configuration.
>   5:                                 Retry ASDF operation.
>   6:                                 Retry ASDF operation after resetting the
>                                      configuration.
>   7: [RETRY                        ] Retry EVAL of current toplevel form.
>   8: [CONTINUE                     ] Ignore error and continue loading file "/home/teddd/src/music/incudine/require.lisp".
>   9: [ABORT                        ] Abort loading file "/home/teddd/src/music/incudine/require.lisp".
>  10:                                 Ignore runtime option --load "require.lisp".
>  11:                                 Skip rest of --eval and --load options.
>  12:                                 Skip to toplevel READ/EVAL/PRINT loop.
>  13: [EXIT                         ] Exit SBCL (calling #'EXIT, killing the process).

> (LOAD #P"/home/teddd/.cache/common-lisp/sbcl-2.3.5-linux-x64/home/teddd/src/music/incudine/contrib/cl-sndfile/cffi-sndfile.fasl" :VERBOSE NIL :PRINT NIL :IF-DOES-NOT-EXIST :ERROR :EXTERNAL-FORMAT :DEFAULT)
> 0] 0
> ; compiling file "/home/teddd/src/music/incudine/contrib/cl-sndfile/cffi-sndfile.lisp" (written 28 SEP 2023 03:02:26 PM):

> ; wrote /home/teddd/.cache/common-lisp/sbcl-2.3.5-linux-x64/home/teddd/src/music/incudine/contrib/cl-sndfile/cffi-sndfile-tmpJAIDFZTC.fasl
> ; compilation finished in 0:00:00.132

Tada. Any idea how I could achieve this without an interactive session ?


      parent reply	other threads:[~2023-09-28 14:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-09-26 20:31 Help Packaging Incudine (Common Lisp) Théo Tyburn
2023-09-28 12:23 ` Théo Tyburn
2023-09-29  4:29   ` Liliana Marie Prikler
2023-09-30 13:31     ` Théo Tyburn
2023-10-22 12:07       ` Guillaume Le Vaillant
2023-10-22 14:15         ` Théo Tyburn
2023-10-23  8:44           ` Guillaume Le Vaillant
2023-10-24 20:25             ` Théo Tyburn
2023-09-28 14:20 ` Théo Tyburn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r0mi750q.fsf@posteo.net \
    --to=theo.tyburn@posteo.net \
    --cc=guix-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

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).