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

How to build elan on windows #44

Open
lovettchris opened this issue Oct 8, 2021 · 2 comments
Open

How to build elan on windows #44

lovettchris opened this issue Oct 8, 2021 · 2 comments

Comments

@lovettchris
Copy link
Contributor

I figured out that I needed a windows friendly version of perl from https://strawberryperl.com/ because the one in "c:\Program Files\Git\usr\bin\perl.exe" doesn't work for some reason. So the openssl configure steps now works.

But the build still fails with this:

error: failed to run custom build command for `elan-dist v1.11.0 (D:\git\leanprover\elan\src\elan-dist)`

Caused by:
  process didn't exit successfully: `d:\git\leanprover\elan\target\debug\build\elan-dist-6a05c90498e27db7\build-script-build` (exit code: 101)
  --- stderr
  thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: NotPresent', src\elan-dist\build.rs:8:50
  note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: build failed

Possibly because these environment variables are not defined?

    let out_dir = PathBuf::from(env::var_os("OUT_DIR").unwrap());
    let target = env::var("RELEASE_TARGET_NAME").unwrap();

If so, what should these be set to and why do I need to set them, and we need a readme to explain what to set them to, etc.

@Kha
Copy link
Member

Kha commented Oct 9, 2021

The error should be fixed by 8d1dec0. For openssl, we could link to sfackler/rust-openssl#1062 (comment). I didn't try it though.

@lovettchris
Copy link
Contributor Author

I tried the vcpkg route to build openssl but it doesn't solve the problem.

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