When CC is set to x86_64-pc-linux-gnu-cc, the tests fail, if it's set to x86_64-pc-linux-gnu-gcc or even clang, the tests succeed.
Note that x86_64-pc-linux-gnu-cc basically is a symlink to x86_64-pc-linux-gnu-gcc on my system, so this doesn't make a lot of sense. Maybe the tests try to mangle the CC value somehow?
build log: https://gist.github.com/hasufell/55c8c90178ebcb23886a394bd01fcf6e