Re: -dcompile-scheme-code on Windows
On 20.11.2022 13:37, Jean Abou Samra wrote: I wonder if -dcompile-scheme-code is broken for everyone on Windows or just for some. (If it's broken for everyone, I'm surprised that this is only noticed now ...) Can a few people on Windows please try compiling this and report back: See attached log. Cheers, Robin GNU LilyPond 2.23.81 (running Guile 2.2) Processing `1.ly' Parsing... 1.ly:5:2: error: Guile signaled an error for the expression beginning here # (debug-enable 'backtrace) In procedure bytevector-u64-set!: Value out of range: -149659645 1.ly:7:2: error: Guile signaled an error for the expression beginning here # (display (+ 2 2)) In procedure bytevector-u64-set!: Value out of range: -149659645 1.ly:8:2: error: Guile signaled an error for the expression beginning here # (use-modules (ice-9 match) In procedure bytevector-u64-set!: Value out of range: -149659645 Success: compilation successfully completed
Re: -dcompile-scheme-code on Windows
Le 20/11/2022 à 13:53, Robin Bannister a écrit : On 20.11.2022 13:37, Jean Abou Samra wrote: I wonder if -dcompile-scheme-code is broken for everyone on Windows or just for some. (If it's broken for everyone, I'm surprised that this is only noticed now ...) Can a few people on Windows please try compiling this and report back: See attached log. Ah, sorry, the snippet was silly. Please use this one instead: \version "2.23.81" #(debug-enable 'backtrace) #(ly:set-option 'compile-scheme-code) #(display (+ 2 2)) #(use-modules (ice-9 match) (ice-9 hash-table) (oop goops)) Namely, put #(debug-enable 'backtrace) before #(ly:set-option 'scheme-code). Thanks, Jean OpenPGP_signature Description: OpenPGP digital signature
Re: -dcompile-scheme-code on Windows
On 20.11.2022 13:56, Jean Abou Samra wrote: Ah, sorry, the snippet was silly. Please use this one instead: \version "2.23.81" #(debug-enable 'backtrace) #(ly:set-option 'compile-scheme-code) #(display (+ 2 2)) #(use-modules (ice-9 match) (ice-9 hash-table) (oop goops)) Says successful, but doesn't look it. Cheers, Robin GNU LilyPond 2.23.81 (running Guile 2.2) Processing `1.ly' Parsing... 1.ly:6:2: error: Guile signaled an error for the expression beginning here # (display (+ 2 2)) 16 (apply-smob/1 #) In /home/lily/lilypond-2.23.81/release/binaries/lilypond/build/out/share/lilypond/current/scm/lily/lily.scm: 876:16 15 (lilypond-main _) 905:4 14 (lilypond-all _) In srfi/srfi-1.scm: 640:9 13 (for-each # ) In /home/lily/lilypond-2.23.81/release/binaries/lilypond/build/out/share/lilypond/current/scm/lily/lily.scm: 915:9 12 (_ "1.ly") In ice-9/boot-9.scm: 829:9 11 (catch ly-file-failed # ) In unknown file: 10 (ly:parse-file "1.ly") 9 (apply-smob/1 #) In system/base/compile.scm: 255:6 8 (compile _ #:from _ #:to _ #:env _ #:opts _) 183:32 7 (compile-fold _ (display (+ 2 2)) # ) In language/cps/compile-bytecode.scm: 591:12 6 (emit-bytecode _ # _) In system/vm/assembler.scm: 2614:12 5 (link-assembly #< buf: #u32(2097437 573 0 577 513 > ) 2587:22 4 (link-objects #< buf: #u32(2097437 573 0 577 513 2 >) 1857:9 3 (link-dynamic-section #< buf: #u32(2097437 573 0 > ) In unknown file: 2 (bytevector-u64-set! #vu8(0 0 0 0 0 0 0 0 0 0 0 0 0 0 ) ) In ice-9/boot-9.scm: 751:25 1 (dispatch-exception 0 out-of-range ("bytevector-u64- " )) In unknown file: 0 (apply-smob/1 # out-of-range "b " ) In procedure bytevector-u64-set!: Value out of range: -149659645 1.ly:7:2: error: Guile signaled an error for the expression beginning here # (use-modules (ice-9 match) 16 (apply-smob/1 #) In /home/lily/lilypond-2.23.81/release/binaries/lilypond/build/out/share/lilypond/current/scm/lily/lily.scm: 876:16 15 (lilypond-main _) 905:4 14 (lilypond-all _) In srfi/srfi-1.scm: 640:9 13 (for-each # ) In /home/lily/lilypond-2.23.81/release/binaries/lilypond/build/out/share/lilypond/current/scm/lily/lily.scm: 915:9 12 (_ "1.ly") In ice-9/boot-9.scm: 829:9 11 (catch ly-file-failed # ) In unknown file: 10 (ly:parse-file "1.ly") 9 (apply-smob/1 #) In system/base/compile.scm: 255:6 8 (compile _ #:from _ #:to _ #:env _ #:opts _) 183:32 7 (compile-fold _ (use-modules (ice-9 match) (ice-9 #) #) ) In language/cps/compile-bytecode.scm: 591:12 6 (emit-bytecode _ # _) In system/vm/assembler.scm: 2614:12 5 (link-assembly #< buf: #u32(3146013 836 0 0 0 1 3 > ) 2587:22 4 (link-objects #< buf: #u32(3146013 836 0 0 0 1 314 >) 1857:9 3 (link-dynamic-section #< buf: #u32(3146013 836 0 > ) In unknown file: 2 (bytevector-u64-set! #vu8(0 0 0 0 0 0 0 0 0 0 0 0 0 0 ) ) In ice-9/boot-9.scm: 751:25 1 (dispatch-exception 0 out-of-range ("bytevector-u64- " )) In unknown file: 0 (apply-smob/1 # out-of-range "b " ) In procedure bytevector-u64-set!: Value out of range: -149659645 Success: compilation successfully completed
Re: -dcompile-scheme-code on Windows
Hello Jean, Le dim. 20 nov. 2022 à 13:38, Jean Abou Samra a écrit : > \version "2.23.81" > > #(ly:set-option 'compile-scheme-code) > #(debug-enable 'backtrace) > > #(display (+ 2 2)) > #(use-modules (ice-9 match) >(ice-9 hash-table) >(oop goops)) > > > Knowing if this works on macOS would be helpful too. > It's working fine for me on macOS with the latest 2.23.81 with both places of #(debug-enable 'backtrace) By the way, is it expected that the «lilypond git repository» link is pointed toward savannah rather than gitlab on the https://lilypond.org/development.html page ? Cheers, -- JJ Fleck Physique et Informatique PCSI1 Lycée Kléber
Re: -dcompile-scheme-code on Windows
Le 20/11/2022 à 16:08, Jean-Julien Fleck a écrit : It's working fine for me on macOS with the latest 2.23.81 with both places of #(debug-enable 'backtrace) Thanks for testing. By the way, is it expected that the «lilypond git repository» link is pointed toward savannah rather than gitlab on the https://lilypond.org/development.html page ? Yes, Savannah is still the official repository because LilyPond is a GNU project. The development repository on GitLab is mirrorred to Savannah. Best, Jean OpenPGP_signature Description: OpenPGP digital signature
Re: -dcompile-scheme-code on Windows
This is now https://gitlab.com/lilypond/lilypond/-/issues/6474 Thanks everyone, Jean OpenPGP_signature Description: OpenPGP digital signature