Esphome Host fails compilation

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)

More than that is needed for a bare minimum config. For starters, that is not even yaml.

Do you have Xcode command line tools installed?

the esphome: line got cut off in the copy/paste, fixed that.
If I swap host: and mac_address: for esp8266: and board: , it compiles fine. It’s not useful, but it compiles. What else does host: require?

I do, and up to date.