I have to use the -deps=file, so that the stdout and stderr are still printed. But unlike -v the -deps=file contains duplicates so I sort and uniq them.