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

Add Windows support for the Makefile #536

Closed
faboweb opened this issue Mar 1, 2018 · 11 comments
Closed

Add Windows support for the Makefile #536

faboweb opened this issue Mar 1, 2018 · 11 comments
Labels

Comments

@faboweb
Copy link
Contributor

faboweb commented Mar 1, 2018

Commit: 9d1b348

  • build does not output .exe files on Windows
  • back tick syntax for executing git rev-parse --short HEAD does not work on Windows
  • rm -rf does not work on Windows
@NodeGuy
Copy link
Contributor

NodeGuy commented Jun 1, 2018

This bug is back:

C:\Users\david\go\src\github.com\cosmos\cosmos-sdk>make get_vendor_deps
process_begin: CreateProcess(NULL, rm -rf vendor/, ...) failed.
make (e=2): The system cannot find the file specified.
make: *** [get_vendor_deps] Error 2

@nylira
Copy link
Contributor

nylira commented Jun 4, 2018

Can be this resolved permanently if we add building the SDK as a CircleCI job?

@faboweb
Copy link
Contributor Author

faboweb commented Jun 4, 2018

Building the SDK should not rely on the CI. Every dev should be able to build the SDK no matter the OS.
This error was actually fixed before but was lost along the way. Windows has no rm command so there needs to be an OS switch for removing the vendor folder. I guess we want rd /s /q "path" on Windows: https://ss64.com/nt/rd.html

@zramsay
Copy link
Contributor

zramsay commented Jun 4, 2018

what happened to Bash for Windows? It came out a couple years go, should be stable by now? Why not require it as a pre-req ?

@rigelrozanski
Copy link
Contributor

rigelrozanski commented Jun 4, 2018

I thought we made the choice not to support windows? >;-)

@zramsay
Copy link
Contributor

zramsay commented Jun 4, 2018

where was that choice documented?, and if it wasn't then it should be added to README that windows isn't supported

@cwgoes
Copy link
Contributor

cwgoes commented Jun 15, 2018

If we want to support Windows, can we add Windows to the CI (that doesn't mean relying on the CI, just using CI to ensure we don't accidentally break Windows builds)?

cc @greg-szabo

@greg-szabo
Copy link
Member

greg-szabo commented Jun 18, 2018

We need to support windows for the sake of the UI. I'm pretty confident that the UI will be used on Windows by a lot of people and the UI is dependent on gaiad. Ergo Windows build is necessary.
I'd propose a build-windows target, instead of trying to make our targets compatible with all OSes. This way you can keep using Linux/OSX commands which we also use during development.

Edit: it might require a parallel target for get_tools and get_vendor_deps too.

@cwgoes
Copy link
Contributor

cwgoes commented Jun 19, 2018

make build_windows sounds good, separate tools targets are fine if necessary, or maybe the existing targets could autodetect the platform. According to the CircleCI FAQ, they do not yet support Windows, so we may need to set up a separate CI provider - unless we can cross-compile for Windows on Linux?

@faboweb
Copy link
Contributor Author

faboweb commented Jun 25, 2018

I think we should have a Windows and Mac (maybe not as everyone is using Macs anyway) environment test on CI to be sure we don't break anything.
Windows CI: https://www.appveyor.com/

@ValarDragon ValarDragon added pre1.0 and removed T:Bug labels Sep 8, 2018
@ValarDragon ValarDragon changed the title MAKE file doesn't work for Windows Add Windows support for the Makefile for Windows Sep 8, 2018
@ValarDragon ValarDragon changed the title Add Windows support for the Makefile for Windows Add Windows support for the Makefile Sep 8, 2018
@jackzampolin
Copy link
Member

We are developing a CI/CD system to build and sign binaries for launch. This will include Windows output. We are tracking that work with the SRE team. Closing this issue.

mmsqe added a commit to mmsqe/cosmos-sdk that referenced this issue Jul 2, 2024
* Problem: redundant mutex for InsertWithGasWanted

cfg of PriorityNonceMempool remains unchanged once assigned, so no lock is required

* make mocks

* cleanup

* keep order of check MaxTx
mmsqe added a commit to mmsqe/cosmos-sdk that referenced this issue Dec 12, 2024
* Problem: redundant mutex for InsertWithGasWanted

cfg of PriorityNonceMempool remains unchanged once assigned, so no lock is required

* make mocks

* cleanup

* keep order of check MaxTx
mmsqe added a commit to mmsqe/cosmos-sdk that referenced this issue Dec 12, 2024
* Problem: redundant mutex for InsertWithGasWanted

cfg of PriorityNonceMempool remains unchanged once assigned, so no lock is required

* make mocks

* cleanup

* keep order of check MaxTx
mmsqe added a commit to mmsqe/cosmos-sdk that referenced this issue Dec 16, 2024
* Problem: redundant mutex for InsertWithGasWanted

cfg of PriorityNonceMempool remains unchanged once assigned, so no lock is required

* make mocks

* cleanup

* keep order of check MaxTx
mmsqe added a commit to mmsqe/cosmos-sdk that referenced this issue Dec 16, 2024
* Problem: redundant mutex for InsertWithGasWanted

cfg of PriorityNonceMempool remains unchanged once assigned, so no lock is required

* make mocks

* cleanup

* keep order of check MaxTx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants