amoeba commented on PR #21:
URL: https://github.com/apache/arrow-swift/pull/21#issuecomment-2941405031

   On macOS, I get a very cryptic,
   
   ```
   ❯ nice pre-commit run --show-diff-on-failure --color=always --all-files
   [INFO] Installing environment for https://github.com/realm/SwiftLint.
   [INFO] Once installed this environment will be reused.
   [INFO] This may take a few minutes...
   An unexpected error has occurred: CalledProcessError: command: 
('/usr/bin/swift', 'build', '--package-path', 
'/Users/bryce/.cache/pre-commit/repozxdjlrih', '-c', 'release', '--build-path', 
'/Users/bryce/.cache/pre-commit/repozxdjlrih/swift_env-default/.build')
   return code: 1
   stdout: (none)
   stderr:
       error: 'repozxdjlrih': Invalid manifest (compiled with: 
["/Library/Developer/CommandLineTools/usr/bin/swiftc", "-vfsoverlay", 
"/var/folders/hr/w0c05_fn7x5b8nyslfp8tfsw0000gn/T/TemporaryDirectory.NZQCcp/vfs.yaml",
 "-L", "/Library/Developer/CommandLineTools/usr/lib/swift/pm/ManifestAPI", 
"-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", 
"/Library/Developer/CommandLineTools/usr/lib/swift/pm/ManifestAPI", "-target", 
"arm64-apple-macosx14.0", "-F", 
"/Library/Developer/CommandLineTools/Library/Developer/Frameworks", "-sdk", 
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk", "-swift-version", "5", 
"-I", "/Library/Developer/CommandLineTools/usr/lib/swift/pm/ManifestAPI", 
"-sdk", "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk", 
"-package-description-version", "5.9.0", 
"/Users/bryce/.cache/pre-commit/repozxdjlrih/Package.swift", "-o", 
"/var/folders/hr/w0c05_fn7x5b8nyslfp8tfsw0000gn/T/TemporaryDirectory.IrnSdW/repozxdjlrih-manifest"])
       error: link command failed with exit code 1 (use -v to see invocation)
       Undefined symbols for architecture arm64:
         "PackageDescription.Package.__allocating_init(name: Swift.String, 
defaultLocalization: PackageDescription.LanguageTag?, platforms: 
[PackageDescription.SupportedPlatform]?, pkgConfig: Swift.String?, providers: 
[PackageDescription.SystemPackageProvider]?, products: 
[PackageDescription.Product], dependencies: 
[PackageDescription.Package.Dependency], targets: [PackageDescription.Target], 
swiftLanguageVersions: [PackageDescription.SwiftVersion]?, cLanguageStandard: 
PackageDescription.CLanguageStandard?, cxxLanguageStandard: 
PackageDescription.CXXLanguageStandard?) -> PackageDescription.Package", 
referenced from:
             _main in Package-1.o
       ld: symbol(s) not found for architecture arm64
       clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
       error: 'repozxdjlrih': Invalid manifest (compiled with: 
["/Library/Developer/CommandLineTools/usr/bin/swiftc", "-vfsoverlay", 
"/var/folders/hr/w0c05_fn7x5b8nyslfp8tfsw0000gn/T/TemporaryDirectory.aKZjft/vfs.yaml",
 "-L", "/Library/Developer/CommandLineTools/usr/lib/swift/pm/ManifestAPI", 
"-lPackageDescription", "-Xlinker", "-rpath", "-Xlinker", 
"/Library/Developer/CommandLineTools/usr/lib/swift/pm/ManifestAPI", "-target", 
"arm64-apple-macosx14.0", "-F", 
"/Library/Developer/CommandLineTools/Library/Developer/Frameworks", "-sdk", 
"/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk", "-swift-version", "5", 
"-I", "/Library/Developer/CommandLineTools/usr/lib/swift/pm/ManifestAPI", 
"-sdk", "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk", 
"-package-description-version", "5.9.0", 
"/Users/bryce/.cache/pre-commit/repozxdjlrih/Package.swift", "-o", 
"/var/folders/hr/w0c05_fn7x5b8nyslfp8tfsw0000gn/T/TemporaryDirectory.bOAVKI/repozxdjlrih-manifest"])
       error: link command failed with exit code 1 (use -v to see invocation)
       Undefined symbols for architecture arm64:
         "PackageDescription.Package.__allocating_init(name: Swift.String, 
defaultLocalization: PackageDescription.LanguageTag?, platforms: 
[PackageDescription.SupportedPlatform]?, pkgConfig: Swift.String?, providers: 
[PackageDescription.SystemPackageProvider]?, products: 
[PackageDescription.Product], dependencies: 
[PackageDescription.Package.Dependency], targets: [PackageDescription.Target], 
swiftLanguageVersions: [PackageDescription.SwiftVersion]?, cLanguageStandard: 
PackageDescription.CLanguageStandard?, cxxLanguageStandard: 
PackageDescription.CXXLanguageStandard?) -> PackageDescription.Package", 
referenced from:
             _main in Package-1.o
       ld: symbol(s) not found for architecture arm64
       clang: error: linker command failed with exit code 1 (use -v to see 
invocation)
   Check the log at /Users/bryce/.cache/pre-commit/pre-commit.log
   ```
   
   and when I try to install swiftlint from brew, I get,
   
   ```
   swiftlint: A full installation of Xcode.app 8.0 is required to compile
   this software. Installing just the Command Line Tools is not sufficient.
   
   Xcode can be installed from the App Store.
   Error: swiftlint: An unsatisfied requirement failed this build.
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscr...@arrow.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to