ConfD ships with basically all relevant YANG modules pre-compiled, in the $CONFD_DIR/etc/confd directory - there may in some cases be reasons to recompile some of them, e.g. using the --export option to make them “invisible” to some/all northbound agents. But there is no reason to compile any additional modules found in $CONFD_DIR/src/confd/yang.