mailing list of musl libc
 help / color / mirror / Atom feed
* [musl] Please help check configuration to buld musl targeting risc-v
@ 2020-10-16  9:09 Chen Wang
  2020-10-16  9:34 ` Szabolcs Nagy
  0 siblings, 1 reply; 2+ messages in thread
From: Chen Wang @ 2020-10-16  9:09 UTC (permalink / raw)
  To: musl; +Cc: unicorn_wang

[-- Attachment #1: Type: text/plain, Size: 1073 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 3264 bytes --]

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

* Re: [musl] Please help check configuration to buld musl targeting risc-v
  2020-10-16  9:09 [musl] Please help check configuration to buld musl targeting risc-v Chen Wang
@ 2020-10-16  9:34 ` Szabolcs Nagy
  0 siblings, 0 replies; 2+ messages in thread
From: Szabolcs Nagy @ 2020-10-16  9:34 UTC (permalink / raw)
  To: Chen Wang; +Cc: musl

* Chen Wang <unicorn_wang@outlook.com> [2020-10-16 17:09:25 +0800]:

> Hello,
> I am trying to build musl with clang for risc-v.
> 
> Following is my configuration input:
> 
> ARCH=riscv \

i don't think there is a riscv arch in musl
(it should be riscv64)

> 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)

you need a minimal reproducer before you submit the bug anyway
so i'd recommend finding the compiler invokation that fails
and create a single preprocessed source file that shows the bug.

it is also helpful to post your config.mak here since we might
spot configuration issues in that.

> 
> 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] 2+ messages in thread

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

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-16  9:09 [musl] Please help check configuration to buld musl targeting risc-v Chen Wang
2020-10-16  9:34 ` Szabolcs Nagy

mailing list of musl libc

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/musl

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 musl musl/ http://inbox.vuxu.org/musl \
		musl@inbox.vuxu.org
	public-inbox-index musl

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.musl


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/musl/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git