-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
[BUG] [Android] Building Android chip-tools from scripts fails #25986
Comments
I'm using the NDK version (21.4.7075529) specified in https://github.com/project-chip/connectedhomeip/blob/master/docs/guides/android_building.md. I can test with r23c (which I assume is 23.2.8568313 ?) |
Using NDK 23.2.8568313 fix the issue. I'm gonna close this ticket since a new ticket was opened to update the documentation #25987 (I'll add the additional Github Actions update on the other ticket) |
@bzbarsky-apple I'm sorry t bother you again. I use NDK 23.2.8568313 but I still got the same problem. |
@nmtoan91 Sorry, I don't know enough about the Android side of things to tell you anything useful. |
I'm looking at your other issue |
Reproduction steps
Building Android chip-tools from scripts start failing on commit 5927a9a #25939 with error
clang++: error: unknown argument: '-fmacro-prefix-map=../../='
We can see the same error in this Github Action https://github.com/project-chip/connectedhomeip/actions/workflows/full-android.yaml
Following instructions from https://github.com/project-chip/connectedhomeip/blob/master/docs/guides/android_building.md
1 - Setup environment variables
2 - Run bootstrap script
3 - Run build script (./scripts/build/build_examples.py --target android-arm64-chip-tool build) (same error for any abi tested)
Building Android chip-tools from script (on full-android.yaml Github Action and locally) is working on commits before 5927a9a
Bug prevalence
Always
GitHub hash of the SDK that was being used
5927a9a
Platform
android
Platform Version(s)
No response
Anything else?
Logs from CI:
Local logs are really similar and can be provided as well.
Fixing the Github Action will probably only require to bump the container version like https://github.com/ksperling-apple/connectedhomeip/blob/4d75d75d11b0ec2563031d8e583b8af3ee40d47f/.github/workflows/smoketest-android.yaml#L41 but how do we fix this issue for local machine ?
The text was updated successfully, but these errors were encountered: