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

Koka 3.1.2 fails to install/build: 'assert.h' file not found #568

Open
oconnor0 opened this issue Aug 4, 2024 · 2 comments
Open

Koka 3.1.2 fails to install/build: 'assert.h' file not found #568

oconnor0 opened this issue Aug 4, 2024 · 2 comments

Comments

@oconnor0
Copy link
Contributor

oconnor0 commented Aug 4, 2024

On Windows 10, I installed VSCode via scoop install vscode and then installed the official Koka extension. It installed Clang and after installation failed to build. I don't have the exact error, but it's similar to the one below.

Then I uninstalled those, installed Clang via scoop install clang, downloaded and ran curl -sSL -o %tmp%\install-koka.bat https://github.com/koka-lang/koka/releases/latest/download/install.bat && %tmp%\install-koka.bat, and when I ran koka get the following error message:

In file included from c:/Users/me/.koka/v3.1.2/clang-cl-debug-27e583/std_core.c:2:
In file included from c:/Users/me/.koka/v3.1.2/clang-cl-debug-27e583\std_core.h:5:
c:/Users/me/AppData/Local/koka/share/koka/v3.1.2/kklib/include\kklib.h(38,10): fatal error:
      'assert.h' file not found
   38 | #include <assert.h>           // assert
      |          ^~~~~~~~~~
1 error generated.
^
std/core(1, 1): build error: user error (error  : command failed (exit code 1)
@daanx
Copy link
Member

daanx commented Sep 13, 2024

Strange. Not sure what is the cause since clang installed. However, Koka invokes clang-cl on windows and it might use the Windows Universal C runtime -- maybe that is not installed on your system?
https://www.microsoft.com/en-us/download/details.aspx?id=50410

I thought this would be installed by Clang but maybe not.. Let me know if this works (and in that case we should add a check for it in the Koka installer).

@oconnor0
Copy link
Contributor Author

Sorry, I forgot about this, and I don't have as ready access to a Windows box anymore. But on the one I was using, it is Windows 10 so the Windows Universal C Runtime doesn't install. That being only for Windows 8 and older, it seems.

@TimWhiting TimWhiting added this to the Small Release milestone Dec 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants