-
Notifications
You must be signed in to change notification settings - Fork 24
Description
I am encountering a compilation error while building the CHIP (Connected Home over IP) SDK for an ARM-based Linux target (specifically, arm-poky-linux-gnueabi). The error occurs during the compilation of ../../src/app/FailSafeContext.cpp. The compiler reports that an unnamed union within chip::DeviceLayer::ChipDeviceEvent does not have a non-static data member named fabricIndex.
Error Message:
FAILED: obj/src/app/libCHIPDataModel.FailSafeContext.cpp.o
| arm-poky-linux-gnueabi-g++ -mthumb -mfpu=neon -mfloat-abi=hard -mcpu=cortex-a7 -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -fmacro-prefix-map=/img/core-image-base/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/python-chip-controller/1.0-r0=/usr/src/debug/python-chip-controller/1.0-r0 -fdebug-prefix-map=/img/core-image-base/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/python-chip-controller/1.0-r0=/usr/src/debug/python-chip-controller/1.0-r0 -fdebug-prefix-map=/img/core-image-base/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/python-chip-controller/1.0-r0/recipe-sysroot= -fdebug-prefix-map=/img/core-image-base/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/python-chip-controller/1.0-r0/recipe-sysroot-native= -Wl,-z,relro,-z,now -fstack-protector-strong -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=/img/core-image-base/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/python-chip-controller/1.0-r0/recipe-sysroot -MMD -MF obj/src/app/libCHIPDataModel.FailSafeContext.cpp.o.d -Wconversion -march=armv7ve -mcpu=cortex-a7 -Os -g0 -fno-common -ffunction-sections -fdata-sections -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -Wall -Wextra -Wshadow -Wunreachable-code -Wvla -Wformat -Wformat-nonliteral -Wformat-security -Wundef -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-unused-parameter -Wno-unused -Wno-cast-function-type -Wno-psabi -Wno-maybe-uninitialized -fdiagnostics-color -fno-strict-aliasing -O3 -fmacro-prefix-map=../../= -I/img/core-image-base/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/python-chip-controller/1.0-r0/recipe-sysroot/usr/include/gio-unix-2.0 -I/img/core-image-base/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/python-chip-controller/1.0-r0/recipe-sysroot/usr/include/libmount -I/img/core-image-base/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/python-chip-controller/1.0-r0/recipe-sysroot/usr/include/blkid -I/img/core-image-base/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/python-chip-controller/1.0-r0/recipe-sysroot/usr/include/glib-2.0 -I/img/core-image-base/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/python-chip-controller/1.0-r0/recipe-sysroot/usr/lib/glib-2.0/include -I/img/core-image-base/tmp/work/cortexa7t2hf-neon-poky-linux-gnueabi/python-chip-controller/1.0-r0/recipe-sysroot/usr/include/libnl3 -std=gnu++17 -frtti -Wnon-virtual-dtor -DNDEBUG -DCHIP_HAVE_CONFIG_H=1 -DCHIP_MINMDNS_USE_EPHEMERAL_UNICAST_PORT=1 -DCHIP_MINMDNS_HIGH_VERBOSITY=0 -DCHIP_MINMDNS_LIBNL_POLICY=1 -I../../src/include -I../../src -Igen/include -I../../config/standalone -I../../zzz_generated/app-common -I../../third_party/nlassert/repo/include -I../../third_party/nlio/repo/include -I../../third_party/nlfaultinjection/include -I../../third_party/inipp/repo/inipp -c ../../src/app/FailSafeContext.cpp -o obj/src/app/libCHIPDataModel.FailSafeContext.cpp.o
| ../../src/app/FailSafeContext.cpp: In member function 'void chip::app::FailSafeContext::ScheduleFailSafeCleanup(chip::FabricIndex, bool, bool)':
| ../../src/app/FailSafeContext.cpp:91:114: error: 'chip::DeviceLayer::ChipDeviceEvent::' has no non-static data member named 'fabricIndex' | 91 | .updateNocCommandHasBeenInvoked = updateNocCommandInvoked } };
Branch:
master
Any insights or guidance on how to resolve this issue for the arm-poky-linux-gnueabi target would be greatly appreciated.