Build everything from source fails to find itself

Building an everything package from source seems to fail when it comes to qtquick related components because it cannot find qtquick, which the build is surely supposed to be creating in the first place. e.g. Picking an older package such as 5.2.1 and a configure ./configure -prefix /opt/qt5 -nomake tests -opensource -qt-xcb, a few minutes into the build it bails with:

Building 5.7.0 is similar except that it fails in qtvirtualkeyboard. In both cases qtdeclarative had been built successfully, so I tried a make install within there to install it and then went back to the main build, but still no joy.

It seems that part of the qt build needs components that it is building but hasn't installed yet. I've used qml in projects before but with prebuilt packages. A source build seems elusive. Does a build on a system that does not already have a version Qt need to be split into several stages so that prerequisites for other parts of the build are available?

Thanks for the reply. I was optimistic, and having skipped gamepad that fails to compile, compilation seems ok. However, when hitting make install, install fails at the virtual keyboard. I configured with:

Any ideas? It feels as though Qt is never built on a clean system so these issues are rarely come across. So far it's been hours of tinkering to options to knock this and that out with no successful install to show for it. If the everything package built just a minimal subset by default, with options to incrementally add modules as necessary plus a few options for groups of packages, success would be much more assured.