I’m fairly new at esphome, so I may be missing something. I’m setting up an esphome host device for working out my lvgl layout, but I get compilation errors as below. I’m running esphome 2024.12.4 installed via brew on a Macbook; esp8266 and esp32 devices are working fine for me.
I’ve reduced the yaml to the bare minimum and still get the same result:
esphome:
name: testpr
friendly_name: "Test PR"
host:
mac_address: "0c:0d:0e:02:03:05"
Compilation log:
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]
src/esphome/components/host/core.cpp:29:24: error: use of undeclared identifier 'errno'
} while (res != 0 && errno == EINTR);
^
src/esphome/components/host/core.cpp:29:33: error: use of undeclared identifier 'EINTR'
} while (res != 0 && errno == EINTR);
^
src/esphome/components/host/core.cpp:45:24: error: use of undeclared identifier 'errno'
} while (res != 0 && errno == EINTR);
^
src/esphome/components/host/core.cpp:45:33: error: use of undeclared identifier 'EINTR'
} while (res != 0 && errno == EINTR);
^
Compiling .pioenvs/testpr/src/esphome/core/ring_buffer.o
1 warning and 4 errors generated.
*** [.pioenvs/testpr/src/esphome/components/host/core.o] Error 1
warning: unknown warning option '-Wno-unused-but-set-variable'; did you mean '-Wno-unused-const-variable'? [-Wunknown-warning-option]
1 warning generated.
(less interesting parts of the log omitted)