For those who cannot successfully build the project with error that "... must return a value ", I use a fork version of this repository https://github.com/albertotamajo/submodlib/tree/master. This saves my life.