pycom / pycom-micropython-sigfox

A fork of MicroPython with the ESP32 port customized to run on Pycom's IoT multi-network modules.
MIT License
196 stars 167 forks source link

Compilation errors in latest version #27

Closed avbalen closed 7 years ago

avbalen commented 7 years ago

After cloning the latest version (including pycom-esp-idf) on OS X I get the following compilation error: /Users/avb/Work/Pycom/pycom-esp-idf/components/soc/esp32/include/soc/io_mux_reg.h: In function 'PIN_PULLUP_DIS': /Users/avb/Work/Pycom/pycom-esp-idf/components/esp32/include/esp_assert.h:23:28: error: first argument to 'builtin_choose_expr' not a constant _Static_assert(builtin_choose_expr(__builtin_constant_p(CONDITION), (CONDITION), 1), #MSG); \ ... many similar messages to follow

This is for a LOPY on 868 MHz As earlier versions compiled and worked correctly I think something is broken. Any suggestions how to fix this?

Tnx, Auke

avbalen commented 7 years ago

Followed yahia13's suggestion, see other thread, to install the newer toolchain. All errors automagically disappeared. Still wondering what the root cause was.