Open maoe opened 7 years ago
As mentioned in haskell/ThreadScope#67, if I use stack's MSYS (i.e. no --skip-msys), it builds fine. This is not ideal because I need to install a separate gtk2 in the existing MSYS2 to actually run threadscope. Or probably stack exec -- threadscope
is supposed to work. Unfortunately this command doesn't do anything with no error messages.
General summary/comments (optional)
I'm investigating why this branch of threadscope fails to build with stack on Windows.
Steps to reproduce
I've tested the following procedure with Windows Server 2016 on Google Compute Engine.
pacman --noconfirm --needed -Sy bash pacman pacman-mirrors msys2-runtime msys2-runtime-devel
pacman --noconfirm -Syuu
pacman --noconfirm -Suu
pacman -S $MINGW_PACKAGE_PREFIX-{gtk2,pkg-config}
echo 'export PATH=$APPDATA/local/bin:$PATH' >> ~/.profile
source ~/.profile
stack build --skip-msys threadscope
Expected
Stack builds threadscope without errors.
Actual
It fails while building the modules in the threadscope project. The stack output is here.
If I do the same thing in command prompt, an error dialog pops up with the following message:
I suspect this is a stack misbehavior because
cabal new-build
using the GHC which was downloaded by stack works just fine in the same shell.Stack version
Method of installation
Official binary using the Windows x86_64 installer.