Re: How to add modules like ujson, upip and etc?
Posted: Mon Oct 05, 2020 5:30 am
Update: I found the appropriate version of modujson.c which is compatible with my port of micropython. Now those errors are gone and a new came I think it is related to the implementation of constructor/destructor.
Code: Select all
LINK micropython.elf
/home/abdrehman/src/sifive.com/riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-linux-ubuntu14/bin/../lib/gcc/riscv64-unknown-elf/8.3.0/../../../../riscv64-unknown-elf/bin/ld: build/py/../extmod/modujson.o: in function `mod_ujson_loads':
modujson.c:(.text.mod_ujson_loads+0x28): undefined reference to `mp_type_stringio'
/home/abdrehman/src/sifive.com/riscv64-unknown-elf-gcc-8.3.0-2020.04.0-x86_64-linux-ubuntu14/bin/../lib/gcc/riscv64-unknown-elf/8.3.0/../../../../riscv64-unknown-elf/bin/ld: modujson.c:(.text.mod_ujson_loads+0x2c): undefined reference to `mp_type_stringio'
collect2: error: ld returned 1 exit status
make: *** [Makefile:107: micropython.elf] Error 1