Closed lengyijun closed 3 months ago
This looks like it has Daans paths in it. Really weird. This is on the command line? Can you try removing the .koka
build directory and compiling from scratch - (unlikely to help, but worth a try)?
Also can you give a bit more information (which platform - macos/linux/windows), anything custom you have set up, do you have a development environment set up or are you just doing a fresh install / upgrade, are you using docker or something else, etc...
The samples compile with the 3.1.0 compiler for me.
I can reproduce the issue on new ubuntu machines
I install koka by curl instead of vscode
That is so strange that my path is in there.. how can that be? (I guess because I built a binary and the .o files contain debug information about header files). The error is strange too as it works on my ubuntu. Can you try passing the flag --cc=clang
to koka and see if that works?
Ah, I can repro it -- it works with --cc=clang
so it is some problem with gcc; I'll look into it further tomorrow
It is fixed in dev
now -- it was because I built on Ubuntu 18 (so libs are compatible) but that has gcc 7.4 which doesn't have __has_builtin, causing link errors on any system with gcc >= 10 (like Ubuntu 22). I'll push a new release soon :-)