More than a fair chance, once the Obj-C++ files pull in Foundation and the like there will be other errors.
Benjamin, can you not use clang instead of gcc? Does “gcc-mp-7” refer to OpenMP? Although AppleClang doesn’t have OpenMP support, regular Clang does, and it will probably compile Apple’s headers too.
Cheers,
Sean