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

WSL1 install error #266

Open
ice1000 opened this issue Apr 5, 2020 · 3 comments
Open

WSL1 install error #266

ice1000 opened this issue Apr 5, 2020 · 3 comments
Labels
Installation Issue Problem compiling or running Idris

Comments

@ice1000
Copy link

ice1000 commented Apr 5, 2020

Master version of Idris2, getting this:

Exception: (while loading libcb.so) libcb.so: cannot open shared object file: No such file or directory
chez/chez010: FAILURE
Expected:
"9\nCallback coming\nIn callback\n24\nCallback coming\nIn callback with (1, 2)\n3\n9\n'k'\n1/1: Building CB (CB.idr)\nMain> Main> Bye for now!\n"
Given:
"1/1: Building CB (CB.idr)\nMain> Main> Bye for now!\n"
chez/chez011: success
chez/chez012: success
Exception: (while loading libstruct.so) libstruct.so: cannot open shared object file: No such file or directory
chez/chez013: FAILURE
Expected:
"(40, 30)\n\"Here\": (40, 30)\nMade it!\n1/1: Building Struct (Struct.idr)\nMain> Main> Bye for now!\n"
Given:
"1/1: Building Struct (Struct.idr)\nMain> Main> Bye for now!\n"
chez/chez014: success
200/202 tests successful
Makefile:4: recipe for target 'test' failed
make[1]: *** [test] Error 1
make[1]: Leaving directory '/home/ice1000/git-repos/idris2/tests'
Makefile:123: recipe for target 'test' failed
make: *** [test] Error 2

Where should I obtain libcb.so and libstruct.so? I'm using Chez scheme 9.5

@ice1000 ice1000 added the Installation Issue Problem compiling or running Idris label Apr 5, 2020
@timmyjose
Copy link
Contributor

timmyjose commented Apr 5, 2020

@ice1000

I recall a similar issue for macOS which was fixed in this PR - https://github.com/edwinb/Idris2/pull/210/files.

I'm wondering whether the Makefile is getting confused and producing a dll instead of an so file.

Could you check the output of gcc -dumpmachine? Does the output contains cygwin, mingw, or windows? I suspect it might be showing mingw in which case this would need to be taken care of in the Makefile(s).

I think chez is perfectly innocent here!

@ice1000
Copy link
Author

ice1000 commented Apr 6, 2020

~/git-repos/idris2|master λ> gcc -dumpmachine
x86_64-linux-gnu

@timmyjose

@ice1000
Copy link
Author

ice1000 commented Apr 6, 2020

With the new test suite it becomes

Exception: (while loading libcb.so) libcb.so: cannot open shared object file: No such file or directory
chez/chez010: FAILURE
Golden value differs from actual value.
Accept actual value as new golden value? [yn]
n
chez/chez011: success
chez/chez012: success
Exception: (while loading libstruct.so) libstruct.so: cannot open shared object file: No such file or directory
chez/chez013: FAILURE
Golden value differs from actual value.
Accept actual value as new golden value? [yn]
n
chez/chez014: success
202/204 tests successful
Makefile:5: recipe for target 'test' failed
make[1]: *** [test] Error 1
make[1]: Leaving directory '/home/ice1000/git-repos/idris2/tests'
Makefile:123: recipe for target 'test' failed
make: *** [test] Error 2

It's still erroring but looks nicer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Installation Issue Problem compiling or running Idris
Projects
None yet
Development

No branches or pull requests

2 participants