From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.3 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16991 invoked from network); 16 Oct 2020 09:34:50 -0000 Received: from mother.openwall.net (195.42.179.200) by inbox.vuxu.org with ESMTPUTF8; 16 Oct 2020 09:34:50 -0000 Received: (qmail 25834 invoked by uid 550); 16 Oct 2020 09:34:45 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Reply-To: musl@lists.openwall.com Received: (qmail 25813 invoked from network); 16 Oct 2020 09:34:45 -0000 Date: Fri, 16 Oct 2020 11:34:33 +0200 From: Szabolcs Nagy To: Chen Wang Cc: musl Message-ID: <20201016093433.GT2947641@port70.net> Mail-Followup-To: Chen Wang , musl References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [musl] Please help check configuration to buld musl targeting risc-v * Chen Wang [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