LLVM Error building on OSX
-
I'm getting an error I've never come across before on MacOS. It occurs during the linking and I see that all my system memory is being eaten up by the linking process which is what I assume is leading to this error.
I've tried limiting the number of linking threads to 1 but it still eats up the RAM and the build fails. Any ideas?
LLVM ERROR: SmallVector unable to grow. Requested capacity (4294967296) is larger than the maximum value for size type (429496795)
-
I ran a build from the command line and got a little more info.
It's very strange because I was building last week without any issue. I've tried reinstalling Xcode, I also tried rolling back to an older version of Xcode, I've tried re-downloading the HISE source code too, but no luck.
Debug build works just fine.
▸ Linking HISE ❌ clang: error: unable to execute command: Abort trap: 6 ❌ clang: error: linker command failed due to signal (use -v to see invocation) ** BUILD FAILED ** The following build commands failed: Ld /Volumes/Shared/HISE/projects/standalone/Builds/MacOSX/build/Release/HISE.app/Contents/MacOS/HISE normal (in target 'HISE Standalone - App' from project 'HISE Standalone') (1 failure)
xcodebuild[11233:169074] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionSentinelHostApplications for extension Xcode.DebuggerFoundation.AppExtensionHosts.watchOS of plug-in com.apple.dt.IDEWatchSupportCore 2022-04-17 16:46:06.664 xcodebuild[11233:169074] Requested but did not find extension point with identifier Xcode.IDEKit.ExtensionPointIdentifierToBundleIdentifier for extension Xcode.DebuggerFoundation.AppExtensionToBundleIdentifierMap.watchOS of plug-in com.apple.dt.IDEWatchSupportCore
-
Woohoo, solved it!
There appears to be a bug in Xcode 13.3.x, a few people have reported it in various places on the interwebs. I just downgraded to 13.2.1 and the build succeeded.
I also noticed that I had auto-update enabled which I assume explains how I ended up with Xcode 13.3
-
@d-healey was just gonna say I had a ton of issues with 13.3. Downgraded until I have time to sort them out.
-
@dustbro @d-healey Quick update, I stumbled upon this bug while archiving my app too. Just tried with Xcode 14 beta 2 and it works. It took a LONG time to link though, but at least it doesn't SIGTRAP!
Cheers.
E.