-
Notifications
You must be signed in to change notification settings - Fork 409
cannot run binary built for Solaris #150
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
Comments
As the README states there's cross compilation support for Solaris targets but not run / test support.
Other targets have run / test support via QEMU / Wine. Nobody has suggested a way to do the same for Solaris -- QEMU user emulation may not work but QEMU system emulation would probably work. |
Thanks, for clarifying. Got tripped up by that detail I guess. Is it possible to cross-compile rustc and or cargo for Solaris? |
Cross compiling Cargo works for me: $ cross build --target sparcv9-sun-solaris
$ file target/sparcv9-sun-solaris/debug/cargo
target/sparcv9-sun-solaris/debug/cargo: ELF 64-bit MSB executable, SPARC V9, total store ordering, version 1 (SYSV), dynamically linked, interpreter /usr/lib/sparcv9/ld.so.1, with debug_info, not stripped I don't know if you can use Cross to cross compile rustc. rust-lang/rust has its own build system called |
Just FYI, I'm trying to build for |
I haven't cross compiled rustc in a long time but it went like this, iirc: $ # export CC, AR and CXX
$ export CC_arm_unknown_linux_gnueabihf=arm-unknown-linux-gnueabihf-gcc
$ # I want to cross compile a toolchain (rustc) for this host
$ ./configure --host=arm-unknown-linux-gnueabihf
$ # bootstrap the compiler and cross compile rustc
$ # there are ways to do this faster by not bootstraping the compiler but I don't remember them anymore
$ ./x.py x.py is documented here. |
Thank you for pointing that out. I thought I could set WHERE I am building
by hand (by setting the host parameter) ^^
BTW. Thank you so much for all the cross compilation stuff you've already
figured out and the tools you've built, it's been a great help!
2017-11-16 0:54 GMT+01:00 Jorge Aparicio <[email protected]>:
… I haven't cross compiled rustc in a long time but it went like this, iirc:
$ # export CC, AR and CXX
$ export CC_arm_unknown_linux_gnueabihf=arm-unknown-linux-gnueabihf-gcc
$ # I want to cross compile a toolchain (rustc) for this host
$ ./configure --host=arm-unknown-linux-gnueabihf
$ # bootstrap the compiler and cross compile rustc
$ # there are ways to do this faster by not bootstraping the compiler but I don't remember them anymore
$ ./x.py
x.py is documented here
<https://github.com/rust-lang/rust/blob/master/src/bootstrap/README.md>.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#150 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AGoVYhy1lDsGLJyTYVuFlBfwQPKhYK1oks5s23m2gaJpZM4Qa2ru>
.
|
I'm trying to cross-compile a super small test project for Solaris, but
cross
fails withcould not execute process '/target/x86_64-sun-solaris/release/crosstest' (never executed)
.My command:
cross run --release --target=x86_64-sun-solaris -v
on a Ubuntu 17.04 system.I went into the docker container and it's a Ubuntu container so I'm not surprised that the Solaris binary cannot execute.
I'm confused where I went wrong because I saw the PR that added Solaris support.
The text was updated successfully, but these errors were encountered: