Build on MacOS fails

I followed the steps from here (although I had to install javac in addition to those steps) and can now successfully build an image with all default packages, but building bind-dig fails with the error below. Anyone has an idea about how to fix it?

/Volumes/OWRT/openwrt19.07/staging_dir/toolchain-arm_cortex-a7+neon-vfpv4_gcc-7.5.0_musl_eabi/lib/gcc/arm-openwrt-linux-muslgnueabi/7.5.0/../../../../arm-openwrt-linux-muslgnueabi/bin/ranlib: /Volumes/OWRT/openwrt19.07/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/bind-9.14.8/ipkg-install/usr/lib/libisc.a: error reading backtrace-emptytbl.o: file truncated
make[6]: *** [install] Error 1
make[5]: *** [install] Error 1
make[4]: *** [install] Error 1
make[3]: *** [/Volumes/OWRT/openwrt19.07/build_dir/target-arm_cortex-a7+neon-vfpv4_musl_eabi/bind-9.14.8/.built] Error 2
time: package/feeds/packages/bind/compile#171.29#30.66#205.52