-
Notifications
You must be signed in to change notification settings - Fork 841
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
Stack cannot build new project from template #4457
Comments
I'm experiencing the same issue on an empty project. SO: Windows 7 Professional (64-bit). I also received a similar error while trying to execute: stack install intero QuickCheck stack-run Output:
|
Hello. That error message is not coming from stack but from the underlying program. There has been some discussion of that particular error message online; typically it is associated with CPP errors (e.g. haskell/cabal#912). It would be helpful to see the actual logs — would you be able to paste one here? |
$ stack -v install intero QuickCheck stack-run: C:\sr\global-project.stack-work\logs\Cabal-2.4.1.0.log:
C:\sr\global-project.stack-work\logs\blaze-builder-0.4.1.0.log:
C:\sr\global-project.stack-work\logs\base-orphans-0.8.log:
C:\sr\global-project.stack-work\logs\call-stack-0.1.0.log:
|
Ah, I think I see the problem — it may be related to #4443 (and haskell/cabal#5795). The Also, those symbols in the output are slightly worrying. I know you've said you use stack 1.9.3, but would you mind pasting the output of |
Sorry about the late answer. I tried running it from C:\ and it did not work because it kept running scripts from a directory that's on my user account's path. However, running it from another user called "dummy" did work. Thanks for your help. About the version: $ stack --version
Version 1.9.3, Git revision 40cf7b37526b86d1676da82167ea8758a854953b (6211 commits) x86_64 hpack-0.31.1 |
Don't know why I tagged it FreeBSD… Anyway, tldr non-ascii paths cause problems with GHC on windows. |
General summary/comments
I'm trying out stack for the first time and I can't build the simple project created by the default template.
I'm working on Windows 10 Home edition.
Steps to reproduce
Expected
The project is built successfully and the resulting executable can run.
Actual
stack
build exits with status code 1 after outputting the following error message:This error was reproduced in all shells on my machine (cmd.exe, PowerShell and GitBash).
Stack version
Stack version is 1.9.3, GCC version is 8.4.4
Method of installation
Stack was installed using the Windows 64-bit installer.
The text was updated successfully, but these errors were encountered: