-
Notifications
You must be signed in to change notification settings - Fork 75.3k
Build error: Exec failed due to IOException: xcrun failed with code 1. #57631
Copy link
Copy link
Closed
Labels
subtype:macOSmacOS Build/Installation issuesmacOS Build/Installation issuestype:build/installBuild and install issuesBuild and install issuestype:supportSupport issuesSupport issues
Description
Issue Type
Build/Install
Source
source
Tensorflow Version
2.10.0
Custom Code
Yes
OS Platform and Distribution
macOS 12.5.1 (Apple M1 Pro)
Mobile device
No response
Python version
3.9.13
Bazel version
5.1.1
GCC/Compiler version
Apple Clang 13.1.6
CUDA/cuDNN version
N/A
GPU model and memory
N/A
Current Behaviour?
I'm unable to install TF 2.10.0 on macOS 12.5.1. I see the following errors during build:
ERROR: /private/var/folders/j1/68dlgpr91vlgs26vty2c8xk80000gn/T/spackynvkrim2/02aadb0d9aff009e669c11c7332b5f49/external/llvm-project/llvm/BUILD.bazel:172:11: Compiling llvm/lib/Support/AArch64TargetParser.cpp failed: Exec failed due to IOException: xcrun failed with code 1.
This most likely indicates that SDK version [12.5.1] for platform [MacOSX] is unsupported for the target version of xcode.
Process exited with status 1
stdout: stderr: 2022-09-06 20:02:19.765 xcodebuild[25302:641207] 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-09-06 20:02:19.765 xcodebuild[25302:641207] 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
xcodebuild: error: SDK "macosx12.5.1" cannot be located.
2022-09-06 20:02:20.133 xcodebuild[25305:641233] 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-09-06 20:02:20.133 xcodebuild[25305:641233] 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
xcodebuild: error: SDK "macosx12.5.1" cannot be located.
xcrun: error: unable to lookup item 'Path' in SDK 'macosx12.5.1'
Target //tensorflow/tools/pip_package:build_pip_package failed to build
ERROR: /private/var/folders/j1/68dlgpr91vlgs26vty2c8xk80000gn/T/ajstewart/spack-stage/spack-stage-py-tensorflow-2.10.0-d66xhjmq75ezf46u2u6vid4sjarpijbo/spack-src/tensorflow/lite/python/BUILD:68:10 Middleman _middlemen/tensorflow_Slite_Spython_Stflite_Uconvert-runfiles failed: Exec failed due to IOException: xcrun failed with code 1.
This most likely indicates that SDK version [12.5.1] for platform [MacOSX] is unsupported for the target version of xcode.
Process exited with status 1
stdout: stderr: 2022-09-06 20:02:19.765 xcodebuild[25302:641207] 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-09-06 20:02:19.765 xcodebuild[25302:641207] 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
xcodebuild: error: SDK "macosx12.5.1" cannot be located.
2022-09-06 20:02:20.133 xcodebuild[25305:641233] 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-09-06 20:02:20.133 xcodebuild[25305:641233] 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
xcodebuild: error: SDK "macosx12.5.1" cannot be located.
xcrun: error: unable to lookup item 'Path' in SDK 'macosx12.5.1'
INFO: Elapsed time: 100.341s, Critical Path: 1.19s
INFO: 97 processes: 51 internal, 46 local.
FAILED: Build did NOT complete successfully
FAILED: Build did NOT complete successfully
Standalone code to reproduce the issue
I'm trying to update the Spack package manager with the latest TF release. Just like all prior releases, we've unfortunately been unable to compile TF on Apple M1/M2. To reproduce the issue, you can use the branch where I'm trying to add TF 2.10:
$ git clone https://github.com/adamjstewart/spack.git
$ cd spack
$ git checkout packages/py-tensorflow
$ . share/spack/setup-env.sh
$ spack install py-tensorflowRelevant log output
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
subtype:macOSmacOS Build/Installation issuesmacOS Build/Installation issuestype:build/installBuild and install issuesBuild and install issuestype:supportSupport issuesSupport issues