You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
| ^~~
: note: built-in 'posix_memalign' declared here
src/glove.c:108:42: 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]
108 | a = posix_memalign((void **)&gradsq, 128, W_size * sizeof(real)); // Might perform better than malloc
| ^~~
: note: built-in 'posix_memalign' declared here
src/glove.c: In function 'glove_thread':
src/glove.c:239:1: warning: control reaches end of non-void function [-Wreturn-type]
239 | }
| ^
gcc -c src/common.c -o build/common.o -lm -pthread -O3 -march=native -funroll-loops -Wall -Wextra -Wpedantic
src/common.c: In function 'log_file_loading_error':
src/common.c:36:39: warning: implicit declaration of function 'strerror_r'; did you mean 'strerror_s'? [-Wimplicit-function-declaration]
36 | #define STRERROR(ERRNO, BUF, BUFSIZE) strerror_r((ERRNO), (BUF), (BUFSIZE))
| ^~~~~~~~~~
src/common.c:151:5: note: in expansion of macro 'STRERROR'
151 | STRERROR(errno, error, MAX_STRING_LENGTH);
|
The text was updated successfully, but these errors were encountered:
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.
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
| ^~~
: note: built-in 'posix_memalign' declared here
src/glove.c:108:42: 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]
108 | a = posix_memalign((void **)&gradsq, 128, W_size * sizeof(real)); // Might perform better than malloc
| ^~~
: note: built-in 'posix_memalign' declared here
src/glove.c: In function 'glove_thread':
src/glove.c:239:1: warning: control reaches end of non-void function [-Wreturn-type]
239 | }
| ^
gcc -c src/common.c -o build/common.o -lm -pthread -O3 -march=native -funroll-loops -Wall -Wextra -Wpedantic
src/common.c: In function 'log_file_loading_error':
src/common.c:36:39: warning: implicit declaration of function 'strerror_r'; did you mean 'strerror_s'? [-Wimplicit-function-declaration]
36 | #define STRERROR(ERRNO, BUF, BUFSIZE) strerror_r((ERRNO), (BUF), (BUFSIZE))
| ^~~~~~~~~~
src/common.c:151:5: note: in expansion of macro 'STRERROR'
151 | STRERROR(errno, error, MAX_STRING_LENGTH);
|
The text was updated successfully, but these errors were encountered: