maximkulkin / esp-homekit-demo

Demo of Apple HomeKit accessory server library
MIT License
809 stars 233 forks source link

MacOS catalina, docker build, "missing binary operator before token "("" #285

Closed flykarlos closed 4 years ago

flykarlos commented 4 years ago

dear all! I am strictly following guide on: https://github.com/maximkulkin/esp-homekit-demo/wiki/Build-instructions-ESP8266-(Docker) I installed newest docker. Created mentioned files with nano. When running command: docker run -it --rm -vpwd:/project -w /project esp-rtos make -C examples/sonoff_basic all

I am getting following set of errors:

MacBook-Pro-Karol-7:esp-homekit-demo karolborys$ docker run -it --rm -vpwd`:/project -w /project esp-rtos make -C examples/sonoff_basic all make: Entering directory '/project/examples/sonoff_basic' CC /opt/esp-open-rtos/open_esplibs/libmain/timers.c In file included from /opt/esp-open-rtos/FreeRTOS/Source/portable/esp8266/xtensa_rtos.h:170:0, from /opt/esp-open-rtos/FreeRTOS/Source/portable/esp8266/portmacro.h:39, from /opt/esp-open-rtos/FreeRTOS/Source/include/portable.h:52, from /opt/esp-open-rtos/FreeRTOS/Source/include/FreeRTOS.h:62, from /opt/esp-open-rtos/include/etstimer.h:23, from /opt/esp-open-rtos/open_esplibs/libmain/timers.c:10: /opt/esp-open-rtos/FreeRTOS/Source/portable/esp8266/xtensa_timer.h:68:24: error: missing binary operator before token "("

if XCHAL_INT_LEVEL(XCHAL_TIMER0_INTERRUPT) <= XCHAL_EXCM_LEVEL

                    ^

/opt/esp-open-rtos/FreeRTOS/Source/portable/esp8266/xtensa_timer.h:75:4: error: #error "There is no suitable timer in this Xtensa configuration."

error "There is no suitable timer in this Xtensa configuration."

^

/opt/esp-open-rtos/FreeRTOS/Source/portable/esp8266/xtensa_timer.h:79:54: error: missing binary operator before token "("

define XT_TIMER_INTNUM XCHAL_TIMER_INTERRUPT(XT_TIMER_INDEX)

                                                  ^

/opt/esp-open-rtos/FreeRTOS/Source/portable/esp8266/xtensa_timer.h:83:5: note: in expansion of macro 'XT_TIMER_INTNUM'

if XT_TIMER_INTNUM == XTHAL_TIMER_UNCONFIGURED

 ^

/opt/esp-open-rtos/FreeRTOS/Source/portable/esp8266/xtensa_timer.h:80:48: error: missing binary operator before token "("

define XT_TIMER_INTPRI XCHAL_INT_LEVEL(XT_TIMER_INTNUM)

                                            ^

/opt/esp-open-rtos/FreeRTOS/Source/portable/esp8266/xtensa_timer.h:85:7: note: in expansion of macro 'XT_TIMER_INTPRI'

elif XT_TIMER_INTPRI > XCHAL_EXCM_LEVEL

   ^

/opt/esp-open-rtos/open_esplibs/component.mk:15: recipe for target 'build/open_esplibs_libmain//timers.o' failed make: *** [build/open_esplibs_libmain//timers.o] Error 1 make: Leaving directory '/project/examples/sonoff_basic'`

is there any fix for this? what I am doing wrong? thanks for help!

flykarlos commented 4 years ago

fixed, there was some problems with docker. Clearing cache and running commands again helped.