m2 - homebrew - lilypond works sort of sometimes
Maybe this is an m2 (apple silicon) or homebrew issue but I figured I'd start here. Running Ventura 13.3.1 (a).
My test file looks like this:
\version "2.24.1"
\relative { c }
When I run lilypond I get this (and no pdf):
> lilypond test.ly
GNU LilyPond 2.24.1 (running Guile 2.2)
Processing `test.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
Converting to `test.pdf'...
warning: `(gs -q -dNODISPLAY -dNOSAFER -dNOPAUSE -dBATCH -dAutoRotatePages=/None -dPrinted=false /var/folders/5w/43lm0gz51wsbh3j45qqm9t0h0000gn/T//lilypond-tmp-8809981)' failed (11)
/opt/homebrew/Cellar/lilypond/2.24.1/share/lilypond/2.24.1/ly/init.ly:65:2: error: Guile signaled an error for the expression beginning here
#
(let ((book-handler (if (defined? 'default-toplevel-book-handler)
Throw to key `ly-file-failed' with args `()'.
A couple funny things:
- If I run the failed
gs
command listed in the above warning, it findslilypond-tmp-8809981
and successfully outputs a pdf - Separately, if I run
lilypond
throughdtruss
(essentiallystrace
for mac) everything goes great and I get a pdf
Weird, right? So I have a workaround but I'd rather not have to use it.
A couple other thoughts:
- Homebrew uses guile 3, but I updated the "formula" locally to use 2.2 since that's what's recommended (but it didn't help)
- I also tried
brew
's--HEAD
option but it didn't help.
Edited by Justin Francos