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

Resolve compilation issue for darwin-framework-tool on Apple Silicon #21761

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

krypton36
Copy link
Contributor

Problem

Change overview

  • Updates python script to set PLATFORM_PREFERRED_ARCH

Testing

Compiled on Intel and Apple Silicon

@woody-apple woody-apple enabled auto-merge (squash) August 9, 2022 19:22
@woody-apple woody-apple added the hotfix urgent fix needed, can bypass review label Aug 9, 2022
@github-actions
Copy link

github-actions bot commented Aug 9, 2022

PR #21761: Size comparison from a61e8e6 to 366758e

Increases (5 builds for cc13x2_26x2, esp32, nrfconnect, telink)
platform target config section a61e8e6 366758e change % change
cc13x2_26x2 pump-app LP_CC2652R7 (read only) 683011 683019 8 0.0
.text 593212 593220 8 0.0
esp32 all-clusters-app c3devkit (read only) 1026076 1026078 2 0.0
.flash.text 1026076 1026078 2 0.0
nrfconnect all-clusters-minimal-app nrf52840dk_nrf52840 text 802228 802232 4 0.0
telink light-switch-app tlsr9518adk80d text 569824 569826 2 0.0
lighting-app tlsr9518adk80d (read/write) 827920 827928 8 0.0
text 587796 587798 2 0.0
Decreases (4 builds for bl602, cc13x2_26x2, nrfconnect)
platform target config section a61e8e6 366758e change % change
bl602 lighting-app bl602+rpc .text 1079636 1079632 -4 -0.0
cc13x2_26x2 all-clusters-minimal-app LP_CC2652R7 (read only) 636471 636463 -8 -0.0
.text 558420 558412 -8 -0.0
pump-app LP_CC2652R7 (read/write) 159364 159356 -8 -0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 text 813112 813108 -4 -0.0
Full report (43 builds for bl602, cc13x2_26x2, cyw30739, efr32, esp32, k32w, linux, mbed, nrfconnect, p6, telink)
platform target config section a61e8e6 366758e change % change
bl602 lighting-app bl602 (read/write) 1379954 1379954 0 0.0
.bss 119746 119746 0 0.0
.data 4480 4480 0 0.0
.text 1048132 1048132 0 0.0
bl602+rpc (read/write) 1425210 1425210 0 0.0
.bss 127186 127186 0 0.0
.data 4600 4600 0 0.0
.text 1079636 1079632 -4 -0.0
cc13x2_26x2 all-clusters-app LP_CC2652R7 (read only) 670927 670927 0 0.0
(read/write) 180456 180456 0 0.0
.bss 74276 74276 0 0.0
.data 3372 3372 0 0.0
.rodata 88471 88471 0 0.0
.text 582140 582140 0 0.0
all-clusters-minimal-app LP_CC2652R7 (read only) 636471 636463 -8 -0.0
(read/write) 157844 157844 0 0.0
.bss 73556 73556 0 0.0
.data 3372 3372 0 0.0
.rodata 77727 77727 0 0.0
.text 558420 558412 -8 -0.0
lock-ftd LP_CC2652R7 (read only) 672787 672787 0 0.0
(read/write) 168780 168780 0 0.0
.bss 71348 71348 0 0.0
.data 3296 3296 0 0.0
.rodata 76411 76411 0 0.0
.text 595896 595896 0 0.0
lock-mtd LP_CC2652R7 (read only) 655395 655395 0 0.0
(read/write) 181860 181860 0 0.0
.bss 67036 67036 0 0.0
.data 3296 3296 0 0.0
.rodata 101363 101363 0 0.0
.text 553552 553552 0 0.0
pump-app LP_CC2652R7 (read only) 683011 683019 8 0.0
(read/write) 159364 159356 -8 -0.0
.bss 71388 71388 0 0.0
.data 3296 3296 0 0.0
.rodata 89315 89315 0 0.0
.text 593212 593220 8 0.0
pump-controller-app LP_CC2652R7 (read only) 667487 667487 0 0.0
(read/write) 175024 175024 0 0.0
.bss 71524 71524 0 0.0
.data 3292 3292 0 0.0
.rodata 84863 84863 0 0.0
.text 582144 582144 0 0.0
shell LP_CC2652R7 (read only) 663610 663610 0 0.0
(read/write) 183292 183292 0 0.0
.bss 76596 76596 0 0.0
.data 3376 3376 0 0.0
.rodata 85418 85418 0 0.0
.text 577876 577876 0 0.0
cyw30739 light cyw930739m2evb_01 (read/write) 584686 584686 0 0.0
.app_xip_area 461488 461488 0 0.0
.bss 65640 65640 0 0.0
.data 744 744 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
lock cyw930739m2evb_01 (read/write) 590622 590622 0 0.0
.app_xip_area 462640 462640 0 0.0
.bss 70424 70424 0 0.0
.data 748 748 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
ota-requestor-no-progress-logging cyw930739m2evb_01 (read/write) 596986 596986 0 0.0
.app_xip_area 474508 474508 0 0.0
.bss 64952 64952 0 0.0
.data 716 716 0 0.0
.rodata 0 0 0 0.0
.text 112 112 0 0.0
efr32 lighting-app BRD4161A (read/write) 1096372 1096372 0 0.0
.bss 132844 132844 0 0.0
.data 2068 2068 0 0.0
.text 961436 961436 0 0.0
BRD4161A+rpc (read/write) 1150636 1150636 0 0.0
.bss 149532 149532 0 0.0
.data 2280 2280 0 0.0
.text 998804 998804 0 0.0
BRD4161A+rs911x (read/write) 985908 985908 0 0.0
.bss 162184 162184 0 0.0
.data 2056 2056 0 0.0
.text 821648 821648 0 0.0
lock-app BRD4161A+wf200 (read/write) 1136484 1136484 0 0.0
.bss 144824 144824 0 0.0
.data 2064 2064 0 0.0
.text 989576 989576 0 0.0
window-app BRD4161A (read/write) 1088104 1088104 0 0.0
.bss 134292 134292 0 0.0
.data 2096 2096 0 0.0
.text 951696 951696 0 0.0
esp32 all-clusters-app c3devkit (read only) 1026076 1026078 2 0.0
(read/write) 1487418 1487418 0 0.0
.dram0.bss 70336 70336 0 0.0
.dram0.data 14600 14600 0 0.0
.flash.rodata 217048 217048 0 0.0
.flash.text 1026076 1026078 2 0.0
.iram0.text 62902 62902 0 0.0
m5stack (read only) 1079367 1079367 0 0.0
(read/write) 489392 489392 0 0.0
.dram0.bss 75840 75840 0 0.0
.dram0.data 34144 34144 0 0.0
.flash.rodata 247412 247412 0 0.0
.flash.text 1073983 1073983 0 0.0
.iram0.text 123267 123267 0 0.0
k32w light k32w0+release (read/write) 643644 643644 0 0.0
.bss 69712 69712 0 0.0
.data 2044 2044 0 0.0
.text 569160 569160 0 0.0
lock k32w0+release (read/write) 701076 701076 0 0.0
.bss 70184 70184 0 0.0
.data 2052 2052 0 0.0
.text 626112 626112 0 0.0
linux all-clusters-app debug (read only) 3026001 3026001 0 0.0
(read/write) 155752 155752 0 0.0
.bss 61888 61888 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 85416 85416 0 0.0
.dynamic 608 608 0 0.0
.got 4568 4568 0 0.0
.init 27 27 0 0.0
.init_array 1152 1152 0 0.0
.rodata 273291 273291 0 0.0
.text 2573778 2573778 0 0.0
all-clusters-minimal-app debug (read only) 2866273 2866273 0 0.0
(read/write) 147488 147488 0 0.0
.bss 61152 61152 0 0.0
.data 2064 2064 0 0.0
.data.rel.ro 78008 78008 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 1144 1144 0 0.0
.rodata 273419 273419 0 0.0
.text 2416626 2416626 0 0.0
bridge-app debug+rpc (read only) 2365769 2365769 0 0.0
(read/write) 127416 127416 0 0.0
.bss 50592 50592 0 0.0
.data 3600 3600 0 0.0
.data.rel.ro 67368 67368 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 816 816 0 0.0
.rodata 202504 202504 0 0.0
.text 2000786 2000786 0 0.0
chip-tool debug (read only) 10598961 10598961 0 0.0
(read/write) 647424 647424 0 0.0
.bss 24856 24856 0 0.0
.data 3266 3266 0 0.0
.data.rel.ro 612776 612776 0 0.0
.dynamic 608 608 0 0.0
.got 5104 5104 0 0.0
.init 27 27 0 0.0
.init_array 768 768 0 0.0
.rodata 543573 543573 0 0.0
.text 8556724 8556724 0 0.0
chip-tool-ipv6only arm64 (read only) 10007308 10007308 0 0.0
(read/write) 695153 695153 0 0.0
.bss 32897 32897 0 0.0
.data 3272 3272 0 0.0
.data.rel.ro 640360 640360 0 0.0
.dynamic 560 560 0 0.0
.got 13656 13656 0 0.0
.init 24 24 0 0.0
.init_array 192 192 0 0.0
.rodata 474124 474124 0 0.0
.text 7903508 7903508 0 0.0
lighting-app debug+rpc (read only) 2589145 2589145 0 0.0
(read/write) 130008 130008 0 0.0
.bss 49728 49728 0 0.0
.data 2096 2096 0 0.0
.data.rel.ro 72248 72248 0 0.0
.dynamic 608 608 0 0.0
.got 4392 4392 0 0.0
.init 27 27 0 0.0
.init_array 912 912 0 0.0
.rodata 219184 219184 0 0.0
.text 2199394 2199394 0 0.0
lock-app debug (read only) 2573329 2573329 0 0.0
(read/write) 125376 125376 0 0.0
.bss 48256 48256 0 0.0
.data 1712 1712 0 0.0
.data.rel.ro 69416 69416 0 0.0
.dynamic 608 608 0 0.0
.got 4464 4464 0 0.0
.init 27 27 0 0.0
.init_array 888 888 0 0.0
.rodata 236144 236144 0 0.0
.text 2170674 2170674 0 0.0
ota-provider-app debug (read only) 2350897 2350897 0 0.0
(read/write) 118848 118848 0 0.0
.bss 47808 47808 0 0.0
.data 1936 1936 0 0.0
.data.rel.ro 63224 63224 0 0.0
.dynamic 608 608 0 0.0
.got 4488 4488 0 0.0
.init 27 27 0 0.0
.init_array 760 760 0 0.0
.rodata 208344 208344 0 0.0
.text 1979202 1979202 0 0.0
ota-requestor-app debug (read only) 2515721 2515721 0 0.0
(read/write) 127152 127152 0 0.0
.bss 50272 50272 0 0.0
.data 2304 2304 0 0.0
.data.rel.ro 68632 68632 0 0.0
.dynamic 608 608 0 0.0
.got 4480 4480 0 0.0
.init 27 27 0 0.0
.init_array 840 840 0 0.0
.rodata 214944 214944 0 0.0
.text 2128354 2128354 0 0.0
shell debug (read only) 2594641 2594641 0 0.0
(read/write) 141904 141904 0 0.0
.bss 57800 57800 0 0.0
.data 1264 1264 0 0.0
.data.rel.ro 77024 77024 0 0.0
.dynamic 608 608 0 0.0
.got 4136 4136 0 0.0
.init 27 27 0 0.0
.init_array 1024 1024 0 0.0
.rodata 233554 233554 0 0.0
.text 2202882 2202882 0 0.0
thermostat-no-ble arm64 (read only) 2350956 2350956 0 0.0
(read/write) 141681 141681 0 0.0
.bss 55313 55313 0 0.0
.data 1672 1672 0 0.0
.data.rel.ro 75880 75880 0 0.0
.dynamic 560 560 0 0.0
.got 5040 5040 0 0.0
.init 24 24 0 0.0
.init_array 408 408 0 0.0
.rodata 139716 139716 0 0.0
.text 1973712 1973712 0 0.0
tv-app debug (read only) 3168929 3168929 0 0.0
(read/write) 257864 257864 0 0.0
.bss 167480 167480 0 0.0
.data 4736 4736 0 0.0
.data.rel.ro 79096 79096 0 0.0
.dynamic 608 608 0 0.0
.got 4864 4864 0 0.0
.init 27 27 0 0.0
.init_array 1064 1064 0 0.0
.rodata 258152 258152 0 0.0
.text 2721010 2721010 0 0.0
tv-casting-app debug (read only) 5404689 5404689 0 0.0
(read/write) 158856 158856 0 0.0
.bss 51384 51384 0 0.0
.data 2432 2432 0 0.0
.data.rel.ro 98608 98608 0 0.0
.dynamic 608 608 0 0.0
.got 4776 4776 0 0.0
.init 27 27 0 0.0
.init_array 1032 1032 0 0.0
.rodata 340945 340945 0 0.0
.text 4795778 4795778 0 0.0
mbed lock-app CY8CPROTO_062_4343W+release (read only) 6224 6224 0 0.0
(read/write) 2452720 2452720 0 0.0
.bss 214556 214556 0 0.0
.data 5872 5872 0 0.0
.text 1415364 1415364 0 0.0
nrfconnect all-clusters-app nrf52840dk_nrf52840 (read/write) 1177959 1177959 0 0.0
bss 143222 143222 0 0.0
rodata 142776 142776 0 0.0
text 813112 813108 -4 -0.0
all-clusters-minimal-app nrf52840dk_nrf52840 (read/write) 1157983 1157983 0 0.0
bss 142460 142460 0 0.0
rodata 134472 134472 0 0.0
text 802228 802232 4 0.0
p6 all-clusters-app default (read only) 881520 881520 0 0.0
(read/write) 1693812 1693812 0 0.0
.bss 149168 149168 0 0.0
.data 2656 2656 0 0.0
.text 1533600 1533600 0 0.0
all-clusters-minimal-app default (read only) 882240 882240 0 0.0
(read/write) 1637980 1637980 0 0.0
.bss 148448 148448 0 0.0
.data 2656 2656 0 0.0
.text 1478488 1478488 0 0.0
light-app default (read only) 890560 890560 0 0.0
(read/write) 1556668 1556668 0 0.0
.bss 140336 140336 0 0.0
.data 2448 2448 0 0.0
.text 1405496 1405496 0 0.0
lock-app default (read only) 886064 886064 0 0.0
(read/write) 1593980 1593980 0 0.0
.bss 144816 144816 0 0.0
.data 2464 2464 0 0.0
.text 1438312 1438312 0 0.0
telink light-switch-app tlsr9518adk80d (read/write) 806120 806120 0 0.0
bss 70976 70976 0 0.0
noinit 43488 43488 0 0.0
text 569824 569826 2 0.0
lighting-app tlsr9518adk80d (read/write) 827920 827928 8 0.0
bss 71820 71820 0 0.0
noinit 43488 43488 0 0.0
text 587796 587798 2 0.0

@krypton36 krypton36 changed the title Resolve comilation issue for darwin-framework-tool on Apple Silicon Resolve compilation issue for darwin-framework-tool on Apple Silicon Aug 9, 2022
@woody-apple woody-apple disabled auto-merge August 9, 2022 20:32
@woody-apple woody-apple merged commit edaaaf2 into project-chip:master Aug 9, 2022
isiu-apple pushed a commit to isiu-apple/connectedhomeip that referenced this pull request Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fast track hotfix urgent fix needed, can bypass review review - pending scripts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Compilation error on M1 Mac while trying to build darwin-framework-tool
3 participants