Skip to content
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

Cannot install with stack #18

Open
applePrincess opened this issue Nov 26, 2017 · 2 comments
Open

Cannot install with stack #18

applePrincess opened this issue Nov 26, 2017 · 2 comments

Comments

@applePrincess
Copy link

I tried to install with stack using the cabal file below

executable music
  hs-source-dirs:      src
  main-is:             Main.hs
  default-language:    Haskell2010
  build-depends:       base >= 4.7 && < 5
                     , Euterpea
                     , HSoM

and stack file

allow-newer: true
resolver: ghc-8.2.1

Other than showing above is just simple template of stack.

And this is resolved dependencies, but cannot build - output blow

primitive-0.6.2.0: configure
PortMidi-0.1.5.2: download
heap-1.0.3: download
lazysmallcheck-0.6: download
primitive-0.6.2.0: build
heap-1.0.3: configure
heap-1.0.3: build
lazysmallcheck-0.6: configure
heap-1.0.3: copy/register
lazysmallcheck-0.6: build
PortMidi-0.1.5.2: configure
lazysmallcheck-0.6: copy/register
primitive-0.6.2.0: copy/register
PortMidi-0.1.5.2: build
random-1.1: configure
random-1.1: build
stm-2.4.4.1: configure
random-1.1: copy/register
stm-2.4.4.1: build
tf-random-0.5: configure
PortMidi-0.1.5.2: copy/register
tf-random-0.5: build
stm-2.4.4.1: copy/register
tf-random-0.5: copy/register
QuickCheck-2.10.1: configure
QuickCheck-2.10.1: build
QuickCheck-2.10.1: copy/register
HCodecs-0.5: download
Stream-0.4.7.2: download
Stream-0.4.7.2: configure
Stream-0.4.7.2: build
HCodecs-0.5: configure
Stream-0.4.7.2: copy/register
arrows-0.4.4.1: download
HCodecs-0.5: build
arrows-0.4.4.1: configure
arrows-0.4.4.1: build
arrows-0.4.4.1: copy/register
HCodecs-0.5: copy/register
StateVar-1.1.0.4: configure
fixed-0.2.1.1: download
ObjectName-1.1.0.1: download
StateVar-1.1.0.4: build
ObjectName-1.1.0.1: configure
StateVar-1.1.0.4: copy/register
half-0.2.2.3: download
ObjectName-1.1.0.1: build
fixed-0.2.1.1: configure
ObjectName-1.1.0.1: copy/register
markov-chain-0.0.3.4: download
fixed-0.2.1.1: build
Euterpea-2.0.4: configure
fixed-0.2.1.1: copy/register
pure-fft-0.2.0: download
Euterpea-2.0.4: build
half-0.2.2.3: configure
half-0.2.2.3: build
markov-chain-0.0.3.4: configure
half-0.2.2.3: copy/register
pure-fft-0.2.0: configure
markov-chain-0.0.3.4: build
markov-chain-0.0.3.4: copy/register
pure-fft-0.2.0: build
text-1.2.2.2: configure
pure-fft-0.2.0: copy/register
text-1.2.2.2: build
Euterpea-2.0.4: download
Euterpea-2.0.4: configure
Euterpea-2.0.4: build
Euterpea-2.0.4: copy/register
removeDirectoryRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:removePathRecursive:removeContentsRecursive:RemoveDirectory "D:\\Users\\applePrincess\\AppData\\Local\\Temp\\stack13020\\Euterpea-2.0.4\\.stack-work\\dist\\e53504d9\\setup": unsatisfied constraints (Directory is not empty.)

and if I run stack build again, the installation is succeeded.

OS: Windows 10 (64-bit)
stack version: Version 1.5.1, Git revision 600c1f01435a10d127938709556c1682ecfd694e x86_64 hpack-0.17.1

@seanmcl
Copy link

seanmcl commented Oct 26, 2018

Is Stack support on the horizon? Thanks.

@donya
Copy link
Member

donya commented Oct 26, 2018

Is Stack support on the horizon? Thanks.

The short answer is no. Cabal is the only officially supported package manager right now (and only regular cabal, not special versions of it).

The reason for this is that I currently lack the time to continue digging through Stack's documentation to (1) have a well-documented solution that doesn't suffer from any weird build issues like the above and (2) have a clear procedure to verify that the library is fine with Stack as updates happen over time.

I have received a number of "just put this file in the repo" types of suggestions for Stack support over time from the Euterpea user base, but all were noticably different and lacked any sort of acompanying explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants