-
Notifications
You must be signed in to change notification settings - Fork 10.4k
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
[SR-7961] Build Error: undefined_arch #50496
Comments
Haven't seen this one before. What command did you use to run build-script? |
Comment by Giuseppe Lanza (JIRA) sorry I forgot to mention that: /utils/build-script --debug --xcode |
That's all? Yikes. Okay, thanks, Giuseppe! @swift-ci create |
Comment by Giuseppe Lanza (JIRA) I'm going to update the ticket with the command. Thanks |
Comment by David Snabel-Caunt (JIRA) I have the same issue, was also seeing SR-7959. I'm trying to build for the first time, issue might only exist in fresh checkouts? |
Comment by Giuseppe Lanza (JIRA) I had the SR-7959 as well, but re-running the build didn't fell in the same error. |
Comment by Giuseppe Lanza (JIRA) It looks like that happen only for --xcode build parameter. a plain `/utils/build-script --debug` worked with no problems and /utils/build-script --debug --eclipse looks like is doing the job as well. |
Comment by Hernan Canzonetta (JIRA) Could this be related to the new build system? @belkadan — The new build system passes undefined_arch as the value for the ARCH environment variable when running shell script build phases. The value was previously not well defined. Any shell scripts depending on this value must behave correctly for all defined architectures being built, available via the ARCHS environment variable. |
Comment by Bei Li (JIRA) A stupid workaround: copy x86_64 folder and rename it to undefined_arch then rebuild without clean. Do this twice (one for this issue and one for stdlib/public/runtime folder) and build succeed for me. |
Comment by Matthew Rips (JIRA) This issue continues to exist. Fresh clone and build, today, resulted in the same error. OS: 10.13.5 - Xcode 10.0 beta (10L176w) - Command: utils/build-script --release-debuginfo --debug-swift --xcode @bei Li may I ask you to provide more specifics of your suggested workaround? |
I've started seeing this as of today. I had previously built successfully. :-/ |
Evidently CMake has disabled the new build system in Xcode 10, but that change hasn't made it into a release yet. https://gitlab.kitware.com/cmake/cmake/issues/18099 |
After installing a version of CMake that includes that change (using |
cmake version So if you face issues building swift with Xcode 10 beta upgrade cmake ( {{brew upgrade cmake}} ) and reconfigure your build ( by passing {{–reconfigure}} flag to {{build-script}} ) |
hi GLanza (JIRA User), which version of cmake are you using? |
Comment by Giuseppe Lanza (JIRA) Hey @vguerra, my cmake version is 3.11.3. As soon as I can I'll upgrade it and try again. thank you for the help |
Comment by Mohit Athwani (JIRA) I can confirm that /swift/utils/build-script --Xcode --debug --reconfigure after
works. |
Comment by Ross Bayer (JIRA) Should we close this issue? |
GLanza (JIRA User), Could you verify if the problem is fixed and if so move the JIRA to "Closed"? Thanks! |
Environment
OS: High Sierra 10.13.4 (17E202)
xCode version: Xcode 10.0 (10L176w)
Swift version: 4.2 (swiftlang-1000.0.16.7 clang-1000.10.25.3)
Target: x86_64-apple-darwin17.5.0
Additional Detail from JIRA
md5: cf5644946e1399e7c60a3c5b84597631
is duplicated by:
Issue Description:
The build-script stops unexpectedly trying to access files in an not existing folder:
Apparently in this phase the builder is trying to access the folder at
which does not exist.
Navigating to the path .../Objects-normal/ I can see that the folder named with the proper architecture exists.
Command issued to trigger the build:
The text was updated successfully, but these errors were encountered: