Date: Sat, 24 Apr 2021 14:07:53 -0700 From: Fangrui Song <i@...kray.me> To: musl@...ts.openwall.com Cc: Aodhnait Étaín <aodhneine@...tonmail.ch> Subject: Re: Clang 10 errors during compiling musl 1.2.2 On 2021-04-24, Rich Felker wrote: >On Sat, Apr 24, 2021 at 07:03:20PM +0000, Aodhnait Étaín wrote: >> Hi, >> >> I tried to cross-compile musl 1.2.2 for RISC-V using clang 10 on Alpine >> Linux in WSL. Sadly, it did not work, and instead failed during compiling >> src/complex/catan.c. >> >> Linked below are output of configure and make, the preprocessed source >> of catan.c and the run script. >> >> Compilation log: http://0x0.st/-mux.log >> Preprocessed source: http://0x0.st/-mu3.c >> Associated run script: http://0x0.st/-muY.sh >> >> I guess it has something to do with clang, so probably llvm-bugs would >> be a more appropriate place to report it, but I'm still waiting for the >> account registration confirmation on the llmv-project Bugzilla. So in >> the meantime I decided to see if you peeps have any idea what's happening? > >Yes, this is surely a clang bug. But maybe someone here will have >ideas about getting it fixed or know if it's already reported. > >Rich I confirm clang 10.0.1 has the bug when compiling src/complex/catan.c. clang 11.0.0 from https://releases.llvm.org/ is good. If your GCC installation is riscv64-linux-gnu-gcc, I recommend --target=riscv64-linux-gnu- or --target=riscv64-linux-gnu, which matches the gcc executable name. --target=riscv64 is not recommended.
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.