rtems assembler
Joel Sherrill
joel at rtems.org
Thu Apr 30 12:48:22 UTC 2020
On Thu, Apr 30, 2020 at 7:34 AM suyash singh <suyashsingh234 at gmail.com>
wrote:
> Hello,
> I was running clang UBSan on
> bsps/sparc/erc32/btimer/btimer.c
>
> and got error
>
> /usr/bin/as: unrecognized option '-Av8'
> clang-11: error: assembler command failed with exit code 1
>
> I am not sure but is it because clang is using wrong assembler?
>
I haven't seen anyone run into this in a long time. :)
In this case, it is likely one of two things:
+ Look at your $PATH. Make sure the RTEMS tools are first.
+ But in your case, I expect that it is because the clang didn't
know (somehow) to put the target name in front of the as.
Did you invoke it for sparc-rtems5? If so, then there is a
path through clang where it isn't looking at the target name.
I also double checked the as manual to ensure -Av8 was in
fact a sparc option.
--joel
>
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20200430/f096138e/attachment.html>
More information about the devel
mailing list