On Thu, 30 Apr 2020 at 13:51, Joel Sherrill <j...@rtems.org> wrote: > > > On Thu, Apr 30, 2020 at 7:34 AM suyash singh <suyashsingh...@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. > That’s likely to be the problem. I expect Suyash isn’t cross compiling with clang.
> I also double checked the as manual to ensure -Av8 was in > fact a sparc option. > > --joel > >> >> >> _______________________________________________ >> devel mailing list >> devel@rtems.org >> http://lists.rtems.org/mailman/listinfo/devel > > _______________________________________________ > devel mailing list > devel@rtems.org > http://lists.rtems.org/mailman/listinfo/devel -- Hesham
_______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel