-
Notifications
You must be signed in to change notification settings - Fork 58
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
Can't build network library on Windows #78
Comments
@zenntenn I saw on slack you have a fix for that? Could you give me some precisions on the environment needed on windows to compile Idris2? I have a Windows VM but did not yet spend the time to configure it properly... |
@zenntenn |
@abailly I got passed this issue, sort of, but I'm still not able to compile test.c. When skipping it I can run idris2, but when I do the install for the libraries it's failing, as well as some of the (non-network) tests are failing for reasons I don't entirely understand. I have a branch on my repo for what I'm working on right here: https://github.com/zenntenn/Idris2/tree/MyConfigs-DontMerge It has some configs unique to my machine in there, as I don't really want to make a proper branch for PR purposes until I actually get it working on my machine. |
@melted adding that to test.c does move things forward a bit #ifndef _WIN32
#include <netinet/in.h>
#include <arpa/inet.h>
#else
#include <winsock2.h>
#include <Ws2tcpip.h>
#endif but still fails later
|
Using this as a guide, I tried running |
@arabelladonna I now have access to a windows machine, I will give it a try this week-end and see if I can fix that. Do you have the same error than the one reported by @zenntenn ? |
Sorry for the late response. Here's the exact output:
|
@arabelladonna Seems like your error is different than the one reported by @zenntenn : Linker fails while building idris2 itself from the Idris1 C RTS sources, not when trying to build the idris2 network library. |
Yeah, I had said in my original post that it was failing during linking due to |
The thing is that's 2 different situations because there are 2 different |
Using Idris 1.3.2, and msys64, on Windows 10.
I was able to resolve the issues in https://github.com/edwinb/Idris2/issues/41, but now I'm getting stuck on the
make network
step, after completingmake idris2
,make prelude
andmake base
.Note: I do have netinet\in.h in my path, it's the first path entry even just to be sure.
Also, I added the -lws2_32 switch myself. Without it it fails earlier, with this error:
The text was updated successfully, but these errors were encountered: