tag:help.appveyor.com,2012-11-13:/discussions/problems/3357-issue-with-autoreconf-msys2AppVeyor: Discussion 2018-08-25T02:01:52Ztag:help.appveyor.com,2012-11-13:Comment/382876442015-10-25T14:07:02Z2015-10-25T15:10:21ZIssue With Autoreconf (MSYS2)<div><p>You are giving (a very old) Git for Windows (it was called
msysGit in those days and it used MSYS) priority over MSYS2 in your
PATH, so the sh.exe that is run isn't MSYS2's bash, but instead a
really old one from MSYS.</p>
<p>Change:<br>
set PATH=%PATH%;C:\msys64\usr\bin</p>
<p>To:<br>
set PATH=C:\msys64\usr\bin;%PATH%</p>
<p>Also you should take care to set the MSYSTEM env. variable to
one of MINGW32, MINGW64 or MSYS before running sh (and you should
be explicit about wanting to use a good shell such as bash
instead).</p>
<p>If you can address questions regarding MSYS2 to the MSYS2
project itself I'd appreciate it as AppVeyor probably can do
without the hassles of supporting MSYS2 while we're more than happy
to do that. Having said that, they may want to build up a knowledge
base of solutions here, @ Feodor Fitsner, I'd appreciate some
guidance on this matter actually!</p></div>Ray Donnellytag:help.appveyor.com,2012-11-13:Comment/382876442015-10-25T19:42:23Z2015-10-26T05:04:59ZIssue With Autoreconf (MSYS2)<div><p>Thanks Ray, I appreciate the help. I appreciate the extra
information too. I only recently switched from cygwin to msys2, but
so far I'm extremely happy with it. It's been especially awesome
for building anything that needs POSIX.</p>
<p>That solved the problem with autoreconf, but there still seems
to be an issue running a <a href="https://ci.appveyor.com/project/uxcn/yafd/build/0.1.9">configure</a>
script. I'm not sure if it's an issue with appveyor or msys2
though. I did try executing under bash, but unfortunately to no
avail.</p>
<p>It would be nice if there were a bit more information on getting
builds running under msys2. I definitely don't want to take up any
more time than necessary for the appveyor team. I haven't been able
to find much appveyor specific documentation for msys2. One of the
other questions I have is on setting up pip for python, but I want
to get the build working before starting on that.</p></div>jasontag:help.appveyor.com,2012-11-13:Comment/382876442015-10-31T06:12:40Z2015-10-31T06:12:41ZIssue With Autoreconf (MSYS2)<div><p>If anyone else has the same problem, I was able to resolve the
final issues with my <a href="https://ci.appveyor.com/project/uxcn/yafd/build/0.1.21">build</a>
including installing python (pacman), pip, and cram for functional
testing. I'm not sure if pacman packages are cached or should be
cached.</p>
<p>To resolve the issue with the configure script, I had to add a
simple <a href="https://github.com/uxcn/yafd/blob/master/.appveyor/build_script.bat">
workaround</a>.</p></div>jasontag:help.appveyor.com,2012-11-13:Comment/382876442015-10-31T23:56:27Z2015-10-31T23:56:27ZIssue With Autoreconf (MSYS2)<div><p>Looks great! Thanks for sharing the solution with the rest of
the community!</p></div>Feodor Fitsnertag:help.appveyor.com,2012-11-13:Comment/382876442015-11-03T06:09:06Z2015-11-03T06:09:52ZIssue With Autoreconf (MSYS2)<div><p>No problem @Feodor Fitsner. I appreciate the MSYS2 setup.</p>
<p>Also I'm wondering, should I cache the pacman packages necessary
for the build? Build speed isn't a concern for this (simple
codebase), but the downloads might use a little bandwidth
(12MiB/build for MSYS2 Python).</p></div>jasontag:help.appveyor.com,2012-11-13:Comment/382876442015-11-03T07:24:45Z2015-11-03T07:24:45ZIssue With Autoreconf (MSYS2)<div><p>I don't think cache would give any performance gain here and
it's OK to download it every build.</p></div>Feodor Fitsner