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

configure: Check for valid Python on MinGW as well #34515

Merged
merged 1 commit into from
Jul 2, 2016

Conversation

alexcrichton
Copy link
Member

@alexcrichton alexcrichton commented Jun 27, 2016

The LLVM build system is somewhat picky about which Python is used to build it
as it's known to be incompatible with the default python2 package that ships
with MinGW. This was previously detected for MSVC builds but the logic was left
out for MinGW by accident (now that we've switched to cmake builds for LLVM
everywhere).

This corrects the ./configure check and also updates the README.md
accordingly. Additionally, a number of instructions were updated to work with
the most recent copy of MSYS2.

Closes #28260
Closes #34489

@rust-highfive
Copy link
Collaborator

r? @nikomatsakis

(rust_highfive has picked a reviewer for you, use r? to override)

@alexcrichton
Copy link
Member Author

r? @brson
cc @vadimcn

I've fairly radically changed the MinGW instructions in the README here as well. I've attempted to start from a completely fresh MSYS2 install and follow these instructions to get a compiler bootstrapped, and they appear to be working. The biggest change is that we no longer request a custom download of the old 4.9.2 compilers, as it appears that whatever bug was there before is now gone.

@rust-highfive rust-highfive assigned brson and unassigned nikomatsakis Jun 27, 2016
@brson
Copy link
Contributor

brson commented Jun 27, 2016

@bors r+

@bors
Copy link
Contributor

bors commented Jun 27, 2016

📌 Commit 2fb7694 has been approved by brson

diffutils \
mingw-w64-x86_64-python2 \
mingw-w64-x86_64-cmake \
mingw-w64-x86_64-gcc
Copy link
Contributor

Choose a reason for hiding this comment

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

make is missing from the list

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh dear you are indeed correct!

The LLVM build system is somewhat picky about which Python is used to build it
as it's known to be incompatible with the default `python2` package that ships
with MinGW. This was previously detected for MSVC builds but the logic was left
out for MinGW by accident (now that we've switched to cmake builds for LLVM
everywhere).

This corrects the `./configure` check and also updates the `README.md`
accordingly. Additionally, a number of instructions were updated to work with
the most recent copy of MSYS2.

Closes rust-lang#34489
@alexcrichton
Copy link
Member Author

@bors: r=brson

@bors
Copy link
Contributor

bors commented Jun 28, 2016

📌 Commit cb74a58 has been approved by brson

@bors
Copy link
Contributor

bors commented Jul 1, 2016

⌛ Testing commit cb74a58 with merge 80b0f0a...

@bors
Copy link
Contributor

bors commented Jul 1, 2016

💔 Test failed - auto-win-msvc-64-opt-rustbuild

@alexcrichton
Copy link
Member Author

@bors: retry

On Fri, Jul 1, 2016 at 5:42 AM, bors [email protected] wrote:

💔 Test failed - auto-win-msvc-64-opt-rustbuild
https://buildbot.rust-lang.org/builders/auto-win-msvc-64-opt-rustbuild/builds/1627


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#34515 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAD95PVd5b-yDiPhzUdpfJXNgDO0_RF0ks5qRQsYgaJpZM4I_muu
.

@bors
Copy link
Contributor

bors commented Jul 1, 2016

⌛ Testing commit cb74a58 with merge 1d149cf...

@bors
Copy link
Contributor

bors commented Jul 1, 2016

💔 Test failed - auto-win-msvc-64-opt-rustbuild

@alexcrichton
Copy link
Member Author

@bors: retry

On Fri, Jul 1, 2016 at 12:44 PM, bors [email protected] wrote:

💔 Test failed - auto-win-msvc-64-opt-rustbuild
https://buildbot.rust-lang.org/builders/auto-win-msvc-64-opt-rustbuild/builds/1647


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#34515 (comment), or mute
the thread
https://github.com/notifications/unsubscribe/AAD95G82F9LrRvbR0inUChf7XX5uXFBaks5qRW4AgaJpZM4I_muu
.

bors added a commit that referenced this pull request Jul 2, 2016
configure: Check for valid Python on MinGW as well

The LLVM build system is somewhat picky about which Python is used to build it
as it's known to be incompatible with the default `python2` package that ships
with MinGW. This was previously detected for MSVC builds but the logic was left
out for MinGW by accident (now that we've switched to cmake builds for LLVM
everywhere).

This corrects the `./configure` check and also updates the `README.md`
accordingly. Additionally, a number of instructions were updated to work with
the most recent copy of MSYS2.

Closes #28260
Closes #34489
@bors
Copy link
Contributor

bors commented Jul 2, 2016

⌛ Testing commit cb74a58 with merge 2b59647...

@bors bors merged commit cb74a58 into rust-lang:master Jul 2, 2016
@alexcrichton alexcrichton deleted the more-checks branch July 7, 2016 16:41
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.

6 participants