Re: rtems assembler

2020-05-01 Thread suyash singh
Ok I think I found a solution. use -integrated-as with clang clang is using the system assembler(usr/bin/as) instead of the llvm assembler(llvm-as) It's still not working but at least assembler command failed error is gone On Thu, Apr 30, 2020 at 9:36 PM Hesham Almatary wrote: > > > On Thu, 3

Re: rtems assembler

2020-04-30 Thread Hesham Almatary
On Thu, 30 Apr 2020 at 15:56, suyash singh wrote: > after adding -v > https://hastebin.com/epijunegix.coffeescript > > with sparc-unknown-elf > https://hastebin.com/ijohidofus.coffeescript > > (target getting an extra unknown for some reason) > > riscv64-unknown-elf > https://hastebin.com/jirusid

Re: rtems assembler

2020-04-30 Thread suyash singh
after adding -v https://hastebin.com/epijunegix.coffeescript with sparc-unknown-elf https://hastebin.com/ijohidofus.coffeescript (target getting an extra unknown for some reason) riscv64-unknown-elf https://hastebin.com/jirusidoti.sql different error: unknown register name (maybe because erc32

Re: rtems assembler

2020-04-30 Thread Hesham Almatary
On Thu, 30 Apr 2020 at 15:21, suyash singh wrote: > I think it doesn't support sparc backend although it does not give unknown > target error. > > I compiled this c program with > export PATH=$HOME/quick-start/rtems/5/bin:"$PATH" > clang -target sparc-unknown-rtems5 test1.c > Can you add -v to t

Re: rtems assembler

2020-04-30 Thread suyash singh
oh I mean for target which does not exist like "hello" it says "unknown target" I wrote that as example to say that sparc-unknown-rtems5 is detected as valid target but not used On Thu, Apr 30, 2020 at 7:52 PM Joel Sherrill wrote: > > > On Thu, Apr 30, 2020 at 9:21 AM suyash singh > wrote: > >

Re: rtems assembler

2020-04-30 Thread Joel Sherrill
On Thu, Apr 30, 2020 at 9:21 AM suyash singh wrote: > I think it doesn't support sparc backend although it does not give unknown > target error. > > I compiled this c program with > export PATH=$HOME/quick-start/rtems/5/bin:"$PATH" > clang -target sparc-unknown-rtems5 test1.c > > *test1.c* > int

Re: rtems assembler

2020-04-30 Thread suyash singh
I think it doesn't support sparc backend although it does not give unknown target error. I compiled this c program with export PATH=$HOME/quick-start/rtems/5/bin:"$PATH" clang -target sparc-unknown-rtems5 test1.c *test1.c* int main(int argc, char **argv) { int k = 0x7fff; k += argc; re

Re: rtems assembler

2020-04-30 Thread Hesham Almatary
On Thu, 30 Apr 2020 at 14:18, suyash singh wrote: > > I am using ubuntu 18.04 terminal > > Here's the python script I wrote to find all include files and run clang > -fsanitize > > # run with python3 in terminal > > import subprocess > import os > > relativedir="../bsps/sparc/erc32/btimer" > dire

Re: rtems assembler

2020-04-30 Thread suyash singh
I am using ubuntu 18.04 terminal Here's the python script I wrote to find all include files and run clang -fsanitize # run with python3 in terminal import subprocess import os relativedir="../bsps/sparc/erc32/btimer" directory=os.path.join(os.getcwd(),"../") file="btimer.c" root_dir="ubsan" ar

Re: rtems assembler

2020-04-30 Thread Hesham Almatary
On Thu, 30 Apr 2020 at 13:51, Joel Sherrill wrote: > > > On Thu, Apr 30, 2020 at 7:34 AM suyash singh > 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 f

Re: rtems assembler

2020-04-30 Thread Hesham Almatary
On Thu, 30 Apr 2020 at 13:34, suyash singh wrote: > Hello, > I was running clang UBSan on > bsps/sparc/erc32/btimer/btimer.c > What’s the command line you're using? > and got error > > /usr/bin/as: unrecognized option '-Av8' > clang-11: error: assembler command failed with exit code 1 > > I am

Re: rtems assembler

2020-04-30 Thread Joel Sherrill
On Thu, Apr 30, 2020 at 7:34 AM suyash singh 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 us