Are you starting from a clean/working clone/environment or are you doing this on top of the error(s) you got previously?
If I do this on top of a clean clone/environment:
git checkout release-3.4.1.1
git submodule update
rm -rf build
./build.sh
It configures and builds:
.
.
.
[100%] Built target toneequal
darktable finished building.
./build/bin/darktable --version
this is darktable 3.4.1.1