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

Support unpatched cross / add instructions for running custom cross #1035

Open
CraftSpider opened this issue May 13, 2023 · 3 comments
Open

Comments

@CraftSpider
Copy link
Contributor

While debugging my PR, I wanted to try running the cross tests locally. This turns out to be more complicated than using the default cross test, which I figured out after trying to hunt down a 'missing HOST_GID variable' error when running the command. It would be nice if there was at least a nicer error for this case, and either support for unpatched cross, or instructions on how best to run the patched version locally.

@CraftSpider
Copy link
Contributor Author

Update: I got it to work by doing the following:

  • sudo apt-get install qemu-user-static
  • docker run --rm -v $(pwd):/work:rw,Z tectonictypesetting/ttcross:latest
  • rustup override stable
  • ./cross {build, test} --target mips-unknown-linux-gnu --release --all

Would be nice to have this documented in the future, but for anyone else who runs into this issue, those are the necessary steps to run the tests locally.

@pkgw
Copy link
Collaborator

pkgw commented May 16, 2023

Yes, this is another area where the documentation is lacking. It's also been a while since I looked at the infrastructure here; maybe with another look, the custom cross tool could be avoided at this point.

@CraftSpider
Copy link
Contributor Author

Trying to see if we can do this: #1234

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants