config-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: 回复:Re: llvm configure failed ,please help me------uable to guess sy


From: Zack Weinberg
Subject: Re: 回复:Re: llvm configure failed ,please help me------uable to guess system type
Date: Tue, 17 Dec 2024 09:54:35 -0500

Please be advised that config-patches is a traditional mailing list
where we stick to the old convention of "bottom posting", that is,
replying to each piece of your message *underneath* that piece. Keep
reading for my actual reply.  Please use this convention yourself
when replying.

Please also continue to cc: the mailing list so the discussion is
recorded for future people with the same question.

On Mon, Dec 16, 2024, at 10:57 PM, 龙雨洁 wrote:
> Zack Weinberg<zack@owlfolio.org> 在 2024年12月17日 周二 2:25 写道:
> > On Mon, Dec 16, 2024, at 2:18 AM, 龙雨洁 wrote:
> > > This script (version 2024-07-27), has failed to recognize the
> > > operating system you are using.
> > > [...] config.guess timestamp = 2024-07-27
> > > uname -m = sw_64
> > > uname -r = 5.10.0-46.10.uel20.jk.sw_64
> > > uname -s = Linux
> > >u name -v = #1 SMP Tue Sep 12 17:50:39 CST 2023
> >
> > So, you're trying to build LLVM for a CPU architecture called
> > "sw_64", which config.guess does not know about.  Neither does LLVM
> > itself, nor the Linux kernel, GCC, Binutils, or any other piece of
> > software I checked.  You must have a kernel and a C compiler that
> > have been locally modified to support this CPU.
>
> Are you saying that LLVM does not officially support the compilation
> of the "sw_64" CPU? It's very sad. (ShenWei, a Chinese made CPU,
> official website: https://developer.wxiat.com/#/index

Yes, that is what I am saying.  If it did, there would be a directory
under https://github.com/llvm/llvm-project/tree/main/llvm/lib/Target
named after this CPU, and there isn't.

For LLVM to support sw_64, someone has to do the work of writing all
the necessary code.  I can tell from your original message that
someone *did* do the work of writing the necessary code for the Linux
kernel, GCC, GNU Binutils, and several other programs -- enough that
you have access to a complete Linux "distribution" for sw_64.  Whoever
did that work may also have done the work for LLVM.  If they haven't
already written architecture support for LLVM, they are probably the
people who can do it quickest.

I found what I believe are the architecture manuals for sw_64 listed
at <https://developer.wxiat.com/#/resource/document> but I cannot
download them without creating an account.  It's unlikely that LLVM,
or any of the other projects I mentioned, will want to add official
support for sw_64 until the architecture manuals are _publicly_
available, meaning downloadable _without_ creating an account.
The other thing that would really help is "developer boards" --
small self-contained computers that use sw_64 CPUs, purchasable
reasonably cheaply, shipped worldwide.  I wasn't able to tell if
those are already available from wxiat.com.

You are better able to contact both the wxiat.com people and the
people who did the development work for your Linux distribution
than I am.  Please ask the wxiat.com people to make their architecture
manuals downloadable without creating an account, and to consider
selling developer boards globally.  Please ask the people behind
your Linux distribution to contribute all the code they've already
written to the official code repositories for these programs, and to
work with the official development teams for all the software that
makes up a Linux distribution, going forward.

I regret we can't help you any further.

zw



reply via email to

[Prev in Thread] Current Thread [Next in Thread]