mailing list of musl libc
 help / color / mirror / code / Atom feed
From: Szabolcs Nagy <nsz@port70.net>
To: Chen Wang <unicorn_wang@outlook.com>
Cc: musl <musl@lists.openwall.com>
Subject: Re: [musl] Please help check configuration to buld musl targeting risc-v
Date: Fri, 16 Oct 2020 11:34:33 +0200	[thread overview]
Message-ID: <20201016093433.GT2947641@port70.net> (raw)
In-Reply-To: <OSYP286MB0181504A6C859DE003400CDCFE030@OSYP286MB0181.JPNP286.PROD.OUTLOOK.COM>

* 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

      reply	other threads:[~2020-10-16  9:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-16  9:09 Chen Wang
2020-10-16  9:34 ` Szabolcs Nagy [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20201016093433.GT2947641@port70.net \
    --to=nsz@port70.net \
    --cc=musl@lists.openwall.com \
    --cc=unicorn_wang@outlook.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

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 NNTP newsgroup(s).