mailing list of musl libc
 help / color / mirror / 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

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