Closed petetnt closed 1 year ago
@petetnt When I run your command on an ARM mac, I get:
% ./scripts/run_in_build_env.sh "./scripts/build/build_examples.py targets --format=json"
...
"shorthand": "darwin-arm64-{rpc-console,all-clusters,all-clusters-minimal,chip-tool,thermostat,java-matter-controller,minmdns,light,lock,shell,ota-provider,ota-requestor,simulated-app1,simulated-app2,python-bindings,tv-app,tv-casting-app,bridge,tests,chip-cert,address-resolve-tool,contact-sensor,dishwasher,refrigerator,darwin-framework-tool}[-nodeps][-platform-mdns][-minmdns-verbose][-libnl][-same-event-loop][-no-interactive][-ipv6only][-no-ble][-no-wifi][-no-thread][-mbedtls][-boringssl][-asan][-tsan][-ubsan][-libfuzzer][-ossfuzz][-coverage][-dmalloc][-clang][-test][-rpc][-with-ui]",
Are you running your commands on an M1/M2 mac? If so, what version of the SDK are you using?
Running on a Macbook Pro 13-inch, M1, 2020, using the latest commit 0e7d3b718e89e4602cafb4a34de14085cf8b8676
.
@petetnt That is very very strange. What does this return for you?
./scripts/run_in_build_env.sh "python3 -c 'from platform import uname; print(uname().machine)' "
uname().machine
claims that it's x86_64
, which explains the issue... I looked into it and it seems that https://apple.stackexchange.com/questions/420452/running-uname-m-gives-x86-64-on-m1-mac-mini my bash is a x86 version for whatever reasons (I've brought the same OS through multiple machine upgrades...).
I'll close this and report back if the issue persist after fixing the bash issue. Thanks a lot @bzbarsky-apple 🙇
@petetnt That's uname
in python, which I would think does not run the shell, but who knows... It's possible the python binary involved is x86 too?
Ah yeah, sorry, the issue was that the Python binary was x86_64 too. Thanks for the help @bzbarsky-apple !
Build issue(s)
In the
Matter Linux/Mac All Clusters Example
there's a line for compiling the example on Arm64 based macs:https://github.com/project-chip/connectedhomeip/tree/ba45f9ca99c826c1e35cc2a410bc39374ac3b69e/examples/all-clusters-app/linux#compiling-all-clusters-app-for-testing-on-linux-and-mac
However no such target exists, only the
darwin-x64
targets are listed when running./scripts/run_in_build_env.sh "./scripts/build/build_examples.py targets --format=json"
Platform
darwin