I spend some time on troubleshooting this issue today. Turns out I had boost installed (via ports) and the build was picking it up instead of the bundled one (distfiles). The boost headers are picked up by the compiler through '-I/opt/local/include'. I'm unsure if there is a way to influence this through the build, i.e. place the bundled boost first...
Anyway I had boost @1.66.0_3 installed and removing it from the system resolved this issue. Perhaps @BjarneDMat can have another look to see if there is another version of boost on his systems (either through ports or manual install).
Not sure what a nice solution would be here is besides warning that a system installed boost was found...
MySQL 5.7 requires a very specific version of boost (1.59.0) [1] though it looks like this restriction has been lifted [2] for 8.0 (though unsure which versions are really supported).
All for now.