GloVe
GloVe copied to clipboard
GloVe running command 'make' is error
I use the 'make' to build the GloVe, but It's error.
src/glove.c: In function 'initialize_parameters':
src/glove.c:103:9: warning: implicit declaration of function 'posix_memalign' [-Wimplicit-function-declaration]
103 | a = posix_memalign((void **)&W, 128, W_size * sizeof(real)); // Might perform better than malloc
| ^~~~~~~~~~~~~~
src/glove.c:103:37: warning: 'posix_memalign' argument 2 type is 'int' where 'long long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
103 | a = posix_memalign((void **)&W, 128, W_size * sizeof(real)); // Might perform better than malloc
| ^~~
Is this on Windows or something? It builds cleanly for me even with -Wall set on centos stream, probably on other linux builds as well.
I run it on my Windows, I think the error maybe is produce by the wrong version of gcc. I try to change its version, but always error and stop.
Going forward, please be in the habit of specifying your system and build environment to make it easier to respond...
However, I have to say that there hasn't been much effort put into making GloVe compatible with Windows. I know that you'll need something that includes and links posix. If you find such a thing, and you're able to make a PR that lets it build on both Linux and Windows, we would be more than happy to accept such as PR.
Since me no able to make the PR file, So I try to build a virtual system on my windows, And now not finish. Thanks your advice.
I am having the same problem on windows 11, any fixed?
I am having the same problem on windows 11, any fixed?
After I found this problem, I didn't get any solution. But I try to run it on my Linux system(ubuntu), It was successed. I think the reason is due the GCC core in Windows and Linux are different. If you want to run it. I recommand you create a virtual machine on your pc and try to run it inside again.
ah makes sense, i will try it thanks a lot .