Two of the functions in "py/nlrthumb.c" with inline assembler have C statements, which are apparently there just to placate GCC. I tried guarding them with
Code: Select all
#if defined(__GNUC__) && !defined(__clang__)
Also, I tried the fix suggested by jiggster to add
Code: Select all
#define MICROPY_NLR_SETJMP 1
My knowledge of what's going on there is not enough to suggest a sensible fix.
OTOH, I found some unofficial packages to install GCC 6 for armv7 in my Termux environment on my Android phone, so now I'm able to compile MicroPython there. But I might still bring up the Clang incompatibility issues on Github.