I uninstalled macports, un- and re-installed openmpi through brew, and tried again, with the same result.
Are you really sure that macports is gone? The file build/config.log still shows reference to /opt/local/include/mpich-mp,
the location of mpich (not openmpi) most likely out of macports, and not brew