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

I can't build and run this on Windows #3

Open
lovettchris opened this issue Aug 19, 2022 · 2 comments
Open

I can't build and run this on Windows #3

lovettchris opened this issue Aug 19, 2022 · 2 comments

Comments

@lovettchris
Copy link

Is this a cmark, lean or lake problem?

lake build
error: failed to execute `cc`: no such file or directory (error code: 2)

I can built it iusing msys2, and I get libleancmark.dll but then the binaries don't work on windows either...

#eval main ["README.md"]

results in a crash in the lean --server saying:

libc++abi: terminating with uncaught exception of type lean::exception: could not find native implementation of external declaration 'CMark.renderHtml' (symbols 'l_CMark_renderHtml___boxed' or 'l_CMark_renderHtml')
@xubaiw
Copy link
Owner

xubaiw commented Aug 23, 2022

@lovettchris
For the first problem, it's that cc (clang) is not installed on your machine.
The second one arises as that the native part is statically linked, which makes interactive #eval impossible.

Maybe reimplment a parser with pure Lean can be a better idea than fixing this. I'll take some time to do it in my spare time this week.

@lovettchris
Copy link
Author

See related discussion with Mac in Zulip.

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