mpy-cross/gccollect.c:148:5: error: implicit declaration of function 'mp_unix_mark_exec'

C programming, build, interpreter/VM.
Target audience: MicroPython Developers.
Post Reply
jickster
Posts: 629
Joined: Thu Sep 07, 2017 8:57 pm

mpy-cross/gccollect.c:148:5: error: implicit declaration of function 'mp_unix_mark_exec'

Post by jickster » Mon Nov 06, 2017 4:22 pm

In 1.9.3, buildling mpy-cross with MICROPY_EMIT_NATIVE enabled leads to the error
gccollect.c:148:5: error: implicit declaration of function 'mp_unix_mark_exec' [-Werror=implicit-function-declaration]
In unix/gccollect.c, https://github.com/micropython/micropyt ... fcc46a94d6 there was a #ifndef _WIN32 placed around this call; should the same be placed in mpy-cross/gccollect()?

Related to this question, in 1.9.3 you cannot actually emit native code viewtopic.php?f=3&t=4014#p22992 in mpy-cross so . . . shouldn't the macros be setup in such a way that enabling native emitters in 1.9.3 doesn't actually do anything in mpy-cross?

Post Reply