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 fails on older versions of Cabal #2

Open
jtdaugherty opened this issue Nov 3, 2021 · 4 comments
Open

Compilation fails on older versions of Cabal #2

jtdaugherty opened this issue Nov 3, 2021 · 4 comments

Comments

@jtdaugherty
Copy link
Member

Failed to install cabal-dependency-licenses-0.2.0.1.1
Build log ( /root/.cabal/logs/ghc-8.6.5/cabal-dependency-licenses-0.2.0.1.1-KlrRJR0Y0fvC0fhyNt0kbp.log ):
cabal: Entering directory '.'
Configuring cabal-dependency-licenses-0.2.0.1.1...
Preprocessing executable 'cabal-dependency-licenses' for cabal-dependency-licenses-0.2.0.1.1..
Building executable 'cabal-dependency-licenses' for cabal-dependency-licenses-0.2.0.1.1..
[1 of 1] Compiling Main             ( src/Main.hs, dist/build/cabal-dependency-licenses/cabal-dependency-licenses-tmp/Main.o )

src/Main.hs:166:44: error:
    • Couldn't match type ‘[Char]’ with ‘ShortText.ShortText’
      Expected type: ShortText.ShortText
        Actual type: String
    • In the second argument of ‘($)’, namely ‘getSynopsis ipi’
      In the expression: fromShortText $ getSynopsis ipi
      In an equation for ‘synopsis’:
          synopsis = fromShortText $ getSynopsis ipi
    |
166 |             let synopsis = fromShortText $ getSynopsis ipi
    |                                            ^^^^^^^^^^^^^^^

src/Main.hs:167:48: error:
    • Couldn't match type ‘[Char]’ with ‘ShortText.ShortText’
      Expected type: ShortText.ShortText
        Actual type: String
    • In the second argument of ‘($)’, namely
        ‘InstalledPackageInfo.copyright ipi’
      In the expression:
        fromShortText $ InstalledPackageInfo.copyright ipi
      In an equation for ‘copyrightStr’:
          copyrightStr = fromShortText $ InstalledPackageInfo.copyright ipi
    |
167 |                 copyrightStr = fromShortText $ InstalledPackageInfo.copyright ipi
    |                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
cabal: Leaving directory '.'
Failed to run 'override-build': Exit code was 1.
Build failed
Traceback (most recent call last):

Full log at: https://launchpadlibrarian.net/564593068/buildlog_snap_ubuntu_focal_arm64_279b0e735120506b0844c87d4c17d6a7_BUILDING.txt.gz

@jtdaugherty
Copy link
Member Author

@3v1n0 - what version of the Cabal library is present in this build?

@3v1n0
Copy link

3v1n0 commented Nov 4, 2021

From the logs install is cabal-install=2.4.0.0-2build3 but not sure if that mismatches with the actual cabal.

The build happened in a build machine, so if you need further details that logs don't provide, let me know all you need and I can reproduce it locally.

@jtdaugherty
Copy link
Member Author

Can you find the version of the Cabal library in the build log? That is often different from the version of the cabal-install tool.

@3v1n0
Copy link

3v1n0 commented Dec 14, 2021

Library version seems to match though:

❯ cabal --version          
cabal-install version 2.4.0.0
compiled using version 2.4.0.1 of the Cabal library 

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