-
Notifications
You must be signed in to change notification settings - Fork 382
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
Can't cross-compile to some targets anymore #306
Comments
What I believe is happening here is that cross sometimes didn't even need to pull the images, but now there is an error check way earlier that errors out, despite there not being a need for the image. |
Weirdly enough I have yet to figure out the exact pattern for this. Because somehow cross can still cross-compile to wasm32-unknown-unknown even though there is no docker image. But for others it can't? |
Yeah, |
So how do I work around this? Clearly not all linux targets need docker (or something?) but the error appears anyway due to |
There's no workaround, but this is definitely a bug which needs to be fixed. |
I believe this is maybe because I'm cross compiling as static and shared libraries, so maybe the actual specific linker for the platform (and thus the whole docker image) isn't necessary? |
Which targets apart from |
I'm currently doing a clean CI run atm (there were other issues mixed in in my previous run, such as Travis CI having spurious timeouts and some other compilation bug I caused). I'll respond with a full list of targets that are now rejected soon. |
Alright so here are all the failures: https://travis-ci.org/LiveSplit/livesplit-core/builds/581619442
Interestingly wasm32-unknown-emscripten actually got fixed by the latest cross. |
+1 we are hitting the same issue with: https://travis-ci.org/awslabs/flowgger/builds/581609924 i686-unknown-freebsd (Unable to find image) |
I'm not sure a For the other images which are missing: These were disabled because they don't build anymore and no-one has bothered to fix them. So you can either drop support for them too or send a PR to fix them. |
Yeah that's why I was saying that I don't think I even need the proper linkers and thus docker images to build for these targets as I only build static and shared libraries (which maybe cargo doesn't need a linker for?). I'm not entirely sure. But it definitely worked before. Pretty sure the asmjs target should work if the wasm32-emscripten one does. So I bet that's just a matter of activating it on cross' side again. I'm fine with dropping the armv5te target, not sure about the freebsd ones, but I could temporarily drop them too. |
Facing similar issue. Failing to compile for following targets.
The debug information/log is available at https://travis-ci.org/vishaltelangre/ff/builds/581675207 for these targets. |
…ed by 'rust-embedded/cross' Reference: cross-rs/cross#306 (comment)
The README still lists them: https://github.com/rust-embedded/cross/blob/master/README.md We are dropping the freebsd targets too |
@reitermarkus Do you know what supposedly is wrong with asmjs-unknown-emscripten? Cause I can't think of a reason why it should be disabled. |
It was disabled in #231, probably because of https://travis-ci.org/rust-embedded/cross/builds/455974395. |
Yes, but the intention with #230 was to enable them again. And considering the wasm one works again and is part of 0.1.15, the asmjs one should work just fine. I assume you thought the PR was only for wasm or something, so only wasm was enabled again, despite asmjs likely working as well again since the PR is for both. |
Yep, and no one has bothered to to that as of yet.
The |
Is there a plan for a 0.1.16 soon (or I guess 0.1.15.1 if that's a thing) with the fixes? (asmjs missing, ppc64le test runner broken, too new qemu for some tests, incompatibility with GitHub Actions, ...) |
This is no longer supported by the cross project. See cross-rs/cross#306 for discussion.
Apparently the Rust Cross project doesn't support FreeBSD anymore: cross-rs/cross#274 cross-rs/cross#306
This might be more of a question, but some of the targets that I've successfully been cross-compiling to with cross / trust on CI are now erroring like this:
These have always worked before though, so is this a regression?
The text was updated successfully, but these errors were encountered: