<div dir="ltr">Okay so I used -fuse-ld=lld and it kind of solved the problem but<div><br><div>ld.lld: error: /tmp/btimer-cd0442.o is incompatible with elf64-x86-64<br>collect2: error: ld returned 1 exit status<br>clang-11: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation)<br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, May 3, 2020 at 3:15 PM suyash singh <<a href="mailto:suyashsingh234@gmail.com">suyashsingh234@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>btimer.c is the file</div><div><br></div><div dir="ltr">/usr/bin/ld: /tmp/btimer-d33eb1.o: Relocations in generic ELF (EM: 2)<br>/usr/bin/ld: /tmp/btimer-d33eb1.o: Relocations in generic ELF (EM: 2)<br>/tmp/btimer-d33eb1.o: error adding symbols: File in wrong format<br>collect2: error: ld returned 1 exit status<br>clang-11: error: linker (via gcc) command failed with exit code 1 (use -v to see invocation)<br></div></div>
</blockquote></div>