-
Notifications
You must be signed in to change notification settings - Fork 3k
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
CYESKIT_064B0S2_4343W compile error with Mbed 6 and Pelion Client #13027
Comments
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
I recall hitting this previously - issue was resolved by removing the (Then the template still works - it gets preprocessed to Yes, the templates could be _Uglified too, but as the target header defines are injected into any application code including "mbed.h", they're the worse polluter, and making sure that Also, technically speaking, as non-implementation code, we're NOT allowed to use Also, that error is coming from non-Mbed OS application code - Mbed client. Looks like they've got a local version of the old Mbed OS FunctionPointer.h? Was initially assuming it was Callback.h |
Problem recently mentioned in a comment here: #12838 (comment) |
@ARMmbed/team-cypress could you fix the definitions by removing |
Avoid build failures when arduino pin names collide with C++ template argument names. Addresses mbed-os issue ARMmbed#13027
Avoid build failures when arduino pin names collide with C++ template argument names. Addresses issue ARMmbed#13027
This is fixed by PR #13045. thanks! |
Description of defect
Compile error when building the latest
mbed-os-example-pelion
with CYESKIT_064B0S2_4343W.Conflict between pinname macro and function pointer typename - each resolving to "A1", etc.
This is resolved by removing parenthesis around pinname definitions in
\mbed-os\targets\TARGET_Cypress\TARGET_PSOC6\TARGET_CYESKIT_064B0S2_4343W\cybsp_types.h
It looks like the predecessor kit - CY8CKIT_064S2_4343W already has this fix in:
\mbed-os\targets\TARGET_Cypress\TARGET_PSOC6\TARGET_CY8CKIT_064S2_4343W\cybsp_types.h
But, is this a valid fix, considering that the name "A1" seems to be shared by the function pointer?
Target(s) affected by this defect ?
CYESKIT_064B0S2_4343W
Toolchain(s) (name and version) displaying this defect ?
Arm compiler 6
What version of Mbed-os are you using (tag or sha) ?
mbed-os-6.0.0-beta-1
mbed-cloud-client 4.4.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
mbed-cli 1.10.1
How is this defect reproduced ?
mbed import https://github.com/ARMmbed/mbed-os-example-pelion
copy over this configuration in
mbed_app.json
mbed_cloud_dev_credentials.c
mbed compile -t GCC_ARM -m CYESKIT_064B0S2_4343W --profile release
The text was updated successfully, but these errors were encountered: