tpoechtrager / osxcross

Mac OS X cross toolchain for Linux, FreeBSD, OpenBSD and Android (Termux)
GNU General Public License v2.0
2.81k stars 320 forks source link

Cannot Build compiler-rt With Clang 14 #347

Closed nephatrine closed 2 years ago

nephatrine commented 2 years ago

I was getting a lot of errors trying to run build_compiler_rt.sh using clang-14 from Ubuntu jammy.

Just updating build_compiler_rt.sh to use BRANCH=release/14.x instead of BRANCH=main seems to have corrected everything though. I guess maybe it wasn't split off into its own branch yet when you did the initial 14.x support?

build_log.txt

akien-mga commented 2 years ago

Duplicate of #340, fixed by #341.

akien-mga commented 2 years ago

Also worth noting, I actually got invalid macOS and iOS binaries when compiling osxcross against Clang 14 (with the above patch). I haven't investigated in depth but it seems to me like as of Xcode 13.3.1, the SDKs aren't ready for Clang 14 yet.

nephatrine commented 2 years ago

I don't have a macOS device myself to test the binaries on, but I'll have to have someone take a look and see if I run into the same thing with them not being valid binaries.

Looks like the actual issue reported though is fixed at least.

nephatrine commented 2 years ago

As a follow-up, the binaries I am generating with Clang 14 seems to work fine on actual macOS hardware.

akien-mga commented 2 years ago

Which Xcode version did you build against?