-
Notifications
You must be signed in to change notification settings - Fork 846
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 build failing with new project on MacOS #4399
Comments
I experience the exact same behavior on the latest update of OSX.
Homebrew GHC/Cabal are not installed, this is with Stack's installation. |
I should add that I also saw this behavior on the last version of Mac OS X "High Sierra" (10.13.6). This is why I think it's tied to the release of the build tools rather than a more generic OS version issue. |
I think this started happening to me right after I upgraded OSX build tools / Xcode but I'm not sure. It was definitely after some sort of update. |
Ah, that sounds worrying. Have you tried |
Running after |
I've seen macOS issues where the solution was to remove just the Mind, seeing that |
I tried using Homebrew's gcc-4.9 and gcc-8 as the compiler (specified in stack.yaml with |
This could very well be the case. I think I've seen some issues with A maintainer has failed to reproduce this on macOS. @jherman3 It would be good to see precisely what you have tried — for example, the |
I tried setting it up with no modifications to the defaults, see this gist for the stack.yaml file and the terminal output. The results were the same whether I specified |
I saw #4380, but couldn't see anything there that's relevant for me. I don't have macports installed, and I uninstalled binutils from homebrew; as far as I know, the Apple supplied I also ran
|
I also did not find anything in that issue that resolves the issue. I don't have Homebrew binutils installed or any other tools on my PATH that would interfere. The result is the same after running |
Hm I have what is maybe related issue. I'm on MacoS Mojave 10.14.1 using Stack 1.9.1 If I follow the Quick Start from the Stack docs I get
for UPDATE: Solved by moving |
I just updated to stack-1.9.3 (from homebrew) and started with a fresh @jherman3 - want to give that a try? |
Updating Stack via homebrew and |
Well, that would seem to settle that, though I wish I knew what caused the root problem and what changed. Anyway, I'll close this issue. |
|
|
There's also some chance that this is due to an interrupted build: https://github.com/lehins/exec-kill-loop |
General summary/comments (optional)
When I create a new project and try to build it without changing anything, it fails. If I just run
ghc
by hand, it succeeds so I don't think it's a GHC issue. Could it be an incompatibility between stack and the MacOS command line tools? I just noticed this a few days ago, and there had been an update to the MacOS command line tools in the meantime...A few things I've tried:
curl -sSL https://get.haskellstack.org/ | sh
(no change)I'd appreciate any suggestions!
Steps to reproduce
stack new buildtest
cd buildtest
stack setup
stack build
Expected
I expect the virgin project to build cleanly.
Actual
Here's the output of verbose mode:
Stack version
OS details
Method of installation
The text was updated successfully, but these errors were encountered: