Hello there!
I’ve been trying to create .mpy file from C module.
To have a start from example I’ve found in src/micropthon/examples/natmod/urandom C module which I tried to make
But it can’t be compiled because of error
I have the same error with other modules in natmod directory
GEN build/urandom_armv7emdp.config.h
CC urandom.c
LINK build/urandom.o
Traceback (most recent call last):
File "../../../tools/mpy_ld.py", line 964, in <module>
main()
File "../../../tools/mpy_ld.py", line 961, in main
do_link(args)
File "../../../tools/mpy_ld.py", line 937, in do_link
load_object_file(env, file)
File "../../../tools/mpy_ld.py", line 595, in load_object_file
if s.data_size == 0:
AttributeError: 'Section' object has no attribute 'data_size'
../../../py/dynruntime.mk:138: recipe for target 'build/urandom_armv7emdp.native.mpy' failed
make: *** [build/urandom_armv7emdp.native.mpy] Error 1
Please explain me how to fix it.