Repository navigation
Conversation
frewsxcv
commented
Jan 23, 2016
|
Not done, but definitely making progress. Will try to finish it up tomorrow |
|
@larsbergstrom and @vvuk: I tried to get this working, but didn't make it very far. I realized I'm more unfamiliar with development on Windows than I thought. I intentionally pushed this branch to |
|
This error |
|
Oh! We may be able to fudge this by making sure we have a PATH that puts all of the msys stuff first. I think it's the cygwin tools installed with the Git package that are breaking ( Or, if we can get the git tools installed without the "bash environment support", that would work, too. |
|
🎉 |
|
Have a look at Installed Software, Python2.7 is already there: http://www.appveyor.com/docs/installed-software#python. You can set environment variables in more YAML'ish way: version: 1.0.{build}
platform:
- x64
environment:
MSYSTEM: MSYS
MSYS: winsymlinks=lnk
CC: gcc
install:
# If for some reason the installed mingw does not suffice, you can try this fast mirror
- ps: |
$file = "x86_64-4.9.2-release-win32-seh-rt_v4-rev3.7z"
wget https://bintray.com/artifact/download/drewwells/generic/$file -OutFile $file
&7z x -oC:\ $file > $null
# downloaded and extracted at C:\mingw64\bin
- SET PATH=\msys64\usr\bin\bash;C:\mingw64\bin;%PATH%
- bash -lc "pacman --needed --noconfirm -Sy pacman-mirrors"
- bash -lc "pacman --noconfirm -Sy"
- bash -lc "pacman -Sy --noconfirm git mingw-w64-x86_64-toolchain mingw-w64-x86_64-freetype mingw-w64-x86_64-icu mingw-w64-x86_64-nspr mingw-w64-x86_64-ca-certificates mingw-w64-x86_64-expat mingw-w64-x86_64-cmake tar diffutils patch patchutils make python2-setuptools"
- easy_install-2.7 pip virtualenv
- bash -lc "mv /mingw64/bin/python2.exe /mingw64/bin/python2-mingw64.exe"
- bash -lc "mv /mingw64/bin/python2.7.exe /mingw64/bin/python2.7-mingw64.exe"
For better performance, you can even cache the toolchain stack directories like this: https://github.com/sass/libsass/blob/master/appveyor.yml#L17-L19. See http://www.appveyor.com/docs/build-cache. |
|
FWIW, the build won't work yet with the MSVC builds of Rust -- that's coming down the line. |
|
With today Appveyor update, cygwin problem gone. |
|
This is the problem:
Note the "unknown"; that's not correct. It's not sufficient to run mach build using msys bash -- the ming64_shell script sets some variables, which is what mach uses to determine the build environment. Specifically, MSYSTEM must be set to MINGW64. This happens to be the only thing that it sets though, so perhaps just adding an 'export MSYSTEM=MINGW64' before running mach build would make it work. |
|
@vvuk Thanks, that worked, downloaded Rust successfully. But now failing at compiling on random crates.
https://ci.appveyor.com/project/UK992/servo-hga0y/history - builds 1.0.20 and above |
|
@UK992 It looks like it is trying to download the compiler after starting to compile things, no? |
|
@nox yes, and don't know why. |
|
@jasonwilliams200OK, please refrain from making unhelpful comments like that. |
|
@Ms2ger, I apologize. It's removed. :) |
|
@jasonwilliams200OK If you would like to work on this CI script, you can check out this branch locally ( Alternatively, if the GH API is getting in your way, please feel free to just dump fixes into comments here and one of us can push them into the scripts. Thanks for offering to help out - we'd love all the help we can get! |
|
Interestingly, if I RDP in, while the runner reproduces that build error ( |
|
That shortcut runs: That shell file is: |
|
Looking at the difference in the environment between the console created when you start from cmd.exe and run bash as in the AppVeyor scripts and when you launch a mingw64 command prompt from the shell, there are:
At a casual glance, everything else appears identical. |
|
Hrm, attempting to run the same commands as AppVeyor runs, but from a cmd.exe shell, I get: So I am guessing something's not quite right with that environment, either (it succeeds for AppVeyor, using |
|
Again, the code that will generate "pc-windows-gnu" checks for $MSYSTEM == "MINGW64". That's the only thing that it checks and the only thing that will produce pc-windows-gnu as the host triple. If $MSYSTEM is not set, "unknown" will be produced and the download will fail. Try:
|
|
Closing since this isn't actively being worked on. A new PR will be made when it's taken up again. |
|
Tracking issue: #9767 |