>
> Have you seen that?
>
> https://stackoverflow.com/questions/19118854/unable-to-cross-compile-to-sparc-using-clang
> I’m not sure sparc backend is well supported by clang/llvm. Try with
> riscv.
Yes I saw. It is old post, I have clang 11 and it is detecting sparc as a
target so I thought clang
with sparc-unknown-rtems5
clang version 11.0.0 (https://github.com/llvm/llvm-project.git
05606329e2353e37492bcf567ab4a4b27bceb65c)
Target: sparc-unknown-rtems5
Thread model: posix
InstalledDir: /home/suyash/Desktop/clanganalyzer/llvm-project/build2/bin
"/home/suyash/Desktop/clanganalyzer/llvm-pro
>
> Also can you add -v and send the output?
clang version 11.0.0 (https://github.com/llvm/llvm-project.git
05606329e2353e37492bcf567ab4a4b27bceb65c)
Target: sparc
Thread model: posix
InstalledDir: /home/suyash/Desktop/clanganalyzer/llvm-project/build2/bin
"/home/suyash/Desktop/clanganalyzer/llv
Have you seen that?
https://stackoverflow.com/questions/19118854/unable-to-cross-compile-to-sparc-using-clang
I’m not sure sparc backend is well supported by clang/llvm. Try with riscv.
On Mon, 4 May 2020 at 13:34, Hesham Almatary
wrote:
>
>
> On Mon, 4 May 2020 at 13:19, Joel Sherrill wrote:
On Mon, 4 May 2020 at 13:19, Joel Sherrill wrote:
>
>
> On Mon, May 4, 2020, 7:16 AM suyash singh
> wrote:
>
>> I am trying to cross compile with clang and run Undefined Behavior
>> Sanitizer for .c file
>>
>> *Command I am running*
>>
>> clang -target sparc -integrated-as -fuse-ld=lld -fsanitiz
On Mon, May 4, 2020, 7:16 AM suyash singh wrote:
> I am trying to cross compile with clang and run Undefined Behavior
> Sanitizer for .c file
>
> *Command I am running*
>
> clang -target sparc -integrated-as -fuse-ld=lld -fsanitize=undefined test1.c
>
> clang is the cross compiler
>
> sparc is th
I am trying to cross compile with clang and run Undefined Behavior
Sanitizer for .c file
*Command I am running*
clang -target sparc -integrated-as -fuse-ld=lld -fsanitize=undefined test1.c
clang is the cross compiler
sparc is the target architecture.
-integrated-as to use the llvm assembler
-