mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] Clang 10 errors during compiling musl 1.2.2
@ 2021-04-24 19:03 Aodhnait Étaín
  2021-04-24 19:50 ` Rich Felker
  0 siblings, 1 reply; 3+ messages in thread
From: Aodhnait Étaín @ 2021-04-24 19:03 UTC (permalink / raw)
  To: musl


[-- Attachment #1.1: Type: text/plain, Size: 724 bytes --]

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?

--aodhneine

[-- Attachment #1.2: publickey - aodhneine@protonmail.ch - 0xC22A341F.asc --]
[-- Type: application/pgp-keys, Size: 1798 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 509 bytes --]

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

* Re: [musl] Clang 10 errors during compiling musl 1.2.2
  2021-04-24 19:03 [musl] Clang 10 errors during compiling musl 1.2.2 Aodhnait Étaín
@ 2021-04-24 19:50 ` Rich Felker
  2021-04-24 21:07   ` Fangrui Song
  0 siblings, 1 reply; 3+ messages in thread
From: Rich Felker @ 2021-04-24 19:50 UTC (permalink / raw)
  To: Aodhnait Étaín; +Cc: musl

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

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

* Re: [musl] Clang 10 errors during compiling musl 1.2.2
  2021-04-24 19:50 ` Rich Felker
@ 2021-04-24 21:07   ` Fangrui Song
  0 siblings, 0 replies; 3+ messages in thread
From: Fangrui Song @ 2021-04-24 21:07 UTC (permalink / raw)
  To: musl; +Cc: Aodhnait Étaín

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.

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

end of thread, other threads:[~2021-04-24 21:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-24 19:03 [musl] Clang 10 errors during compiling musl 1.2.2 Aodhnait Étaín
2021-04-24 19:50 ` Rich Felker
2021-04-24 21:07   ` Fangrui Song

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