-
Notifications
You must be signed in to change notification settings - Fork 77
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
Compilation issue on 0.2.5 #50
Comments
This is interesting. What OS and version of GCC are you using? |
Thanks for quick answer. gcc --version |
gcc 4.9 was released way back in 2015, i highly suggest upgrading if you can. |
Thanks a bunch for the pointer! Which version of gcc would you recommend? |
modern Ubuntu uses 7.3
My Arch Linux install uses 8.2 That said i opened a PR that should fix this issue. If you could test it out i'd appreciate it. Let me know if you have any more issues. |
Downloaded your PR locally and my build works, so it works for me. |
On Debian 8 (jessie) I'm having a compilation issue, see message below, this error doesn't occur if I pin to the previous release 0.2.4.
For info, I use esqlite elixir/sqlitex.
===> Compiling pc
===> Compiling esqlite
===> Compiling /app/deps/esqlite/c_src/esqlite3_nif.c
===> /app/deps/esqlite/c_src/esqlite3_nif.c: In function �make_row�:
/app/deps/esqlite/c_src/esqlite3_nif.c:537:5: error: �for� loop initial declarations are only allowed in C99 or C11 mode
for(int i = 0; i < size; i++)
^
/app/deps/esqlite/c_src/esqlite3_nif.c:537:5: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
/app/deps/esqlite/c_src/esqlite3_nif.c: At top level:
/app/deps/esqlite/c_src/esqlite3_nif.c:107:1: warning: �make_row_tuple� defined but not used [-Wunused-function]
make_row_tuple(ErlNifEnv *env, ERL_NIF_TERM value)
^
Docker images -> https://github.com/areski/excdr-pusher/tree/master/docker
Let me know if I can provide more information to help solving this issue.
Thanks!
The text was updated successfully, but these errors were encountered: