This compiled fine until I got to the last four bars in the file (inside the \relative block). Then this was the lilypond message:
Starting lilypond 2.20.0 [Haydn 2 Bass.ly]... Processing `/Users/myname/Bass/Haydn 2 Bass.ly' Parsing...
Interpreting music...
warning: no music found in score
Preprocessing graphical objects...
Interpreting music...[8][16][24]
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...Assertion failed: (my_index == 0), function line_divisions_rec, file /Users/marnen/lilypond-mac-builder/source/lilypond/lily/page-breaking.cc, line 1040. Exited with return code 6.
This message disappears if I remove the last \relative block. But it also disappears if I remove the \header block (and leave in all the music).
The file also compiles fine if I remove the *first* \relative block. So, there appears to be nothing wrong with all individual parts of the file, just all together they refuse to cooperate.
What also mystifies me is that path in the penultimate line of the Exception message: “/Users/marnen/lilypond-mac-builder/“ … that’s certainly not on my computer.