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

chez/chez014 test fails #860

Open
kozross opened this issue Dec 18, 2020 · 13 comments
Open

chez/chez014 test fails #860

kozross opened this issue Dec 18, 2020 · 13 comments
Labels
Installation Issue Problem compiling or running Idris status: info needed

Comments

@kozross
Copy link

kozross commented Dec 18, 2020

When I build (bootstrap from Chez), I get this:

chez/chez014: FAILURE
Expected:
Received: hello world!
Received: echo: hello world!
1/1: Building Echo (Echo.idr)
Main> Main> Bye for now!

Given:
[server] Failed to bind socket with error: 99
1/1: Building Echo (Echo.idr)
Main> Main> Bye for now!
@kozross kozross added the Installation Issue Problem compiling or running Idris label Dec 18, 2020
@gallais
Copy link
Member

gallais commented Dec 18, 2020

Are you using arch by any chance?
It looks like the libs are built out of order leading to this issue.

@kozross
Copy link
Author

kozross commented Dec 19, 2020

Yes, I am, but this doesn't just affect the AUR package. I got this same error when I cloned from Github and followed the instructions.

@kozross
Copy link
Author

kozross commented Jan 10, 2021

I've provided what additional info I thought necessary to move this along. Is there more I can provide so that this could be resolved, @gallais ?

@gallais
Copy link
Member

gallais commented Jan 10, 2021

Ah, I hadn't noticed you were the one who had posted the upstream issue. 😅
I know next to nothing about the network code so it's probably better if
someone more knowledgeable steps in.

@kozross
Copy link
Author

kozross commented Jan 19, 2021

I can confirm this issue is still present on 0.3.0.

@ShinKage
Copy link
Contributor

I don't know much about the network code, but the error is raised when the test code tries to bind a new socket on localhost:0 (which should mean a free port on localhost). Can you check if it is indeed possible to do so in your system?

@kozross
Copy link
Author

kozross commented Jan 19, 2021

@ShinKage Not a network expert - how would I check this?

@ShinKage
Copy link
Contributor

ShinKage commented Feb 1, 2021

@kozross Sorry, I must have involuntarily skipped the notification. I'm very far from a network expert myself but you can try to directly call the C primitives, simplifying all the checks done in the support library, in particular you can take a look at the two functions called by the test here and here. They will probably fail again, but maybe you can get more helpful error descriptions since the Idris2 support code does not propagate the exact error number.

@kozross
Copy link
Author

kozross commented Feb 1, 2021

99 is EADDRNOTAVAIL. What port is the server trying to start on in the test code?

@gallais
Copy link
Member

gallais commented Feb 1, 2021

Looks like 0

@kozross
Copy link
Author

kozross commented Feb 2, 2021

Binding to port 0 is not allowed, I'm pretty sure.

@gallais
Copy link
Member

gallais commented Feb 2, 2021

From what I gather 0 means "just give me any port you like".

@kozross
Copy link
Author

kozross commented Feb 2, 2021

Either way, this is extremely flaky.

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 status: info needed
Projects
None yet
Development

No branches or pull requests

3 participants