Closed muellerj closed 9 years ago
If you need details about the Cygwin environment, please let me know!
What's the output of --version
?
I'll be back at the Windows workstation on Monday to check. The build output says 1.3.0
?
I'm more interested in the target triple.
Sure! This is what I get:
~ [7d|master] ~/bin/hs --version
heatseeker 1.3.0 single-threaded (baa2351) (built 2015-08-28 10:59:36 +0100 for x86_64-pc-windows-gnu)
I wouldn't expect that to work. That's the actual Windows executable, and it needs to talk directly to the Windows API to manipulate the screen. (That's how the Windows console works. It's not a character stream like POSIX terminals are.) You need to build hs for Cygwin.
Sorry if this is a silly question, but how would I tell cargo build
to do so?
I'm not sure. I think you'd have to build your own rustc within Cygwin, or find a binary that somebody else built.
On Mon, Aug 31, 2015 at 12:03 PM, Jonas Müller notifications@github.com wrote:
Sorry if this is a silly question, but how would I tell cargo build to do so?
— Reply to this email directly or view it on GitHub https://github.com/rschmitt/heatseeker/issues/15#issuecomment-136468099.
It's a long shot, but have you tried just using the musl linux build within Cygwin?
On Mon, Aug 31, 2015 at 12:20 PM, Ryan Schmitt rschmitt@pobox.com wrote:
I'm not sure. I think you'd have to build your own rustc within Cygwin, or find a binary that somebody else built.
On Mon, Aug 31, 2015 at 12:03 PM, Jonas Müller notifications@github.com wrote:
Sorry if this is a silly question, but how would I tell cargo build to do so?
— Reply to this email directly or view it on GitHub https://github.com/rschmitt/heatseeker/issues/15#issuecomment-136468099 .
I have not, but I see how that's a problem concerning rust under Cygwin. The official docs say Cygwin ist not officially supported:
0.3 Does it run on Windows? Yes. All development happens in lockstep on all 3 target platforms (using MinGW, not Cygwin).
(from https://doc.rust-lang.org/complement-lang-faq.html)
I'll try around some more and keep this issue up-to-date if I find something, but close this issue for now.
The compile completes just fine, however when I call the resulting binary later, it doesn't see to get the input string I pass it via
STDIN
: