Issue |
145851
|
Summary |
lld warning `DWARF unit at offset 0x00000000 has unsupported version 0`
|
Labels |
lld
|
Assignees |
|
Reporter |
zmodem
|
This warning accompanies undefined symbol errors when certain flags are passed: (at 54953b922d114de5a539f32071650d9a8ab6d78c)
```
$ cat /tmp/a.c
void f(); // Intentionally left undefined.
int main() { f(); }
$ build/bin/clang -fuse-ld=lld -g2 -Wa,--crel,--allow-experimental-crel -Wl,--gdb-index /tmp/a.c
ld.lld: warning: /tmp/a-0657c0.o: DWARF unit at offset 0x00000000 has unsupported version 0, supported are 2-5
ld.lld: error: undefined symbol: f
>>> referenced by a.c
>>> /tmp/a-0657c0.o:(main)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
```
The real error is of course the undefined symbol. The message about unsupported DWARF unit version is confusing to users.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs