Closed ZiLingNiu closed 2 years ago
I just ran into the same issue. I was able to fix it by uninstalling python from homebrew. The reason for the failure seems to be that homebrew only installs binaries with the architecture of your machine, not universal binaries, so when the linker tries to link LLVM it can't find those symbols for arm64. The system version of python does come with both arm64 and x86_64.
I just ran into the same issue. I was able to fix it by uninstalling python from homebrew. The reason for the failure seems to be that homebrew only installs binaries with the architecture of your machine, not universal binaries, so when the linker tries to link LLVM it can't find those symbols for arm64. The system version of python does come with both arm64 and x86_64.
Great, this solved my current problem, thanks. Describe my few hours of exploration: 1 First brew uninstall python3; 2 When trying to build with ./swift/utils/build-toolchain: env: python: No such file or directory; 3 Tried sudo ln -s /usr/local/bin/python3 python, but failed on MacOS 12.3.1; 4 Download the general version of Python3 from the official website: https://www.python.org/downloads/ and install; 5 The error "ld: symbol(s) not found for architecture arm64" no longer appears when using build-toolchain to build.
Describe the bug Hi, I tried to build the toolchain and unfortunately failed. What can I do to improve it?
To Reproduce Steps to reproduce the behavior:
Expected behavior I want to build the toolchain for iPhone device testing.
Screenshots
More error info: error.txt
Environment (please complete the following information):
Additional context In fact, I also tried the swift-5.5.1-RELEASE version, with the same failure result as 5.5.2.