Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Build] Error occurs while compiling CHIP-TOOL #27833

Closed
Survensa opened this issue Jul 10, 2023 · 1 comment · Fixed by #27839
Closed

[Build] Error occurs while compiling CHIP-TOOL #27833

Survensa opened this issue Jul 10, 2023 · 1 comment · Fixed by #27839
Assignees
Milestone

Comments

@Survensa
Copy link

Survensa commented Jul 10, 2023

Reproduction steps

  1. gn gen out/debug --args='chip_mdns="platform" chip_inet_config_enable_ipv4=false'
  2. ninja -C out/debug

Bug prevalence

Whenever I do this

GitHub hash of the SDK that was being used

488aabf

Platform

raspi

Platform Version(s)

RPI-4, 8GB-RAM variant

Error log :

ninja: Entering directory `out/debug'
[294/1165] c++ obj/BUILD_DIR/gen/src/controller/d...tlv/meta/cluster-tlv-metadata.clusters_meta.cpp.o
FAILED: obj/BUILD_DIR/gen/src/controller/data_model/tlv/meta/cluster-tlv-metadata.clusters_meta.cpp.o
aarch64-linux-gnu-g++ -MMD -MF obj/BUILD_DIR/gen/src/controller/data_model/tlv/meta/cluster-tlv-metadata.clusters_meta.cpp.o.d -O0 -g2 -fno-common -ffunction-sections -fdata-sections -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -Wall -Werror -Wextra -Wshadow -Wunreachable-code -Wvla -Wformat -Wformat-nonliteral -Wformat-security -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-unused-parameter -Wno-cast-function-type -Wno-psabi -Wno-maybe-uninitialized -fdiagnostics-color -fno-strict-aliasing -fmacro-prefix-map=../../= -std=gnu++14 -fno-rtti -Wnon-virtual-dtor -DCHIP_HAVE_CONFIG_H=1 -Igen/src/controller/data_model -I../../src/include -I../../src -Igen/include -I../../zzz_generated/app-common -I../../config/standalone -I../../third_party/nlassert/repo/include -I../../third_party/nlio/repo/include -I../../third_party/nlfaultinjection/repo/include -c gen/src/controller/data_model/tlv/meta/clusters_meta.cpp -o obj/BUILD_DIR/gen/src/controller/data_model/tlv/meta/cluster-tlv-metadata.clusters_meta.cpp.o
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp: In function ‘void __static_initialization_and_destruction_0(int, int)’:
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:861:23: error: statement has no effect [-Werror=unused-value]
  861 | const Entry<ItemInfo> _BasicInformation_ShutDown[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:2197:23: error: statement has no effect [-Werror=unused-value]
 2197 | const Entry<ItemInfo> _TimeSynchronization_DSTTableEmpty[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:2209:23: error: statement has no effect [-Werror=unused-value]
 2209 | const Entry<ItemInfo> _TimeSynchronization_TimeFailure[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:2212:23: error: statement has no effect [-Werror=unused-value]
 2212 | const Entry<ItemInfo> _TimeSynchronization_MissingTrustedTimeSource[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:2306:23: error: statement has no effect [-Werror=unused-value]
 2306 | const Entry<ItemInfo> _BridgedDeviceBasicInformation_ShutDown[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:2309:23: error: statement has no effect [-Werror=unused-value]
 2309 | const Entry<ItemInfo> _BridgedDeviceBasicInformation_Leave[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:3240:23: error: statement has no effect [-Werror=unused-value]
 3240 | const Entry<ItemInfo> _SmokeCoAlarm_SmokeAlarm[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:3243:23: error: statement has no effect [-Werror=unused-value]
 3243 | const Entry<ItemInfo> _SmokeCoAlarm_COAlarm[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:3246:23: error: statement has no effect [-Werror=unused-value]
 3246 | const Entry<ItemInfo> _SmokeCoAlarm_LowBattery[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:3249:23: error: statement has no effect [-Werror=unused-value]
 3249 | const Entry<ItemInfo> _SmokeCoAlarm_HardwareFault[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:3252:23: error: statement has no effect [-Werror=unused-value]
 3252 | const Entry<ItemInfo> _SmokeCoAlarm_EndOfService[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:3255:23: error: statement has no effect [-Werror=unused-value]
 3255 | const Entry<ItemInfo> _SmokeCoAlarm_SelfTestComplete[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:3258:23: error: statement has no effect [-Werror=unused-value]
 3258 | const Entry<ItemInfo> _SmokeCoAlarm_AlarmMuted[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:3261:23: error: statement has no effect [-Werror=unused-value]
 3261 | const Entry<ItemInfo> _SmokeCoAlarm_MuteEnded[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:3264:23: error: statement has no effect [-Werror=unused-value]
 3264 | const Entry<ItemInfo> _SmokeCoAlarm_InterconnectSmokeAlarm[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:3267:23: error: statement has no effect [-Werror=unused-value]
 3267 | const Entry<ItemInfo> _SmokeCoAlarm_InterconnectCOAlarm[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:3270:23: error: statement has no effect [-Werror=unused-value]
 3270 | const Entry<ItemInfo> _SmokeCoAlarm_AllClear[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4694:23: error: statement has no effect [-Werror=unused-value]
 4694 | const Entry<ItemInfo> _PumpConfigurationAndControl_SupplyVoltageLow[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4697:23: error: statement has no effect [-Werror=unused-value]
 4697 | const Entry<ItemInfo> _PumpConfigurationAndControl_SupplyVoltageHigh[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4700:23: error: statement has no effect [-Werror=unused-value]
 4700 | const Entry<ItemInfo> _PumpConfigurationAndControl_PowerMissingPhase[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4703:23: error: statement has no effect [-Werror=unused-value]
 4703 | const Entry<ItemInfo> _PumpConfigurationAndControl_SystemPressureLow[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4706:23: error: statement has no effect [-Werror=unused-value]
 4706 | const Entry<ItemInfo> _PumpConfigurationAndControl_SystemPressureHigh[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4709:23: error: statement has no effect [-Werror=unused-value]
 4709 | const Entry<ItemInfo> _PumpConfigurationAndControl_DryRunning[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4712:23: error: statement has no effect [-Werror=unused-value]
 4712 | const Entry<ItemInfo> _PumpConfigurationAndControl_MotorTemperatureHigh[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4715:23: error: statement has no effect [-Werror=unused-value]
 4715 | const Entry<ItemInfo> _PumpConfigurationAndControl_PumpMotorFatalFailure[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4718:23: error: statement has no effect [-Werror=unused-value]
 4718 | const Entry<ItemInfo> _PumpConfigurationAndControl_ElectronicTemperatureHigh[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4721:23: error: statement has no effect [-Werror=unused-value]
 4721 | const Entry<ItemInfo> _PumpConfigurationAndControl_PumpBlocked[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4724:23: error: statement has no effect [-Werror=unused-value]
 4724 | const Entry<ItemInfo> _PumpConfigurationAndControl_SensorFailure[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4727:23: error: statement has no effect [-Werror=unused-value]
 4727 | const Entry<ItemInfo> _PumpConfigurationAndControl_ElectronicNonFatalFailure[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4730:23: error: statement has no effect [-Werror=unused-value]
 4730 | const Entry<ItemInfo> _PumpConfigurationAndControl_ElectronicFatalFailure[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4733:23: error: statement has no effect [-Werror=unused-value]
 4733 | const Entry<ItemInfo> _PumpConfigurationAndControl_GeneralFault[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4736:23: error: statement has no effect [-Werror=unused-value]
 4736 | const Entry<ItemInfo> _PumpConfigurationAndControl_Leakage[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4739:23: error: statement has no effect [-Werror=unused-value]
 4739 | const Entry<ItemInfo> _PumpConfigurationAndControl_AirDetection[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gen/src/controller/data_model/tlv/meta/clusters_meta.cpp:4742:23: error: statement has no effect [-Werror=unused-value]
 4742 | const Entry<ItemInfo> _PumpConfigurationAndControl_TurbineOperation[] = {
      |                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[299/1165] c++ obj/src/controller/tests/data_model/libDataModelTests.TestRead.cpp.o
ninja: build stopped: subcommand failed.
@Survensa Survensa added bug Something isn't working needs triage labels Jul 10, 2023
@Survensa Survensa changed the title [CHIP-TOOL] Error occurs while compiling CHIP-TOOL [Build] Error occurs while compiling CHIP-TOOL Jul 10, 2023
@vediyappan-hcl
Copy link

I also got the same error. I have included the changes added in "https://github.com/project-chip/connectedhomeip/pull/27839/files", it still shows one active error:

vediyappan@vediyappan-ThinkPad-P15-Gen-1:~/work/matter/new/connectedhomeip$ gn gen out/debug
Done. Made 6858 targets from 342 files in 191ms
vediyappan@vediyappan-ThinkPad-P15-Gen-1:~/work/matter/new/connectedhomeip$ ninja -C out/debug
ninja: Entering directory `out/debug'
[39/1515] c++ obj/src/lib/format/tests/libFormatTests.TestDecoding.cpp.o
**FAILED: obj/src/lib/format/tests/libFormatTests.TestDecoding.cpp.o**
g++ -MMD -MF obj/src/lib/format/tests/libFormatTests.TestDecoding.cpp.o.d -Wconversion -O0 -g2 -fno-common -ffunction-sections -fdata-sections -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -fPIC -Wall -Werror -Wextra -Wshadow -Wunreachable-code -Wvla -Wformat -Wformat-nonliteral -Wformat-security -Wno-deprecated-declarations -Wno-missing-field-initializers -Wno-unknown-warning-option -Wno-unused-parameter -Wno-cast-function-type -Wno-psabi -Wno-maybe-uninitialized -fdiagnostics-color -fno-strict-aliasing -fmacro-prefix-map=../../= -std=gnu++14 -fno-rtti -Wnon-virtual-dtor -DCHIP_HAVE_CONFIG_H=1 -Igen/src/controller/data_model -I../../src/include -I../../src -Igen/include -I../../zzz_generated/app-common -I../../config/standalone -I../../third_party/nlassert/repo/include -I../../third_party/nlio/repo/include -I../../third_party/nlfaultinjection/repo/include -Igen/src/lib/format -I../../third_party/nlunit-test/repo/src -c ../../src/lib/format/tests/TestDecoding.cpp -o obj/src/lib/format/tests/libFormatTests.TestDecoding.cpp.o
../../src/lib/format/tests/TestDecoding.cpp: In function ‘void __static_initialization_and_destruction_0(int, int)’:
../../src/lib/format/tes**ts/TestDecoding.cpp:37:23: error: statement has no effect [-Werror=unused-value]
   37 | const Entry<ItemInfo> _empty_item[0]                 = {};
      |                       ^~~~~~~~~~~
At global scope:
cc1plus: note: unrecognized command-line option ‘-Wno-unknown-warning-option’ may have been intended to silence earlier diagnostics
cc1plus: all warnings being treated as errors
[52/1515] c++ obj/src/lib/support/tests/libSupportTests.TestPersistedCounter.cpp.o
ninja: build stopped: subcommand failed.**
vediyappan@vediyappan-ThinkPad-P15-Gen-1:~/work/matter/new/connectedhomeip$

@woody-apple woody-apple added this to the 1.2 milestone Jul 11, 2023
@woody-apple woody-apple self-assigned this Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Archived in project
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants