sseefried / docker-build-ghc-android

A Dockerfile to build a GHC 7.8.3 ARM cross compiler for Android development
58 stars 13 forks source link

cabal install cabal-install failed #10

Closed lichengqian closed 9 years ago

lichengqian commented 9 years ago

failed install cabal-install-1.22.4.0, i think it should work for another version ? anybody knows?

sseefried commented 9 years ago

Was during the step "RUN ./update-host-cabal.sh" or further along?

Could you give me a little more information? The install worked when I last ran it and it installed cabal-install-1.22.4.0. Can you give me a full screen dump of what went wrong?

On my machine the following libraries were built, in this order:

directory-1.2.2.1 network-2.6.2.0 process1.2.3.0 Cabal-1.22.3.0 random-1.1 stm-2.4.4 text-1.2.1.1 transformers-0.4.3.0 mtl-2.2.1 parsec-3.1.9 network-uri-2.6.0.3 HTTP-4000.2.19 zlib-0.5.4.2 cabal-install-1.22.4.0

sseefried commented 9 years ago

One more question. Were you using Docker v1.6?

lichengqian commented 9 years ago

i use docker v1.6.2, it seems that error related to network-uri version dependency conflict. and yes , it is during the step "RUN ./update-host-cabal.sh" after cabal update cabal install cabal-install -- run this line error

maybe later i will post the detailed screen dump info. thanks very much

sseefried commented 9 years ago

I'm trying to work out how it could work differently on your machine. It's really interesting!

The version of network-uri that was installed on my machine was network-uri-2.6.0.3

What was your version?

sseefried commented 9 years ago

Also, I was using Docker v1.6.0. I wonder if being v1.6.2 could affect this. If so, I don't know how.

sseefried commented 9 years ago

Okay, I've changed the scriptlet to be more precise about the dependencies in 8871168e28831854d41e391519039e2e99213050. Let me know if it works for you.

lichengqian commented 9 years ago

Step 20 : RUN ./update-host-cabal.sh ---> Running in 58fd9656e8d4 cabal: out of memory (requested 1048576 bytes)

cabal update always failed, and i googled it and find many other people have the same problem,

it seems a ghc bug, not related to the Dockerfile script. i am trying to resove this.

lichengqian commented 9 years ago

i change the virtual machine' memory from 512M to 2G, and it works!