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

Cannnot compile #38

Open
jordi-petit opened this issue Sep 3, 2020 · 3 comments
Open

Cannnot compile #38

jordi-petit opened this issue Sep 3, 2020 · 3 comments

Comments

@jordi-petit
Copy link

Hello,

I cannot compile argon with stack nor cabal on a fresh installation of Ubuntu 20.20. Can you provide some hints as what to do?

I am attaching the output of the proposed installation commands:

> stack install argon
Writing implicit global project config file to: /home/me/.stack/global-project/stack.yaml
Note: You can change the snapshot via the resolver field there.
Using latest snapshot resolver: lts-16.12
Downloading lts-16.12 build plan ...
RedownloadInvalidResponse Request {
  host                 = "raw.githubusercontent.com"
  port                 = 443
  secure               = True
  requestHeaders       = []
  path                 = "/fpco/lts-haskell/master//lts-16.12.yaml"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 "/home/me/.stack/build-plan/lts-16.12.yaml" (Response {responseStatus = Status {statusCode = 404, statusMessage = "Not Found"}, responseVersion = HTTP/1.1, responseHeaders = [("Connection","keep-alive"),("Content-Length","14"),("Content-Type","text/plain; charset=utf-8"),("Content-Security-Policy","default-src 'none'; style-src 'unsafe-inline'; sandbox"),("Strict-Transport-Security","max-age=31536000"),("X-Content-Type-Options","nosniff"),("X-Frame-Options","deny"),("X-XSS-Protection","1; mode=block"),("Via","1.1 varnish (Varnish/6.0)"),("X-GitHub-Request-Id","3CF4:BA30:142FF35:158CA0C:5F50A696"),("Accept-Ranges","bytes"),("Date","Thu, 03 Sep 2020 08:17:26 GMT"),("Via","1.1 varnish"),("X-Served-By","cache-hhn4040-HHN"),("X-Cache","MISS, MISS"),("X-Cache-Hits","0, 0"),("X-Timer","S1599121046.450962,VS0,VE158"),("Vary","Authorization,Accept-Encoding"),("Access-Control-Allow-Origin","*"),("X-Fastly-Request-ID","7a1307a21b5c9698a0e821e11924f7db20b11d95"),("Expires","Thu, 03 Sep 2020 08:22:26 GMT"),("Source-Age","0")], responseBody = (), responseCookieJar = CJ {expose = []}, responseClose' = ResponseClose})


> cabal install argon
Warning: The install command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-install
command or the legacy v1-install 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

Config file path source is default config file.
Config file /home/me/.cabal/config not found.
Writing default configuration to /home/me/.cabal/config
Warning: The package list for 'hackage.haskell.org' does not exist. Run 'cabal
update' to download it.
cabal: There is no package named 'argon'.
You may need to run 'cabal update' to get the latest list of available
packages.



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

Please switch to using either the new project style and the new-update command
or the legacy v1-update 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

Downloading the latest package list from hackage.haskell.org


> cabal install argon
Warning: The install command is a part of the legacy v1 style of cabal usage.

Please switch to using either the new project style and the new-install
command or the legacy v1-install 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...
cabal: Could not resolve dependencies:
[__0] trying: argon-0.4.1.0 (user goal)
[__1] trying: pipes-files-0.1.3 (dependency of argon)
[__2] trying: hierarchy-1.0.2 (dependency of pipes-files)
[__3] next goal: ghc (dependency of argon)
[__3] rejecting: ghc-8.6.5/installed-8.6... (conflict: argon => ghc>=7.8 &&
<8)
[__3] rejecting: ghc-8.10.1 (unsupported spec-version 3.0)
[__3] rejecting: ghc-8.8.3, ghc-8.8.1, ghc-8.6.5, ghc-8.6.4, ghc-8.6.1,
ghc-8.4.4, ghc-8.4.3, ghc-8.4.1, ghc-8.2.2, ghc-8.2.1 (conflict: argon =>
ghc>=7.8 && <8)
[__3] fail (backjumping, conflict set: argon, ghc)
After searching the rest of the dependency tree exhaustively, these were the
goals I've had most trouble fulfilling: argon, base, haskell-src-exts, ghc,
pipes-files, hierarchy
@rubik
Copy link
Owner

rubik commented Sep 12, 2020

Hi Jordi, it's been a while since I updated Argon. It's built for older versions of GHC and it actually depends on its internals to parse the Haskell source code. So my guess is that it would require some updating. At the moment I cannot allocate any time to this, but if you create a PR I will be happy to review it.

@jordi-petit
Copy link
Author

jordi-petit commented Sep 14, 2020

Hi Michele, for the moment I got an old binary that works well. I will try to dig into cabal or stack and see if I can tell you something.

@rubik
Copy link
Owner

rubik commented Sep 18, 2020

Sounds good!

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