Skip to content

Compilation error #1

Description

@achirkin

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions