Closed kevroletin closed 6 years ago
I added -threaded argument to stack configuration files, and it solved the problem for me. But I don't sure if it a good solution because I don't understand why does stack build fails and cabal build works. https://github.com/qfpl/applied-fp-course/pull/46
Leaving this issue open for time being, as reference, in case others encounter the same issue.
But I will close #46 as the structure of the project has changed entirely, and travis builds the project on stack using multiple LTS versions, without error. https://travis-ci.org/qfpl/applied-fp-course
Ok. The latest version compiles without any problems on my machine (with stack 1.7.1).
Problem:
Both
stack build
andstack test
fail with undefined references to pthread symbols. I can fixstack build
by addingghc-options: -threaded
option into executable section of a .cabal file. But similar trick doesn't work for a test-suite section. So I don't sure where exact issue is:-threaded
to a test-suite section?I successfully built and tested all sections using nix-shell, and I used stack primarily for tooling. So this problem isn't a blocker since there are nix build files.
My environment
Error message