-
Notifications
You must be signed in to change notification settings - Fork 10.5k
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
build the toochain failed when doing cross-compilation on M1 MBP #60760
Comments
i had the same issue, also on M1 |
@whf881211 have you solved this issue? |
nope. I'm going to try to build it on intel mac. That might be less problem. |
@whf881211 I have tried to build it on intel, still failed. |
I didn't face this exact issue while building the toolchain, I even managed to build it today on M1 with the However, for a successful build, you still need a lot of hacks in scripts, starting from this hack here because of the line here (recent PR doesn't seem to help). There are other dirty tricks that I won't even show for the sake of sanity. From other folks, I heard that running this script under rosetta helps as well, but still requires some tweaks. @edymtt I wonder if is it possible to add an arm64 host that builds the toolchain to ci.swift.org, it would make the life of a lot of devs on M1 macs much easier. |
With regard to the original issue, this may be happening because one or more programs used/involved in the compilation are running under Rosetta -- I would suggest to check the python used to run build-script, the shell you are running on and the homebrew you are running (if any) With regard to hitting issue with Intel as well, I would suggest to file a new issue and providing a log (or at least a snippet of the error message) to understand what may be going on there |
@azarovalex I will check what we can do here (no promises, since I'm not responsible for the CI infrastructure) |
Describe the bug
I use
utils/build-toolchain com.custom
command to build the toolchain, and get the error says as following:As the error says, the reason is that when linking the swift-demangle.cpp.o, there is no symbols for arm64, and I notice there is another warning:
But the strenge thing is, I use
lipo -info libLLVMSupport.a
to check, its arch is x86_64.Environment
The text was updated successfully, but these errors were encountered: