-
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
mbed_retarget: enable IAR build #14935
Conversation
@jeromecoutant, thank you for your changes. |
@@ -37,7 +37,7 @@ | |||
#endif | |||
#include <errno.h> | |||
|
|||
#if !defined(__ARMCC_VERSION) | |||
#if !defined(__ARMCC_VERSION) && defined(__GNUC__) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this addition needed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeromecoutant, thank you for your changes. |
CI started |
CI restarted. I accidentally started 5.15 job. |
Jenkins CI Test : ✔️ SUCCESSBuild Number: 1 | 🔒 Jenkins CI Job | 🌐 Logs & ArtifactsCLICK for Detailed Summary
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remembered the discussion from the 14751, the second part of the change should be reverted.
|
||
#if defined ( __ICCARM__ ) | ||
#undef EILSEQ /* defined in IAR arm/inc/c/errno.h: #define EILSEQ 36 */ | ||
#define EILSEQ 84 /* Illegal byte sequence */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we want to add this. From the discussion, I was questioning our earlier approach with undef like here (see #14751).
The goal was to provide default values only if they are not defined. if IAR defines it, we should leave it as it is. a program should not use value 36 or 84 directly but rather use EILSEQ
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this can't compile as value 36 is already used....
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is failing at https://github.com/ARMmbed/mbed-os/blob/master/platform/source/mbed_retarget.cpp#L2102
as there are 2 cases with the same value
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good test !
@kjbracey-arm what do to in this case ? fix it as it is here ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or @pan- but I think both are OoO these days.
Lets get back to this one the next week.
This pull request has automatically been marked as stale because it has had no recent activity. @jeromecoutant, please carry out any necessary work to get the changes merged. Thank you for your contributions. |
@pan- Can yo help us here? See #14935 (comment) |
Note this has no impact for current GCC or ARM build, |
Summary of changes
Since #14751 IAR build is no more possible.
@tymoteuszblochmobica
@MarceloSalazar @0xc0170 @kjbracey-arm
Impact of changes
IAR build is OK
Migration actions required
Documentation
Pull request type
Test results
Reviewers