Here the build error, I checked that the error does not occurs with gcc 12 revert. We are using Ubuntu 18.04 for our build nodes.
src/drivers/bus/i2c/designware.c: In function 'i2c_set_bus_speed':
src/drivers/bus/i2c/designware.c:322:53: error: taking address of packed member of 'struct <anonymous>' may result in an unaligned pointer value [-Werror=address-of-packed-member]
322 | MIN_HS_SCL_HIGHTIME, ®s->hs_scl_hcnt,
| ^~~~~~~~~~~~~~~~~~