public inbox for libc-help@sourceware.org
 help / color / mirror / Atom feed
* Please help check configuration to buld musl targeting risc-v
@ 2020-10-16  9:05 Chen Wang
  2020-10-16  9:08 ` Chen Wang
  2020-10-16  9:10 ` Florian Weimer
  0 siblings, 2 replies; 3+ messages in thread
From: Chen Wang @ 2020-10-16  9:05 UTC (permalink / raw)
  To: libc-help

Hello,
I am trying to build musl with clang for risc-v.

Following is my configuration input:

ARCH=riscv \
CROSS_COMPILE=riscv64-unknown-linux-gnu- \
CFLAGS="-v --gcc-toolchain=/opt/riscv64 --sysroot=/opt/riscv64/sysroot/" \
CC=../../llvm-project/install/bin/clang \
./configure --prefix=/home/u/ws/test-musl/install --exec-prefix=/home/u/ws/test-musl/install --disable-shared

"../../llvm-project/install/bin/clang" is what my clang locates, it is 10.0.1 and built by me from source, it's configured for RISC-V and I have used it to built execuation and it works well.
"/opt/riscv64" is the path where my gnu toolchain locates.

After configraton, I run make and it makes llvm/clang oops when compile "src/complex/catan.c". 
> clang-10: error: clang frontend command failed due to signal (use -v to see invocation)

It looks like an issue from llvm, but before I submit this issue to llvm, I just want to double check here if my configration is ok for building musl with clang and target for risc-v.

Thanks in adv.




Best Regards

Wang Chen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Please help check configuration to buld musl targeting risc-v
  2020-10-16  9:05 Please help check configuration to buld musl targeting risc-v Chen Wang
@ 2020-10-16  9:08 ` Chen Wang
  2020-10-16  9:10 ` Florian Weimer
  1 sibling, 0 replies; 3+ messages in thread
From: Chen Wang @ 2020-10-16  9:08 UTC (permalink / raw)
  To: libc-help

Sorry, please ignore my email, I post to wrong address.



Best Regards

(Wang Chen)
 
From: Chen Wang
Date: 2020-10-16 17:05
To: libc-help
CC: unicorn_wang
Subject: Please help check configuration to buld musl targeting risc-v
Hello,
I am trying to build musl with clang for risc-v.

Following is my configuration input:

ARCH=riscv \
CROSS_COMPILE=riscv64-unknown-linux-gnu- \
CFLAGS="-v --gcc-toolchain=/opt/riscv64 --sysroot=/opt/riscv64/sysroot/" \
CC=../../llvm-project/install/bin/clang \
./configure --prefix=/home/u/ws/test-musl/install --exec-prefix=/home/u/ws/test-musl/install --disable-shared

"../../llvm-project/install/bin/clang" is what my clang locates, it is 10.0.1 and built by me from source, it's configured for RISC-V and I have used it to built execuation and it works well.
"/opt/riscv64" is the path where my gnu toolchain locates.

After configraton, I run make and it makes llvm/clang oops when compile "src/complex/catan.c". 
> clang-10: error: clang frontend command failed due to signal (use -v to see invocation)

It looks like an issue from llvm, but before I submit this issue to llvm, I just want to double check here if my configration is ok for building musl with clang and target for risc-v.

Thanks in adv.




Best Regards

Wang Chen

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Please help check configuration to buld musl targeting risc-v
  2020-10-16  9:05 Please help check configuration to buld musl targeting risc-v Chen Wang
  2020-10-16  9:08 ` Chen Wang
@ 2020-10-16  9:10 ` Florian Weimer
  1 sibling, 0 replies; 3+ messages in thread
From: Florian Weimer @ 2020-10-16  9:10 UTC (permalink / raw)
  To: Chen Wang via Libc-help

* Chen Wang via Libc-help:

> I am trying to build musl with clang for risc-v.

Please post musl questions to the musl list:

  <https://www.openwall.com/lists/musl/>

> After configraton, I run make and it makes llvm/clang oops when
> compile "src/complex/catan.c".
>
>> clang-10: error: clang frontend command failed due to signal (use -v to see invocation)
>
> It looks like an issue from llvm, but before I submit this issue to
> llvm, I just want to double check here if my configration is ok for
> building musl with clang and target for risc-v.

I don't know the LLVM policy about compiler crashes, but I suspect
they would want to learn about them, especially if you can provide a
preprocessed source file that reproduces the crash.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-10-16  9:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-16  9:05 Please help check configuration to buld musl targeting risc-v Chen Wang
2020-10-16  9:08 ` Chen Wang
2020-10-16  9:10 ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).