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

Compilation error #1

Open
achirkin opened this issue Mar 14, 2016 · 1 comment
Open

Compilation error #1

achirkin opened this issue Mar 14, 2016 · 1 comment

Comments

@achirkin
Copy link

Hi tolysz! Many thanks for such an initiative!
I followed your suggestion to use your source to have GHCJS aligned with stack:
resolver: lts-5.1
compiler: ghcjs-0.2.0.9005001_ghc-7.10.3
compiler-check: match-exact
setup-info:
ghcjs:
source:
ghcjs-0.2.0.9005001_ghc-7.10.3:
url: "https://tolysz.org/ghcjs/lts-5.1-9005001.tar.gz"

However, I got a following error:

Cabal-1.22.7.0: copy/register
Progress: 40/56
--  While building package cpphs-1.19.3 using:
      /home/achirkin/.stack/setup-exe-cache/x86_64-linux/setup-Simple-Cabal-1.22.4.0-ghc-7.10.3
--builddir=.stack-work/dist/x86_64-linux/Cabal-1.22.4.0 build --ghc-options " -ddump-hi -ddump-to-file"
    Process exited with code: ExitFailure 1
     Logs have been written to: /home/achirkin/.stack/programs/x86_64-linux/ghcjs-0.2.0.9005001_ghc=7.10.3/src/.stack-work/logs/cpphs-1.19.3.log

Here are the logs:

Configuring cpphs-1.19.3...
Warning: This package indirectly depends on multiple versions of the same
package. This is highly likely to cause a compile failure.
package old-time-1.1.0.3 requires old-locale-1.0.0.7
package cpphs-1.19.3 requires old-locale-1.0.0.7
Building cpphs-1.19.3...
Preprocessing library cpphs-1.19.3...
<command line>: cannot satisfy -package-id old-locale-1.0.0.7-8d155d9be6e318869cf152bd0c621225: 
    old-locale-1.0.0.7-8d155d9be6e318869cf152bd0c621225 is shadowed by package old-locale-1.0.0.7-0db938eb141b01f4936a21aef6b843bf
    (use -v for more information)

So looks like the problem is that package old-locale gets compiled twice;
even though it is the same version, random ids differ and cause an error.
Where should I look into to try to resolve this issue?

@tolysz
Copy link
Owner

tolysz commented Mar 17, 2016

I test it my code works by using:
https://github.com/tolysz/video/blob/ghcjs/client/build2.sh
within client folder
With an updated stack.yaml from that folder

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

2 participants