Issues building MicroPython 1.20.0 for Windows: no native or viper code emitters in MSVC, MINGW/MSYS2 ? #12333
Replies: 2 comments 1 reply
-
This sounds like alloc.c is missing from the list of source files.
Sounds like this file is missing an include of mpconfig.h |
Beta Was this translation helpful? Give feedback.
-
I've run into a similar issue in the past, documented in #7894 It also links to more older posts. |
Beta Was this translation helpful? Give feedback.
-
Hello, MicroPython World!
I want to build MicroPython for Windows with support for native & viper code emitters. Is it possible? In my case, there were issues with missing
mp_unix_mark_exec
.Building using MS Visual Studio 2013 (or higher)
I built
micropython.exe
with VS2019, but when I try to run a function using@micropython.native
or@micropython.viper
, e.g.:... I get a
SyntaxError: invalid micropython decorator
.If I set
#define MICROPY_EMIT_X64 (1)
inmpconfigport.h
, building the solution with VS2019 fails with:Relevant code:
I tried changing
typedef uintptr_t
totypedef const uintptr_t
, but then build fails with:Then I gave up on MSVC and tried...
Building under MSYS2
Again, I can build MicroPython with MSYS2, except when I set
#define MICROPY_EMIT_X64 (1)
inmpconfigport.h
The Build-Troubleshooting page didn't help.
I noticed
void mp_unix_mark_exec(void);
is declared inports/unix/mpconfigport.h
and implemented inports/unix/alloc.c
... so I'm not sure if those files are not being correctly processed or if there is no support for code emitters on Windows.Could someone clarify this?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions