[build2] Freezing with MSYS2
David Cohoe
sudgylacmoe at gmail.com
Tue Oct 8 00:18:57 UTC 2019
On 10/7/19, Boris Kolpackov <boris at codesynthesis.com> wrote:
> Could you provide more information on how you've built build2 (did you
> use your own GCC or the one from build2-mingw, etc) as well as what is
> the setup when you try to build hello?
>
> Specifically, I assume the GCC you use to build hello is MinGW, not
> MSYS2, correct?
Things are starting to make a bit more sense for me: I thought I had
used my MSYS2's MinGW compiler when building build2, but I hadn't. I
first tried using the .sh script but it said a bunch of things weren't
declared, so then I ran the .bat script and it seemed to work, but
then it would freeze. I thought that it used my own compiler then,
but looking back at it I've realized it used its own compiler.
Anyway, I went back to trying to get the .sh version working, and
realized the issue is that MSYS2 provides its own gcc that is not the
gcc that you install as a package. I installed that package, and
while the .sh script still gives an undefined reference (it got
further than before), this new gcc works with the old build2 that I
had built earlier with build2's gcc. So, my problem has been
resolved, but if you want to try to figure out more, I can still try
to help.
> Also, for interest's sake, can you try to put C:\build2\bin first in
> PATH and see if that makes any difference?
I did try this before I fixed it and it did run then, but build2's gcc
is older than MSYS2's gcc, so it's not the best solution.
Thanks for your help.
More information about the users
mailing list