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

[SR-14020] Unable to run Swift compiler tests on M1 Mac? #56411

Closed
johnno1962 opened this issue Jan 6, 2021 · 3 comments
Closed

[SR-14020] Unable to run Swift compiler tests on M1 Mac? #56411

johnno1962 opened this issue Jan 6, 2021 · 3 comments
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself

Comments

@johnno1962
Copy link
Contributor

Previous ID SR-14020
Radar rdar://problem/72865086
Original Reporter @johnno1962
Type Bug
Status Closed
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Compiler, Project Infrastructure
Labels Bug
Assignee None
Priority Medium

md5: 0c598084f2818e5f9d36822bc32931cc

Issue Description:

Hi Apple,

I've been trying to make a small change to the compiler on an M1 Mac and while the compiler build and runs but it is not possible to run tests !

Using the following command:
swift/utils/build-script --skip-build-benchmarks \
--skip-ios --skip-watchos --skip-tvos --swift-darwin-supported-archs "arm64" \
--sccache --release-debuginfo --test

I always get the following error:
– Configuring done
– Generating done
– Build files have been written to: /Users/johnholdsworth/swift-source/build/Ninja-RelWithDebInfoAssert/swift-macosx-arm64

  • popd
    ~/swift-source
  • /opt/homebrew/bin/cmake --build /Users/johnholdsworth/swift-source/build/Ninja-RelWithDebInfoAssert/swift-macosx-arm64 – -j8 all swift-test-stdlib-macosx-arm64
    ninja: error: 'stdlib/swift-test-stdlib-macosx-x86_64', needed by 'stdlib/CMakeFiles/swift-test-stdlib', missing and no known rule to make it
    ERROR: command terminated with a non-zero exit status 1, aborting

It is possible to edit the ninja.build manually to change stdlib/swift-test-stdlib-macosx-x86_64 to stdlib/swift-test-stdlib-macosx-arm64 and get things to work.

#############################################

  1. Phony custom command for stdlib/CMakeFiles/swift-test-stdlib

build stdlib/CMakeFiles/swift-test-stdlib: phony stdlib/swift-test-stdlib-macosx-arm64

About 16 tests fail, mostly to do with the address sanitiser which looks like it needs a constant updated

ThreadSanitizer: unsupported vm address limit 0x800000000000, expected 0x000fc0000000.

I've looked at it but I don't speak cmake and while it feels like only a small change needs to be made somewhere, I've no idea where!

@typesanitizer
Copy link

@swift-ci create

@johnno1962
Copy link
Contributor Author

Resolved by #34998

@johnno1962
Copy link
Contributor Author

Resoled by #34998

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A deviation from expected or documented behavior. Also: expected but undesirable behavior. compiler The Swift compiler in itself
Projects
None yet
Development

No branches or pull requests

2 participants