How to debug cryptic error message?

Hi all,

I'm trying to compile a generated assembler file using clang, but I'm
getting a cryptic error message:

  bash$ clang -c dw2-double-set-die-type_clang.s
  <unknown>:0: error: Undefined temporary symbol
  <unknown>:0: error: Undefined temporary symbol

Are there command-line options I can use to narrow down what's causing
this? I'm using clang version 10.0.0 (Fedora 10.0.0-2.fc32) on x86_64
if that matters.


Unfortunately, probably the first thing I’d try is assembling with the GNU assembler instead (using clang -fno-integrated-as, or using gcc as your assembler driver should reach your system assembler which is probably gas).

LLVM’s integrated assembler could use a better error message, to be sure.