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

Build script fails to execute Kremlin.native #2

Open
fefrei opened this issue Apr 27, 2017 · 2 comments
Open

Build script fails to execute Kremlin.native #2

fefrei opened this issue Apr 27, 2017 · 2 comments

Comments

@fefrei
Copy link

fefrei commented Apr 27, 2017

I'm trying to get Vale to run within the Ubuntu subsystem on Windows 10.

Running scons in the repository eventually results in a call to cd obj/crypto/hashing && /home/felix/vale/tools/Kremlin/Kremlin.native. This fails with Invalid argument, likely because this is a Windows binary:

file ~/vale/tools/Kremlin/Kremlin.native
/home/felix/vale/tools/Kremlin/Kremlin.native: PE32+ executable (console) x86-64, for MS Windows

Renaming Kremline.native to Kremlin.exe results in a file that is executable on Windows, but I'm trying to work in the Ubuntu subsystem.

What's going wrong here? Is Kremline.native supposed to be a Windows binary?

@BarryBo
Copy link

BarryBo commented Apr 27, 2017

Thanks for reporting this. I do much of my development on Bash For Windows, including Vale work.

The checked-in copy of Kremlin, in tools/Kremlin/Kremlin.native is indeed a PE32+ Windows binary. For Ubuntu builds, you'll need to replace it by a Linux binary. The sources are at https://github.com/FStarLang/kremlin, and it is built using OCaml. Or you can grab one from the Docker image at https://hub.docker.com/r/projecteverest/everest/. That image contains the full output of our end-to-end build.

@fefrei
Copy link
Author

fefrei commented Apr 28, 2017

Wonderful, thank you! I got a satisfying scons: done building targets this time.

I'll leave this open in case you want to improve the documentation or error messaging here.

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