<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Apr 30, 2020 at 7:34 AM 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">Hello, <div>I was running clang UBSan on</div><div>bsps/sparc/erc32/btimer/btimer.c<br></div><div><br></div><div>and got error</div><div><br></div><div>/usr/bin/as: unrecognized option '-Av8'<br>clang-11: error: assembler command failed with exit code 1<br></div><div><br></div><div>I am not sure but is it because clang is using wrong assembler? </div></div></blockquote><div><br></div><div>I haven't seen anyone run into this in a long time. :)</div><div><br></div><div>In this case, it is likely one of two things:</div><div><br></div><div>+ Look at your $PATH. Make sure the RTEMS tools are first.</div><div><br></div><div>+ But in your case, I expect that it is because the clang didn't<br></div><div>know (somehow) to put the target name in front of the as.</div><div>Did you invoke it for sparc-rtems5? If so, then there is a</div><div>path through clang where it isn't looking at the target name.</div><div><br></div><div>I also double checked the as manual to ensure -Av8 was in</div><div>fact a sparc option. </div><div><br></div><div>--joel</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><br></div><div><br></div></div>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a></blockquote></div></div>