gravitational / teleport

The easiest, and most secure way to access and protect all of your infrastructure.
https://goteleport.com
GNU Affero General Public License v3.0
16.97k stars 1.7k forks source link

Teleport fails to build on arm64 with Xcode 14.2 #43676

Open itsdalmo opened 4 days ago

itsdalmo commented 4 days ago

Expected behavior: make full FIDO2=dynamic should work with Xcode 14.2 on arm64.

Current behavior: It fails with the following error: ld: library not found for -ld_classic

Bug details:

Ref the bug details, we are working on a PR to bump the Teleport version in Homebrew and are seeing failing builds on macOS 12 (Monterey) on arm64, due to the -ld_classic flag that was introduced in #42738. As far as we can tell that flag was added to Xcode 15, which means that builds on any older version of Xcode is broken (on arm64). And since Xcode 15 requires macOS 13, this also means that builds are broken for macOS 12 and below (on arm64).

I could not find any documentation on the minimal version required to build teleport, aside from the install documentation which states that the minimal version is macOS v10.15+ (Catalina).

strideynet commented 3 days ago

For context, we introduced this flag into the makefile due to sporadically encountering https://github.com/golang/go/issues/67854 - we're probably planning to remove this from the makefile once the upstream issue with the linker was resolved.