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

Trouble when calling cabal configure #2

Open
mvrozanti opened this issue Mar 16, 2019 · 2 comments
Open

Trouble when calling cabal configure #2

mvrozanti opened this issue Mar 16, 2019 · 2 comments

Comments

@mvrozanti
Copy link

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?

@evmar
Copy link
Owner

evmar commented Mar 17, 2019

This code hasn't been touched in 10 years(!), so I doubt it's useful to even try to get working. I think gccxml (which this used) was also abandoned. I think there are other C REPL projects around that are maintained.

@mvrozanti
Copy link
Author

Understandable. It's just that the few alternatives doesn't seem to be nearly as capable/organized as this. Oh well, thanks anyways!

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