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

[python] Fix Python device library build #20043

Merged
merged 2 commits into from
Jun 28, 2022

Conversation

agners
Copy link
Contributor

@agners agners commented Jun 28, 2022

Problem

Trying to compile Python device library fails with:

$ scripts/build_python_device.sh
...
../../src/controller/python/chip/server/ServerInit.cpp: In function ‘void pychip_server_native_init()’:
../../src/controller/python/chip/server/ServerInit.cpp:171:14: error: unused variable ‘securePort’ [-Werror=unused-variable]
  171 |     uint16_t securePort   = CHIP_PORT;                       
      |              ^~~~~~~~~~                                                                                                                                
../../src/controller/python/chip/server/ServerInit.cpp:172:14: error: unused variable ‘unsecurePort’ [-Werror=unused-variable]
  172 |     uint16_t unsecurePort = CHIP_UDC_PORT;                                                                                                             
      |

Also, there is a gn warning:

WARNING at the command-line "--args":1:103: Build argument has no effect.                                                                                                                                                                                                                                                     
chip_detail_logging=false enable_pylib=false enable_rtti=false chip_use_clusters_for_ip_commissioning=true  chip_controller=false chip_data_model="///examples/lighting-app/lighting-common"

Change overview

Remove unused variables and drop non-existing build argument chip_use_clusters_for_ip_commissioning.

Testing

Compiled locally.

agners added 2 commits June 28, 2022 17:03
It has been removed from build_python.sh already a while ago in
3a46649.
@agners agners changed the title Fix python device build [python] Fix Python device library build Jun 28, 2022
@andy31415
Copy link
Contributor

Flag for using clusters for ip commissioning seems to be gone since 3a46649

@github-actions
Copy link

github-actions bot commented Jun 28, 2022

PR #20043: Size comparison from 6e6892a to 7726aed

Increases (1 build for nrfconnect)
platform target config section 6e6892a8 7726aed change % change
nrfconnect all-clusters-app nrf52840dk_nrf52840 text 809716 809720 4 0.0
Decreases (1 build for telink)
platform target config section 6e6892a8 7726aed change % change
telink light-switch-app tlsr9518adk80d text 564548 564546 -2 -0.0
Full report (41 builds for cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section 6e6892a8 7726aed change % change
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 664907 664907 0 0.0
(read/write) 188076 188076 0 0.0
.bss 75876 75876 0 0.0
.data 3356 3356 0 0.0
.rodata 87891 87891 0 0.0
.text 576700 576700 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 653639 653639 0 0.0
(read/write) 198640 198640 0 0.0
.bss 75172 75172 0 0.0
.data 3356 3356 0 0.0
.rodata 91359 91359 0 0.0
.text 561964 561964 0 0.0
lock-ftd LP_CC2652R7 (read only) 667447 667447 0 0.0
(read/write) 175680 175680 0 0.0
.bss 72908 72908 0 0.0
.data 3280 3280 0 0.0
.rodata 75983 75983 0 0.0
.text 590984 590984 0 0.0
lock-mtd LP_CC2652R7 (read only) 616855 616855 0 0.0
(read/write) 146024 146024 0 0.0
.bss 68628 68628 0 0.0
.data 3280 3280 0 0.0
.rodata 75863 75863 0 0.0
.text 540504 540504 0 0.0
pump-app LP_CC2652R7 (read only) 677007 677007 0 0.0
(read/write) 166976 166976 0 0.0
.bss 72996 72996 0 0.0
.data 3280 3280 0 0.0
.rodata 88367 88367 0 0.0
.text 588156 588156 0 0.0
pump-controller-app LP_CC2652R7 (read only) 662919 662919 0 0.0
(read/write) 181184 181184 0 0.0
.bss 73116 73116 0 0.0
.data 3276 3276 0 0.0
.rodata 84215 84215 0 0.0
.text 578224 578224 0 0.0
shell LP_CC2652R7 (read only) 657362 657362 0 0.0
(read/write) 191124 191124 0 0.0
.bss 78180 78180 0 0.0
.data 3360 3360 0 0.0
.rodata 84650 84650 0 0.0
.text 572396 572396 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 580446 580446 0 0.0
.app_xip_area 457456 457456 0 0.0
.bss 65952 65952 0 0.0
.data 716 716 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 582014 582014 0 0.0
.app_xip_area 458832 458832 0 0.0
.bss 66144 66144 0 0.0
.data 720 720 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 583494 583494 0 0.0
.app_xip_area 461352 461352 0 0.0
.bss 65160 65160 0 0.0
.data 660 660 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1081380 1081380 0 0.0
.bss 134756 134756 0 0.0
.data 2048 2048 0 0.0
.text 944556 944556 0 0.0
BRD4161A+rpc (read/write) 1135668 1135668 0 0.0
.bss 151444 151444 0 0.0
.data 2260 2260 0 0.0
.text 981944 981944 0 0.0
BRD4161A+rs911x (read/write) 943880 943880 0 0.0
.bss 140472 140472 0 0.0
.data 2048 2048 0 0.0
.text 801340 801340 0 0.0
lock-app BRD4161A+wf200 (read/write) 1121040 1121040 0 0.0
.bss 140920 140920 0 0.0
.data 2060 2060 0 0.0
.text 978040 978040 0 0.0
window-app BRD4161A (read/write) 1066660 1066660 0 0.0
.bss 134836 134836 0 0.0
.data 2076 2076 0 0.0
.text 929724 929724 0 0.0
esp32 all-clusters-app c3devkit (read only) 1018292 1018292 0 0.0
(read/write) 1486610 1486610 0 0.0
.dram0.bss 71864 71864 0 0.0
.dram0.data 14624 14624 0 0.0
.flash.rodata 214688 214688 0 0.0
.flash.text 1018292 1018292 0 0.0
.iram0.text 62902 62902 0 0.0
m5stack (read only) 1072459 1072459 0 0.0
(read/write) 488696 488696 0 0.0
.dram0.bss 77384 77384 0 0.0
.dram0.data 34144 34144 0 0.0
.flash.rodata 245172 245172 0 0.0
.flash.text 1067075 1067075 0 0.0
.iram0.text 123267 123267 0 0.0
k32w light k32w061+release (read/write) 659688 659688 0 0.0
.bss 71276 71276 0 0.0
.data 1992 1992 0 0.0
.text 580620 580620 0 0.0
lock k32w061+release (read/write) 685944 685944 0 0.0
.bss 71748 71748 0 0.0
.data 2004 2004 0 0.0
.text 606392 606392 0 0.0
linux all-clusters-app debug (read only) 2952905 2952905 0 0.0
(read/write) 178136 178136 0 0.0
.bss 84960 84960 0 0.0
.data 2048 2048 0 0.0
.data.rel.ro 84936 84936 0 0.0
.dynamic 608 608 0 0.0
.got 4536 4536 0 0.0
.init 27 27 0 0.0
.init_array 1040 1040 0 0.0
.rodata 263005 263005 0 0.0
.text 2512834 2512834 0 0.0
all-clusters-minimal-app debug (read only) 2807017 2807017 0 0.0
(read/write) 170072 170072 0 0.0
.bss 84288 84288 0 0.0
.data 2048 2048 0 0.0
.data.rel.ro 77576 77576 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 1040 1040 0 0.0
.rodata 264669 264669 0 0.0
.text 2367458 2367458 0 0.0
bridge-app debug+rpc (read only) 2310481 2310481 0 0.0
(read/write) 148896 148896 0 0.0
.bss 72352 72352 0 0.0
.data 3824 3824 0 0.0
.data.rel.ro 66952 66952 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 728 728 0 0.0
.rodata 197600 197600 0 0.0
.text 1951266 1951266 0 0.0
chip-tool debug (read only) 10169573 10169573 0 0.0
(read/write) 610824 610824 0 0.0
.bss 24384 24384 0 0.0
.data 1088 1088 0 0.0
.data.rel.ro 579056 579056 0 0.0
.dynamic 624 624 0 0.0
.got 5016 5016 0 0.0
.init 27 27 0 0.0
.init_array 640 640 0 0.0
.rodata 509029 509029 0 0.0
.text 8251813 8251813 0 0.0
chip-tool-no-interactive-ipv6only arm64 (read only) 9902724 9902724 0 0.0
(read/write) 675665 675665 0 0.0
.bss 42625 42625 0 0.0
.data 1152 1152 0 0.0
.data.rel.ro 614640 614640 0 0.0
.dynamic 528 528 0 0.0
.got 13440 13440 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 472148 472148 0 0.0
.text 7890980 7890980 0 0.0
lighting-app debug+rpc (read only) 2547001 2547001 0 0.0
(read/write) 152952 152952 0 0.0
.bss 72896 72896 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 72088 72088 0 0.0
.dynamic 608 608 0 0.0
.got 4424 4424 0 0.0
.init 27 27 0 0.0
.init_array 816 816 0 0.0
.rodata 213416 213416 0 0.0
.text 2163378 2163378 0 0.0
lock-app debug (read only) 2508233 2508233 0 0.0
(read/write) 147896 147896 0 0.0
.bss 71264 71264 0 0.0
.data 1712 1712 0 0.0
.data.rel.ro 69064 69064 0 0.0
.dynamic 608 608 0 0.0
.got 4424 4424 0 0.0
.init 27 27 0 0.0
.init_array 784 784 0 0.0
.rodata 228104 228104 0 0.0
.text 2115106 2115106 0 0.0
ota-provider-app debug (read only) 2317401 2317401 0 0.0
(read/write) 141736 141736 0 0.0
.bss 70944 70944 0 0.0
.data 1944 1944 0 0.0
.data.rel.ro 63064 63064 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 672 672 0 0.0
.rodata 203224 203224 0 0.0
.text 1951522 1951522 0 0.0
ota-requestor-app debug (read only) 2434521 2434521 0 0.0
(read/write) 148608 148608 0 0.0
.bss 73280 73280 0 0.0
.data 2232 2232 0 0.0
.data.rel.ro 67240 67240 0 0.0
.dynamic 608 608 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 728 728 0 0.0
.rodata 207232 207232 0 0.0
.text 2056258 2056258 0 0.0
shell debug (read only) 2542665 2542665 0 0.0
(read/write) 164488 164488 0 0.0
.bss 80904 80904 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 76672 76672 0 0.0
.dynamic 608 608 0 0.0
.got 4096 4096 0 0.0
.init 27 27 0 0.0
.init_array 920 920 0 0.0
.rodata 227122 227122 0 0.0
.text 2159250 2159250 0 0.0
thermostat-no-ble arm64 (read only) 2590428 2590428 0 0.0
(read/write) 181761 181761 0 0.0
.bss 88705 88705 0 0.0
.data 1704 1704 0 0.0
.data.rel.ro 83256 83256 0 0.0
.dynamic 528 528 0 0.0
.got 5072 5072 0 0.0
.init 24 24 0 0.0
.init_array 400 400 0 0.0
.rodata 165004 165004 0 0.0
.text 2185696 2185696 0 0.0
tv-app debug (read only) 3096529 3096529 0 0.0
(read/write) 279240 279240 0 0.0
.bss 188648 188648 0 0.0
.data 4848 4848 0 0.0
.data.rel.ro 79312 79312 0 0.0
.dynamic 608 608 0 0.0
.got 4848 4848 0 0.0
.init 27 27 0 0.0
.init_array 952 952 0 0.0
.rodata 248768 248768 0 0.0
.text 2660002 2660002 0 0.0
tv-casting-app debug (read only) 5554449 5554449 0 0.0
(read/write) 185136 185136 0 0.0
.bss 73704 73704 0 0.0
.data 2416 2416 0 0.0
.data.rel.ro 102776 102776 0 0.0
.dynamic 608 608 0 0.0
.got 4720 4720 0 0.0
.init 27 27 0 0.0
.init_array 864 864 0 0.0
.rodata 343049 343049 0 0.0
.text 4934594 4934594 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2446672 2446672 0 0.0
.bss 215716 215716 0 0.0
.data 5872 5872 0 0.0
.text 1409316 1409316 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1174595 1174595 0 0.0
bss 144650 144650 0 0.0
rodata 141284 141284 0 0.0
text 809716 809720 4 0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1155463 1155463 0 0.0
bss 143886 143886 0 0.0
rodata 133216 133216 0 0.0
text 799428 799428 0 0.0
p6 all-clusters-app default (read/write) 2562568 2562568 0 0.0
.bss 150896 150896 0 0.0
.data 2776 2776 0 0.0
.text 1520832 1520832 0 0.0
all-clusters-minimal-app default (read/write) 2508416 2508416 0 0.0
.bss 150176 150176 0 0.0
.data 2776 2776 0 0.0
.text 1466680 1466680 0 0.0
light-app default (read/write) 2438584 2438584 0 0.0
.bss 142232 142232 0 0.0
.data 2592 2592 0 0.0
.text 1396848 1396848 0 0.0
lock-app default (read/write) 2464856 2464856 0 0.0
.bss 142080 142080 0 0.0
.data 2600 2600 0 0.0
.text 1423120 1423120 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 797712 797712 0 0.0
bss 72344 72344 0 0.0
noinit 40416 40416 0 0.0
text 564548 564546 -2 -0.0
lighting-app tlsr9518adk80d (read/write) 817780 817780 0 0.0
bss 73164 73164 0 0.0
noinit 40416 40416 0 0.0
text 581092 581092 0 0.0

@andy31415 andy31415 merged commit 41e474d into project-chip:master Jun 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants