[racket-dev] Odd error when running make

From: Spencer Florence (florence at ccs.neu.edu)
Date: Wed Dec 10 14:24:26 EST 2014

Sometimes when building git HEAD I get an error like:

raco setup: --- summary of errors ---
raco setup: error: during building docs for
<pkgs>/racket-doc/scribblings/guide/guide.scrbl
raco setup:   query-rows: attempt to write a readonly database
raco setup:     error code: 776
raco setup:     SQL: "SELECT pathid FROM documented WHERE stag=$1"
raco setup:     database:
#<path:/Applications/Racket/racket/doc/docindex.sqlite>
raco setup:     mode: 'read-only
raco setup:     file permissions: (write read)
raco setup:     context...:
raco setup:
 /Applications/Racket/racket/collects/db/private/sqlite3/connection.rkt:392:0:
handle-status*
raco setup:
 /Applications/Racket/racket/collects/db/private/sqlite3/connection.rkt:352:8
raco setup:
 /Applications/Racket/racket/collects/db/private/sqlite3/connection.rkt:171:4:
step method in connection%
raco setup:
 /Applications/Racket/racket/collects/db/private/sqlite3/connection.rkt:159:8:
loop
raco setup:
 /Applications/Racket/racket/collects/db/private/sqlite3/connection.rkt:62:4:
query1 method in connection%
raco setup:
 /Applications/Racket/racket/collects/db/private/generic/functions.rkt:165:0:
query-rows8
raco setup:
 /Applications/Racket/racket/collects/setup/doc-db.rkt:94:3: temp60
raco setup:
 /Applications/Racket/racket/collects/setup/doc-db.rkt:497:0:
call-with-retry/transaction
raco setup:
 /Applications/Racket/racket/collects/setup/doc-db.rkt:89:0:
doc-db-key->path22
raco setup:
 /Applications/Racket/pkgs/racket-index/setup/xref.rkt:120:6: try
raco setup:      /Applications/Racket/pkgs/racket-index/setup/xref.rkt:116:2
raco setup:
 /Applications/Racket/racket/share/pkgs/scribble-lib/scribble/xref.rkt:65:19:
send-arg73
raco setup:
 /Applications/Racket/racket/share/pkgs/scribble-lib/scribble/base-render.rkt:1114:28
raco setup:
 /Applications/Racket/racket/share/pkgs/scribble-lib/scribble/base-render.rkt:1114:28
raco setup:
 /Applications/Racket/racket/share/pkgs/scribble-lib/scribble/core.rkt:24:0:
resolve-get/where
raco setup:
 /Applications/Racket/racket/share/pkgs/scribble-lib/scribble/core.rkt:73:0:
resolve-search...

As a result the doc's index page has (part ("(lib
scribblings/guide/guide.scrbl)" "top")) instead of a link to the guide.

running `make` again fixes the problem.

Does anyone know how to stop this happening?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/dev/archive/attachments/20141210/93e6c1a9/attachment.html>

Posted on the dev mailing list.