Kicad CB project is still building; currently at 57% of target built; the define of "NANODBC_DISABLE_ASYNC" is not likely the correct workaround of the build error at 11 or 12 percent. I decided that -DNANODBC_DISABLE_ASYNC=ON is a good solution but it is a few hours from finishing building.
mkdir -p ~/devel/kicad/cb_build && cd ~/devel/kicad/cb_build && \
cmake \
-DOCC_INCLUDE_DIR="${MINGW_PREFIX}"/include/opencascade \
-DKICAD_BUILD_QA_TESTS=OFF \
-DNANODBC_DISABLE_ASYNC=1 \
-G"CodeBlocks - MinGW Makefiles" .. > log.txt