Which version of the esp-idf are you using? I had similar compiler problems including the limited range warning when using the latest and greatest 5.x versions. I reverted to 4.4.4 and compiles seem good. I was compiling micropython as the example (command line driven)- not using your tools for invocation.