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

usqlite does not compile #3

Closed
tamaslukacs opened this issue Dec 3, 2021 · 1 comment
Closed

usqlite does not compile #3

tamaslukacs opened this issue Dec 3, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@tamaslukacs
Copy link

Hi!
I think there is a problem with the latest edits.. could you please check?
[ 98%] Building C object esp-idf/main/CMakeFiles/idf_main.dir//modules/usqlite/usqlite_vfs.c.obj
/home/ltomi91/Desktop/micro/micropythonrep/micropython/ports/esp32/modules/usqlite/usqlite_file.c: In function 'usqlite_file_exists':
/home/ltomi91/Desktop/micro/micropythonrep/micropython/ports/esp32/modules/usqlite/usqlite_file.c:36:19: error: implicit declaration of function 'mp_module_get'; did you mean 'mp_locals_get'? [-Werror=implicit-function-declaration]
mp_obj_t os = mp_module_get(MP_QSTR_uos);
^~~~~~~~~~~~~
mp_locals_get
/home/ltomi91/Desktop/micro/micropythonrep/micropython/ports/esp32/modules/usqlite/usqlite_file.c:36:19: warning: initialization of 'mp_obj_t' {aka 'void *'} from 'int' makes pointer from integer without a cast [-Wint-conversion]
/home/ltomi91/Desktop/micro/micropythonrep/micropython/ports/esp32/modules/usqlite/usqlite_file.c: In function 'usqlite_file_delete':
/home/ltomi91/Desktop/micro/micropythonrep/micropython/ports/esp32/modules/usqlite/usqlite_file.c:237:38: warning: passing argument 1 of 'usqlite_method' makes pointer from integer without a cast [-Wint-conversion]
mp_obj_t remove = usqlite_method(mp_module_get(MP_QSTR_uos), MP_QSTR_remove);
^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /home/ltomi91/Desktop/micro/micropythonrep/micropython/ports/esp32/modules/usqlite/usqlite.h:35,
from /home/ltomi91/Desktop/micro/micropythonrep/micropython/ports/esp32/modules/usqlite/usqlite_file.c:25:
/home/ltomi91/Desktop/micro/micropythonrep/micropython/ports/esp32/modules/usqlite/usqlite_utils.h:47:48: note: expected 'const mp_obj_module_t *' {aka 'const struct _mp_obj_module_t *'} but argument is of type 'int'
mp_obj_t usqlite_method(const mp_obj_module_t *module, qstr name);
~~~~~~~~~~~~~~~~~~~~~~~^~~~~~
cc1: some warnings being treated as errors
make[3]: *** [esp-idf/main/CMakeFiles/__idf_main.dir/build.make:3431: esp-idf/main/CMakeFiles/idf_main.dir//modules/usqlite/usqlite_file.c.obj] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/ltomi91/Desktop/micro/micropythonrep/micropython/ports/esp32/build-GENERIC'
make[2]: *** [CMakeFiles/Makefile2:4672: esp-idf/main/CMakeFiles/__idf_main.dir/all] Error 2
make[2]: Leaving directory '/home/ltomi91/Desktop/micro/micropythonrep/micropython/ports/esp32/build-GENERIC'
make[1]: *** [Makefile:149: all] Error 2
make[1]: Leaving directory '/home/ltomi91/Desktop/micro/micropythonrep/micropython/ports/esp32/build-GENERIC'
make failed with exit code 2
make: *** [Makefile:34: all] Error 2

@spatialdude spatialdude added the bug Something isn't working label Dec 12, 2021
@spatialdude
Copy link
Owner

Thanks @tamaslukacs I've updated to code work with the latest changes in the MicroPython repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants