SPMDestinations / homebrew-tap

Homebrew Formulas to install Swift Cross Compilers on macOS (e.g. targeting Ubuntu).
35 stars 2 forks source link

Installation on /opt based Homebrew fails on M1 #13

Open helje5 opened 3 years ago

helje5 commented 3 years ago

Logs:

==> Upgrading spmdestinations/tap/spm-dest-5.3-x86_64-ubuntu16.04 5.3.1_12 -> 5.3.3_13 
==> Downloading https://swift.org/builds/swift-5.3.3-release/xcode/swift-5.3.3-RELEASE/swift-5.3.3-RELEASE-osx.pkg
Already downloaded: /Users/helge/Library/Caches/Homebrew/downloads/c50a96495f403f1d088e191c10034f44ec5c12a0a3543f5ac5a5a57011f77b70--swift-5.3.3-RELEASE-osx.pkg
==> Downloading https://helgehess.eu/patches/ubuntu16.04-5.3-2020-11-21-11.patch
Already downloaded: /Users/helge/Library/Caches/Homebrew/downloads/a4b59f74c8e577517386de583e936b9df09e5038c96224362fd6bcfbcf9fb8d7--ubuntu16.04-5.3-2020-11-21-11.patch
==> Downloading https://swift.org/builds/swift-5.3.3-release/ubuntu1604/swift-5.3.3-RELEASE/swift-5.3.3-RELEASE-ubuntu16.04.tar.gz
Already downloaded: /Users/helge/Library/Caches/Homebrew/downloads/bf33b0e86dc61476291f8a201ce78b7da59e336558d36356dd33166a969ff3fc--swift-5.3.3-RELEASE-ubuntu16.04.tar.gz
==> Installing dependencies for spmdestinations/tap/spm-dest-5.3-x86_64-ubuntu16.04: spmdestinations/tap/swift-xctoolchain-5.3
==> Installing spmdestinations/tap/spm-dest-5.3-x86_64-ubuntu16.04 dependency: spmdestinations/tap/swift-xctoolchain-5.3
==> xar -xf *.pkg
==> mkdir swift.xctoolchain
==> cd swift.xctoolchain && cat ../*.pkg/Payload | gunzip -dc | cpio -i
==> mkdir -p /opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3
==> cp -ac swift.xctoolchain /opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain
==> ln -sf /opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/fat-apple-darwin/5.3.3 /opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3-
==> ln -sf /opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3 /opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/PlaygroundSupport.framework/Versions/A/PlaygroundSupport:
/opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/PlaygroundSupport.framework/Versions/A/PlaygroundSupport: replacing existing signature
/opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/PlaygroundSupport.framework/Versions/A/PlaygroundSupport: Permission denied

Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCPlayground.framework/Versions/A/XCPlayground:
/opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCPlayground.framework/Versions/A/XCPlayground: replacing existing signature
/opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCPlayground.framework/Versions/A/XCPlayground: Permission denied

Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/PlaygroundLogger.framework/Versions/A/PlaygroundLogger:
/opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/PlaygroundLogger.framework/Versions/A/PlaygroundLogger: replacing existing signature
/opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/PlaygroundLogger.framework/Versions/A/PlaygroundLogger: Permission denied

Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/LLDB:
/opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/LLDB: replacing existing signature
/opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/LLDB: Permission denied

Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/sourcekitd:
/opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/sourcekitd: replacing existing signature
/opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4/lib/swift/xctoolchains/x86_64-apple-darwin/5.3.3/swift.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/sourcekitd: Permission denied

🍺  /opt/homebrew/Cellar/swift-xctoolchain-5.3/swift-5.3.3_4: 1,384 files, 2.5GB, built in 29 seconds
==> Installing spmdestinations/tap/spm-dest-5.3-x86_64-ubuntu16.04
==> Patching
==> Applying ubuntu16.04-5.3-2020-11-21-11.patch
patching file Makefile
patching file build-toolchain.sh
patching file retrieve-sdk-packages.sh
==> chmod +x build-toolchain.sh
==> chmod +x retrieve-sdk-packages.sh
==> make prefix=/opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13 ACTUAL_DESTINATION_PREFIX=/opt/homebrew SWIFT_LIB_DIR=/opt/homebrew/lib/swift install
Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/PlaygroundSupport.framework/Versions/A/PlaygroundSupport:
/opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/PlaygroundSupport.framework/Versions/A/PlaygroundSupport: replacing existing signature
/opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/PlaygroundSupport.framework/Versions/A/PlaygroundSupport: Permission denied

Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCPlayground.framework/Versions/A/XCPlayground:
/opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCPlayground.framework/Versions/A/XCPlayground: replacing existing signature
/opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks/XCPlayground.framework/Versions/A/XCPlayground: Permission denied

Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/PlaygroundLogger.framework/Versions/A/PlaygroundLogger:
/opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/PlaygroundLogger.framework/Versions/A/PlaygroundLogger: replacing existing signature
/opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks/PlaygroundLogger.framework/Versions/A/PlaygroundLogger: Permission denied

Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/LLDB:
/opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/LLDB: replacing existing signature
/opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/System/Library/PrivateFrameworks/LLDB.framework/Versions/A/LLDB: Permission denied

Error: Failed applying an ad-hoc signature to /opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/sourcekitd:
/opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/sourcekitd: replacing existing signature
/opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13/lib/swift/dst/x86_64-unknown-linux/swift-5.3-ubuntu16.04.xtoolchain/swift.xctoolchain/usr/lib/sourcekitd.framework/Versions/A/sourcekitd: Permission denied

🍺  /opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.3_13: 5,652 files, 3GB, built in 38 seconds
Removing: /opt/homebrew/Cellar/spm-dest-5.3-x86_64-ubuntu16.04/5.3.1_12... (5,652 files, 3GB)
helje5 commented 3 years ago

https://github.com/SwiftGen/SwiftGen/issues/811

tqb-zynga commented 2 years ago

@helje5 I read through that exchange and can see that it's definitely the same errors that person is having, but I'm not seeing a solution there. Am I missing something?

helje5 commented 2 years ago

If it would have been solved, it would be closed :-) Didn't try that yet, I had it working originally.

tqb-zynga commented 2 years ago

Ah… gotcha