[Help needed] dune build @doc issues strange warnings

I have a project which uses other libraries. I want to create the documentation with dune build @doc and I get the (for me) strange warning. Does anybody have an idea of what went wrong?

File "../../src/core/.alba_core.objs/byte/alba_core.odoc":
Warning: Failed to lookup type unresolvedroot(Fmlib_parse__Parse_with_lexer).Make(unresolvedroot(Alba_core).Elaborator)(unresolvedroot(Alba_parse).Token)(unresolvedroot(Stdlib).Unit)(unresolvedroot(Alba_parse).Definition_parser.Error(unresolvedroot(Alba_core).Error)(unresolvedroot(Alba_core).Elaborator))(unresolvedroot(Alba_parse).Lexer)(identifier((root Alba_core).Test_elaborator.TP, false)).t Parent_module: Unresolved apply
File "../../src/core/.alba_core.objs/byte/alba_core.odoc":
Warning: Failed to lookup type identifier((root Alba_core).Builder.Signature, false)(unresolvedroot(Stdlib).Char).t Parent_module: Unresolved apply
File "../../src/parse/.alba_parse.objs/byte/alba_parse.odoc":
Warning: Failed to lookup type unresolvedroot(Fmlib_parse__Parse_with_lexer).Make(unresolvedroot(Stdlib).Unit)(unresolvedroot(Alba_parse).Token)(identifier((root Alba_parse).Test_parser.Elaborator, false))(unresolvedroot(Alba_parse).Definition_parser.Error(identifier((root Alba_parse).Test_parser.Void, false))(identifier((root Alba_parse).Test_parser.Elaborator, false)))(unresolvedroot(Alba_parse).Lexer)(identifier((root Alba_parse).Test_parser.TP, false)).t Parent_module: Unresolved apply

Usually this happens if your docs makes references to external libraries and those are not generated by the docset then odoc will spit out these warnings rather than checking if the reference exists and not generate links to them.

This is a long standing issue which makes odoc barely usable on any reasonable code base in which you make references to other libraries (e.g. the Stdlib) since you have to sift through this sea of warning to find your own missing references.

It is very annoying.