Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

[Impeller] Avoid using the major and minor variable names.#36009

Merged
auto-submit[bot] merged 1 commit into
flutter-team-archive:mainfrom
chinmaygarde:version
Sep 9, 2022
Merged

[Impeller] Avoid using the major and minor variable names.#36009
auto-submit[bot] merged 1 commit into
flutter-team-archive:mainfrom
chinmaygarde:version

Conversation

@chinmaygarde

Copy link
Copy Markdown
Contributor

Fixes flutter/flutter#110936

In some versions of GNU libc, these are macros. The man page says "major(), and minor() functions are not specified in POSIX.1, but are present on many other systems". Just so happens that its not on any systems we build on in CI.

We could do complicated macro management using scopes or undefining these the right spot. I just renamed them to avoid collisions.

The most useful resource I found on this subject was https://stackoverflow.com/a/22253389/38070.

Fixes flutter/flutter#110936

In some versions of GNU libc, these are macros. The man page says "major(), and
minor() functions are not specified in POSIX.1, but are present on many other
systems". Just so happens that its not on any systems we build on in CI.

We could do complicated macro management using scopes or undefining these the
right spot. I just renamed them to avoid collisions.
@flutter-dashboard

Copy link
Copy Markdown

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

@chinmaygarde

Copy link
Copy Markdown
Contributor Author

cc @jwinarske

@chinmaygarde chinmaygarde self-assigned this Sep 8, 2022
@chinmaygarde chinmaygarde added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 8, 2022
@zanderso

zanderso commented Sep 8, 2022

Copy link
Copy Markdown
Contributor

@jwinarske If this addresses your issue, could you indicate whether a cherry-pick would be helpful?

@auto-submit

auto-submit Bot commented Sep 8, 2022

Copy link
Copy Markdown
Contributor

auto label is removed for flutter/engine, pr: 36009, due to - The status or check suite Mac iOS Engine has failed. Please fix the issues identified (or deflake) before re-applying this label.

@auto-submit auto-submit Bot removed the autosubmit Merge PR when tree becomes green via auto submit App label Sep 8, 2022

@bdero bdero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

iOS build failure looked like a transient builder problem, so just reran.

@bdero

bdero commented Sep 8, 2022

Copy link
Copy Markdown
Contributor

NVM, not transient. It's flutter/flutter#111193

@jwinarske

Copy link
Copy Markdown
Contributor

@zanderso I'll QC the fix on my end now

@jwinarske

Copy link
Copy Markdown
Contributor

@zanderso No regression on 64-bit builds. Running 32-bit build matrix now.

@jwinarske

Copy link
Copy Markdown
Contributor

@zanderso that's a confirmed fix for 32-bit issue reported. A cherry pick would be helpful.

@chinmaygarde chinmaygarde added the autosubmit Merge PR when tree becomes green via auto submit App label Sep 9, 2022
@auto-submit auto-submit Bot merged commit c294429 into flutter-team-archive:main Sep 9, 2022
@chinmaygarde chinmaygarde deleted the version branch September 9, 2022 03:01
itsjustkevin pushed a commit that referenced this pull request Sep 12, 2022
…36054)

Co-authored-by: Chinmay Garde <chinmaygarde@google.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

autosubmit Merge PR when tree becomes green via auto submit App e: impeller needs tests

Development

Successfully merging this pull request may close these issues.

[Impeller] 32-bit build break with stable roll to 3.3.0

4 participants