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 Err] Build Android CHIPTool Fail by Mac M1 #23341

Closed
sunxx1024 opened this issue Oct 25, 2022 · 2 comments
Closed

[Build Err] Build Android CHIPTool Fail by Mac M1 #23341

sunxx1024 opened this issue Oct 25, 2022 · 2 comments
Labels
android stale Stale issue or PR

Comments

@sunxx1024
Copy link

Reproduction steps

1.follow https://github.com/project-chip/connectedhomeip/blob/master/docs/guides/android_building.md
2. In Step Building Android CHIPTool from Android Studio with point three, Open the project in Android Studio and run File -> Sync Project with Gradle Files.

What I expect is "Build Success!".

What I get is:
C/C++ Configuration Problem
CHIPTool.app.main | debug | arm64-v8a
clang++: error: unknown argument: '-ffile-prefix-map=/Users/rafael_sw/Desktop/Gitlab_Project/connectedhomeip/out/android_arm64=out'
clang++: error: unknown argument: '-ffile-prefix-map=/Users/rafael_sw/Desktop/Gitlab_Project/connectedhomeip/='
clang++: error: unknown argument: '-ffile-prefix-map=../../='
clang: error: unknown argument: '-ffile-prefix-map=/Users/rafael_sw/Desktop/Gitlab_Project/connectedhomeip/out/android_arm64=out'
clang: error: unknown argument: '-ffile-prefix-map=/Users/rafael_sw/Desktop/Gitlab_Project/connectedhomeip/='
clang: error: unknown argument: '-ffile-prefix-map=../../='
CHIPTool.app.main | debug | arm64-v8a (10)
clang++: error: unknown argument: '-ffile-prefix-map=/Users/rafael_sw/Desktop/Gitlab_Project/connectedhomeip/out/android_arm64=out'
clang++: error: unknown argument: '-ffile-prefix-map=/Users/rafael_sw/Desktop/Gitlab_Project/connectedhomeip/='
clang++: error:... (show balloon)

I have check the clang version of my computer:

Apple clang version 14.0.0 (clang-1400.0.29.102)
Target: arm64-apple-darwin21.6.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin

#But the way I build with the script can build successfully

Bug prevalence

Whenever I do this

GitHub hash of the SDK that was being used

https://github.com/project-chip/connectedhomeip

Platform

android

Platform Version(s)

No response

Anything else?

No response

@stale
Copy link

stale bot commented Apr 25, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale Stale issue or PR label Apr 25, 2023
@stale
Copy link

stale bot commented May 8, 2023

This stale issue has been automatically closed. Thank you for your contributions.

@stale stale bot closed this as completed May 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
android stale Stale issue or PR
Projects
None yet
Development

No branches or pull requests

2 participants