[cfe-users] clang sparc backend

suyash singh via cfe-users cfe-users at lists.llvm.org
Sun May 3 02:58:01 PDT 2020


Okay so I used -fuse-ld=lld and it kind of solved the problem but

ld.lld: error: /tmp/btimer-cd0442.o is incompatible with elf64-x86-64
collect2: error: ld returned 1 exit status
clang-11: error: linker (via gcc) command failed with exit code 1 (use -v
to see invocation)

On Sun, May 3, 2020 at 3:15 PM suyash singh <suyashsingh234 at gmail.com>
wrote:

> btimer.c is the file
>
> /usr/bin/ld: /tmp/btimer-d33eb1.o: Relocations in generic ELF (EM: 2)
> /usr/bin/ld: /tmp/btimer-d33eb1.o: Relocations in generic ELF (EM: 2)
> /tmp/btimer-d33eb1.o: error adding symbols: File in wrong format
> collect2: error: ld returned 1 exit status
> clang-11: error: linker (via gcc) command failed with exit code 1 (use -v
> to see invocation)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-users/attachments/20200503/d3da25a6/attachment.html>


More information about the cfe-users mailing list