Port-arm archive

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

Re: cross-build aarch64 from macOS not working? Seems to be a result of newer gcc?



> > What version of clang/llvm and macOS is this btw?  The gcc bug report
> > mentioned clang 9.0 so I did a few tests and indeed cannot build gcc
> > up to 10.4.0 with clang 9.0.  I was able to compile gcc 9.2.0 with
> > clang 9.0.1 and I'm right now fairly far into a gcc 11.1.0 build with
> > clang 9.0.  But if this happens with a compiler shipped by a major
> > vendor it will likely affect more people so we should patch it in our
> > tree some way or the other.
> 
> That would be awesome, though I’m just glad to not be stuck again :-).
> 
> I’m running macOS 12.6, which is the latest at the moment, but 13.x will ship any day now (though I don’t think it’ll run on this particular machine).
> 
> I’m using Xcode 14.0.1, which is the latest and I think the same version that 13.x will use.
> 
> As you likely know, Apple has their own clang/llvm (
> https://opensource.apple.com/projects/llvm-clang/) that they maintain, but I think Apple tries to keep in pretty close sync with the main development.

https://en.wikipedia.org/wiki/Xcode indicates that
the LLVM versions start to be used at the following
Apple Clang versions:

XCode/
Apple-	LLVM's
Clang	versioning

(older omitted here)
9.0	 4.0.0 (FYI: XCode/Apple-Clang 9.0 released September 19, 2017)
9.3	 5.0.2
10.0	 6.0.1
10.2	 7.0.0
11.0	 8.0.0
11.4	 9.0.0
12.0	10.0.0
12.5	11.1.0
13.0	12.0.0
13.3	13.0.0
14.0	14.0.0

So Apple Clang 13.3 seems to be the first modern
version of Apple Clang where the Apple Clang major
version matches the LLVM major version involved.

In essence, if Apple Clang and LLVM Clang are to
both be spanned, there is no single, overall Clang
version number and the context of the used
versioning has to also be specified. (Messy.)

I've no clue if Apple will keep their major versions
matching LLVM's going forward vs. not.

(LLVM's versioning is at 15.0.3 as of 2002-Oct-18.
But there is no matching Apple Clang yet.)

===
Mark Millard
marklmi at yahoo.com



Home | Main Index | Thread Index | Old Index