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

Fix configure failures with Xcode12 #292

Merged
merged 1 commit into from
Dec 25, 2020
Merged

Conversation

mitchblank
Copy link
Contributor

Changes are needed because Xcode12 includes a default of -Werror,-Wimplicit-function-declaration which means that
even something like calling exit(0); is a compile failure if you haven't done a #include <stdlib.h> first (as C99 requires, but most other compilers will just warn about)

I don't know if the "long long reliability test 2" test which tries to provoke a crash on a particular gcc 3.3 build still
does what it was originally intended to do with my change. Of course, I doubt anyone has tried to use that compiler in years.

Fixes #290

Changes are needed becuase Xcode12 includes a default of
-Werror,-Wimplicit-function-declaration which means that
even something like calling "exit(0);" is a compile failure
if you haven't done a "#include <stdlib.h>" first (as C99
requires, but most other compilers will just warn about)

I don't know if the "long long reliability test 2" test which
tries to provoke a crash on a particular gcc 3.3 build still
does what it was originally intended to do with my change.
Of course, I doubt anyone has tried to use that compiler in
years.

Fixes wbhart#290
mitchblank added a commit to mitchblank/homebrew-core that referenced this pull request Dec 21, 2020
I opened a PR on upstream package wbhart/mpir#292
which I am importing here.  Does require regenerating ./configure
script, of course.
BrewTestBot pushed a commit to Homebrew/homebrew-core that referenced this pull request Dec 24, 2020
* mpir: fix build on Xcode 12
  I opened a PR on upstream package wbhart/mpir#292
  which I am importing here.  Does require regenerating ./configure
  script, of course.
* switch these to https to make CI happy

Closes #67369.

Signed-off-by: Sean Molenaar <1484494+SMillerDev@users.noreply.github.com>
Signed-off-by: BrewTestBot <1589480+BrewTestBot@users.noreply.github.com>
@wbhart wbhart merged commit b3367eb into wbhart:master Dec 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

error: could not find a working compiler on MacOS Big Sure
2 participants