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

Improve pc-windows-gnu support #92

Merged
merged 14 commits into from
Jun 5, 2017

Conversation

malbarbo
Copy link
Contributor

Fixes #65

@malbarbo
Copy link
Contributor Author

Hey @japaric, I gave a try in improving pc-windows-gnu support.

There two question to be solved. First, the produced binaries are not static linked, they depend on some dlls. I think it's possible to produce static linked binaries passing -static -static-libgcc -static-libstdc++ to the linker. Second, the openssl tests passes (in my machine) but there is no build (or source) for openssl... What is going on in this case?

@japaric
Copy link
Contributor

japaric commented Apr 19, 2017

Thanks for the PR @malbarbo! This looks good to me.

First, the produced binaries are not static linked, they depend on some dlls.

We should stick to the default. Not sure if the binaries compiled for mingw on a Windows host produce statically linked binaries but we should do the same.

What is going on in this case?

I have no idea. Perhaps the openssl crate now builds libopenssl on the fly for windows targets? Do you know if cross building Cargo works? i.e. does it link properly and the produced binary actually works on a windows machine? If it does then we can keep things as they are and mark openssl as supported for this target on the README. Otherwise, we simply don't claim openssl support for these targets.

Oh, and could you add the i686-mingw target to the list of supported targets in the README?

@malbarbo
Copy link
Contributor Author

README updated. I do not have access to a windows machine to test if cargo works... I built and run cargo with wine in my machine and it worked fine. I left out openssl support in README. If someone can confirm that it works, then we update it later.

@japaric
Copy link
Contributor

japaric commented Apr 19, 2017

I built and run cargo with wine in my machine and it worked fine.

Thanks for checking.

I left out openssl support in README. If someone can confirm that it works, then we update it later.

Sounds good to me.

@homunkulus r+
cc @nagisa ^ support for the missing i686-mingw

@homunkulus
Copy link
Contributor

📌 Commit 3d3ec4d has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit 3d3ec4d with merge 3d3ec4d...

@malbarbo malbarbo force-pushed the improve-pc-windows branch from 3d3ec4d to ad58c94 Compare April 19, 2017 23:38
@malbarbo
Copy link
Contributor Author

malbarbo commented Apr 19, 2017

@japaric Another try. Add missing mount binfmt_misc before registering wine interpreter.

@malbarbo malbarbo force-pushed the improve-pc-windows branch from ad58c94 to 7f7b5db Compare April 20, 2017 10:15
@japaric
Copy link
Contributor

japaric commented Apr 20, 2017

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit 049447c has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit 049447c with merge 049447c...

@malbarbo
Copy link
Contributor Author

@japaric Sorry for being lazy... Now I have tested docker wine registration process in my machine.

@malbarbo
Copy link
Contributor Author

I will try to reduce the build time.

@japaric
Copy link
Contributor

japaric commented Apr 21, 2017

Sorry for being lazy

Don't be. I know the registration stuff is tricky since it latches so sometimes it seems to be working without having configured anything but actually it may have been configured before by some other program, etc.

I will try to reduce the build time.

Yeah, we need to reduce build time to fit the 50 mins time limit or this can't land.

@malbarbo
Copy link
Contributor Author

@japaric Ready for another try.

@japaric
Copy link
Contributor

japaric commented Apr 29, 2017

@malbarbo Sorry for the delay! Let's try again.

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit 09cb7be has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit 09cb7be with merge 09cb7be...

@homunkulus
Copy link
Contributor

💔 Test failed - status-travis

@malbarbo malbarbo force-pushed the improve-pc-windows branch from 09cb7be to 7ddfddd Compare April 29, 2017 21:32
@malbarbo
Copy link
Contributor Author

x86_64 seems to be llvm 4 related, see rust-lang/rust#41630. Unset DYLIB, compiler-builtins does pass anyway. Try to improve i686 built time. Maybe we can build another crate, cargo takes too long.

@malbarbo
Copy link
Contributor Author

Let's give it another try?

@japaric
Copy link
Contributor

japaric commented May 17, 2017

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit 7ddfddd has been approved by japaric

@homunkulus
Copy link
Contributor

🔒 Merge conflict

@homunkulus
Copy link
Contributor

☔ The latest upstream changes (presumably #96) made this pull request unmergeable. Please resolve the merge conflicts.

@homunkulus
Copy link
Contributor

📌 Commit 1c94fc7 has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit 1c94fc7 with merge 1c94fc7...

@homunkulus
Copy link
Contributor

💔 Test failed - status-travis

@homunkulus
Copy link
Contributor

☔ The latest upstream changes (presumably #98) made this pull request unmergeable. Please resolve the merge conflicts.

@malbarbo
Copy link
Contributor Author

malbarbo commented Jun 2, 2017

Can we try again?

@japaric
Copy link
Contributor

japaric commented Jun 2, 2017

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit 3c68814 has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit 3c68814 with merge 3c68814...

@homunkulus
Copy link
Contributor

💔 Test failed - status-travis

@malbarbo
Copy link
Contributor Author

malbarbo commented Jun 2, 2017

I do not want to give up... Can we try again?

@japaric
Copy link
Contributor

japaric commented Jun 3, 2017

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit 068a819 has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit 068a819 with merge 068a819...

@homunkulus
Copy link
Contributor

💔 Test failed - status-travis

@malbarbo
Copy link
Contributor Author

malbarbo commented Jun 5, 2017

We are not building openssl on *-pc_windows-gnu, so disable testing it. This should allows i686-pc-windows-gnu build on time.

rust-lang/cargo#4126 has landed, so we are ready to try again...

@japaric
Copy link
Contributor

japaric commented Jun 5, 2017

@homunkulus r+

@homunkulus
Copy link
Contributor

📌 Commit 68c0bc1 has been approved by japaric

@homunkulus
Copy link
Contributor

⌛ Testing commit 68c0bc1 with merge 68c0bc1...

@homunkulus
Copy link
Contributor

☀️ Test successful - status-travis
Approved by: japaric
Pushing 68c0bc1 to master...

@homunkulus homunkulus merged commit 68c0bc1 into cross-rs:master Jun 5, 2017
@malbarbo malbarbo deleted the improve-pc-windows branch October 20, 2017 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants