Pixhawk6X ChibiOS Compile Faillure

Hi all,

I am unable to compile ArduPilot for the Pixhawk 6X as I always get this error during the compilation of ChibiOS:

[32/116] ChibiOS: Compiling hal_eicu_lld.c
[33/116] ChibiOS: Compiling hal_gpt_lld.c

../../modules/ChibiOS/os/hal/ports/STM32/LLD/MACv2/hal_mac_lld.c: In function 'mac_lld_init':
../../modules/ChibiOS/os/hal/ports/STM32/LLD/MACv2/hal_mac_lld.c:282:16: error: the comparison will always evaluate as 'false' for the address of '__eth_rb' will never be NULL [-Werror=address]
  282 |   if (__eth_rb == NULL || __eth_tb == NULL || __eth_rd == NULL || __eth_td == NULL) {
      |                ^~
../../modules/ChibiOS/os/hal/ports/STM32/LLD/MACv2/hal_mac_lld.c:130:18: note: '__eth_rb' declared here
  130 | extern uint32_t *__eth_rb[STM32_MAC_RECEIVE_BUFFERS];
      |                  ^~~~~~~~
../../modules/ChibiOS/os/hal/ports/STM32/LLD/MACv2/hal_mac_lld.c:282:36: error: the comparison will always evaluate as 'false' for the address of '__eth_tb' will never be NULL [-Werror=address]
  282 |   if (__eth_rb == NULL || __eth_tb == NULL || __eth_rd == NULL || __eth_td == NULL) {
      |                                    ^~
../../modules/ChibiOS/os/hal/ports/STM32/LLD/MACv2/hal_mac_lld.c:131:18: note: '__eth_tb' declared here
  131 | extern uint32_t *__eth_tb[STM32_MAC_TRANSMIT_BUFFERS];
      |                  ^~~~~~~~
cc1: all warnings being treated as errors
make: *** [modules/ChibiOS/obj/hal_mac_lld.o] Error 1
make: *** Waiting for unfinished jobs....

Waf: Leaving directory `/Users/afonsovale/Documents/ardupilot/build/Pixhawk6X'

I am able to compile for the CubeOrange for example without any issues. Any ideas? I’m running on an Apple Silicon machine if that might be related.