Skip to content

Trouble when calling cabal configure #2

@mvrozanti

Description

@mvrozanti

First of all, I want to thank you for the awesome work. It's a bummer this is discontinued.

Anyways, maybe someone is also having the same problem when cabal configure is called:

Warning: The configure command is a part of the legacy v1 style of cabal
usage.

Please switch to using either the new project style and the new-configure
command or the legacy v1-configure alias as new-style projects will become the
default in the next version of cabal-install. Please file a bug if you cannot
replicate a working v1- use case with the new-style commands.

For more information, see: https://wiki.haskell.org/Cabal/NewBuild

Resolving dependencies...
Warning: solver failed to find a solution:
Could not resolve dependencies:
[__0] trying: c-repl-0.1 (user goal)
[__1] unknown package: readline (dependency of c-repl)
[__1] fail (backjumping, conflict set: c-repl, readline)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: c-repl, readline
Trying configure anyway.
[1 of 1] Compiling Main             ( dist/setup/setup.hs, dist/setup/Main.o )

dist/setup/setup.hs:1:1: error:
    Could not find module ‘Prelude’
    There are files missing in the ‘base-4.12.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
  |
1 | #! /usr/bin/env runhaskell
  | ^

dist/setup/setup.hs:10:3: error:
    Could not find module ‘Control.Applicative’
    There are files missing in the ‘base-4.12.0.0’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
10 |   import Control.Applicative
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^

dist/setup/setup.hs:11:3: error:
    Could not find module ‘Distribution.Simple’
    There are files missing in the ‘Cabal-2.4.0.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
11 |   import Distribution.Simple
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^

dist/setup/setup.hs:12:3: error:
    Could not find module ‘Distribution.PackageDescription’
    There are files missing in the ‘Cabal-2.4.0.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
12 |   import Distribution.PackageDescription
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dist/setup/setup.hs:13:3: error:
    Could not find module ‘Distribution.Simple.LocalBuildInfo’
    There are files missing in the ‘Cabal-2.4.0.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
13 |   import Distribution.Simple.LocalBuildInfo
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dist/setup/setup.hs:14:3: error:
    Could not find module ‘Distribution.Simple.Setup’
    There are files missing in the ‘Cabal-2.4.0.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
14 |   import Distribution.Simple.Setup
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dist/setup/setup.hs:15:3: error:
    Could not find module ‘Distribution.Simple.Program’
    There are files missing in the ‘Cabal-2.4.0.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
15 |   import Distribution.Simple.Program
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dist/setup/setup.hs:16:3: error:
    Could not find module ‘Distribution.Simple.Utils’
    There are files missing in the ‘Cabal-2.4.0.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
16 |   import Distribution.Simple.Utils
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dist/setup/setup.hs:17:3: error:
    Could not find module ‘Distribution.Verbosity’
    There are files missing in the ‘Cabal-2.4.0.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
17 |   import Distribution.Verbosity
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dist/setup/setup.hs:18:3: error:
    Could not find module ‘System.FilePath’
    There are files missing in the ‘filepath-1.4.2.1’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
18 |   import System.FilePath ((</>))
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

dist/setup/setup.hs:19:3: error:
    Could not find module ‘System.Posix.Files’
    There are files missing in the ‘unix-2.7.2.2’ package,
    try running 'ghc-pkg check'.
    Use -v to see a list of the files searched for.
   |
19 |   import System.Posix.Files
   |   ^^^^^^^^^^^^^^^^^^^^^^^^^

I wonder if there's an easy fix?

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