Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Installation on /opt based Homebrew fails on M1 #13

Open
helje5 opened this issue Feb 26, 2021 · 4 comments
Open

Installation on /opt based Homebrew fails on M1 #13

helje5 opened this issue Feb 26, 2021 · 4 comments

Comments

@helje5
Copy link
Contributor

helje5 commented Feb 26, 2021

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
Copy link
Contributor Author

helje5 commented Feb 26, 2021

SwiftGen/SwiftGen#811

@tqb-zynga
Copy link

@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
Copy link
Contributor Author

helje5 commented Jan 20, 2022

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

@tqb-zynga
Copy link

Ah… gotcha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants