-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Failed to build aarch64-apple-tvos target #121640
Comments
I think you can just add The code still needs maintenance, but maybe that unblocks you. |
@saethlin |
tvos is a tier 3 target, which means that it may not have any CI. In this case, it looks like it doesn't. The support tiers are documented and explained here: https://doc.rust-lang.org/nightly/rustc/platform-support.html The default build configuration used by If you want to use the tvos targets, they build perfectly fine using Is there something more specific you want to know? |
What's your suggestion in terms of fixing this issue? |
As I said above. Alternatively, you could contribute the rest of the tvos std implementation. |
@saethlin |
Oh, are you asking because I labeled this easy 🤦 Actually making these functions used is not easy, and probably amounts to "finish the TvOS support". What I was thinking of then was that OP needs to add the flag I mentioned above, and that wherever they got that command needs to be adjusted. |
Well, no worries although I would still be happy to contribute if you think it's approachable despite it not being a good-first-issue. |
It's approachable, but would be best done with some advice from the target maintainer, @thomcc: It looks like a bunch of filesystem metadata functions are unused in the tvos target. Is there missing implementation? Whats' the general strategy for finishing the implementation up? |
Merge Apple `std::os` extensions modules into `std::os::darwin` The functionality available on Apple platforms are very similar, and were (basically) duplicated for each platform. This PR rectifies that by merging the code into one module. Ultimately, I've done this to fix `./x build library --target=aarch64-apple-tvos,aarch64-apple-watchos,aarch64-apple-visionos`, as that currently fails because of dead code warnings. Publically exposing these to tvOS/watchOS/visionOS targets is considered in rust-lang/rust#123723, but that seems to be dragging out, and in any case I think it makes sense to do the refactor separately from stabilization. r? libs Fixes rust-lang/rust#121640 and rust-lang/rust#124825.
Merge Apple `std::os` extensions modules into `std::os::darwin` The functionality available on Apple platforms are very similar, and were (basically) duplicated for each platform. This PR rectifies that by merging the code into one module. Ultimately, I've done this to fix `./x build library --target=aarch64-apple-tvos,aarch64-apple-watchos,aarch64-apple-visionos`, as that currently fails because of dead code warnings. Publically exposing these to tvOS/watchOS/visionOS targets is considered in rust-lang/rust#123723, but that seems to be dragging out, and in any case I think it makes sense to do the refactor separately from stabilization. r? libs Fixes rust-lang/rust#121640 and rust-lang/rust#124825.
Make `std::os::darwin` public I'm not sure of the reasoning behind them not being public before, but I think they should be, just like `std::os::ios` and `std::os::macos` are public. Additionally, I've merged their source code, as it was otherwise just a bunch of unnecessary duplication. Ultimately, I've done this PR to fix `./x build library --target=aarch64-apple-tvos,aarch64-apple-watchos,aarch64-apple-visionos`, as that currently fails because of dead code warnings. Since you reviewed rust-lang#121419 r? davidtwco Fixes rust-lang#121640. `@rustbot` label O-tvos O-watchos O-visionos
Make `std::os::darwin` public I'm not sure of the reasoning behind them not being public before, but I think they should be, just like `std::os::ios` and `std::os::macos` are public. Additionally, I've merged their source code, as it was otherwise just a bunch of unnecessary duplication. Ultimately, I've done this PR to fix `./x build library --target=aarch64-apple-tvos,aarch64-apple-watchos,aarch64-apple-visionos`, as that currently fails because of dead code warnings. Since you reviewed rust-lang/rust#121419 r? davidtwco Fixes rust-lang/rust#121640. `@rustbot` label O-tvos O-watchos O-visionos
Make `std::os::darwin` public I'm not sure of the reasoning behind them not being public before, but I think they should be, just like `std::os::ios` and `std::os::macos` are public. Additionally, I've merged their source code, as it was otherwise just a bunch of unnecessary duplication. Ultimately, I've done this PR to fix `./x build library --target=aarch64-apple-tvos,aarch64-apple-watchos,aarch64-apple-visionos`, as that currently fails because of dead code warnings. Since you reviewed rust-lang/rust#121419 r? davidtwco Fixes rust-lang/rust#121640. `@rustbot` label O-tvos O-watchos O-visionos
I tried to build
aarch64-apple-tvos
,x86_64-apple-tvos
,aarch64-apple-tvos-sim
targets.Unfortunately, I got
the following errors:
How to reproduce
According to the docs, the target maintainer is @thomcc
The text was updated successfully, but these errors were encountered: