latexmk -xelatex -quiet -halt-on-error -interaction=nonstopmode main
Rc files read:
/etc/LatexMk
.latexmkrc
Latexmk: Run number 1 of rule 'xelatex'
This is XeTeX, Version 3.141592653-2.6-0.999994 (TeX Live 2022/Debian) (preloaded format=xelatex)
restricted \write18 enabled.
entering extended mode
Latexmk: Getting log file 'main.log'
Latexmk: Summary of warnings from last run of *latex:
Latex failed to resolve 13 citation(s)
Latexmk: ====List of undefined refs and citations:
Citation `r1' on page 12 undefined on input line 355
Citation `r2' on page 12 undefined on input line 355
Citation `r3' on page 12 undefined on input line 355
Citation `r4' on page 12 undefined on input line 355
Citation `r6' on page 12 undefined on input line 355
Citation `r6' on page 12 undefined on input line 359
Citation `z1' on page 12 undefined on input line 359
And 6 more --- see log file.
Collected error summary (may duplicate other messages):
xelatex: Command for 'xelatex' gave return code 1
Refer to 'main.log' for details
Latexmk: If appropriate, the -f option can be used to get latexmk
to try to force complete processing.
make: *** [Makefile:61: main.pdf] Error 12