Hi. For the record: I was not the only one to find this problem:
https://bugs.gentoo.org/940636 So, in addition to a bug in a build-depends, this could also be a bug which happens randomly, in which case it seems I was so unlucky that it failed for me several times in a row. Thanks.