Thanks Andrew, with your patch the compilation goes almost all the way through, but stops because of bdwrite.

Link to the log: https://www.dropbox.com/scl/fi/0yzqwrfpj0o9hvpymuka6/cin5.tar.gz?rlkey=ibu6wrcs8tltgn31tfzdc5ze8&st=oebvb6mp&dl=0