https://sourceware.org/bugzilla/show_bug.cgi?id=28722
Bug ID: 28722 Summary: Vague linker error message for bad thin archive Product: binutils Version: 2.38 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com Target Milestone: --- [hjl@gnu-tgl-3 thin]$ cat x.s .text .global foo foo: .byte 0 .data .dc.a bar [hjl@gnu-tgl-3 thin]$ cat bar.s .data .global bar bar: .byte 0 [hjl@gnu-tgl-3 thin]$ make as -o x.o x.s as -o bar.o bar.s ar rcsT libbar.a bar.o mv bar.o xxx ./ld -shared -o x.so x.o libbar.a ./ld: libbar.a: error adding symbols: No such file or directory make: *** [Makefile:9: x.so] Error 1 [hjl@gnu-tgl-3 thin]$ make LD=ld.gold as -o bar.o bar.s ar rcsT libbar.a bar.o mv bar.o xxx ld.gold -shared -o x.so x.o libbar.a ld.gold: error: cannot open bar.o: No such file or directory make: *** [Makefile:9: x.so] Error 1 [hjl@gnu-tgl-3 thin]$ make LD=ld.lld as -o bar.o bar.s ar rcsT libbar.a bar.o mv bar.o xxx ld.lld -shared -o x.so x.o libbar.a ld.lld: error: libbar.a: could not get the buffer for the member defining symbol bar: 'bar.o': No such file or directory make: *** [Makefile:9: x.so] Error 1 [hjl@gnu-tgl-3 thin]$ -- You are receiving this mail because: You are on the CC list for the bug.