Build with stack on Fedora linux

132 views
Skip to first unread message

Patrik keller

unread,
Feb 18, 2021, 4:05:29 PM2/18/21
to hledger

Hi everybody,

I tried to compile hldeger with `stack --version ; stack build` on Fedora 33. I get this output.

Version 2.5.1, Git revision d6ab861544918185236cf826cb2028abb266d6d5 x86_64 hpack-0.33.0
/home/patrik/devel/hledger/hledger-lib/hledger-lib.cabal was generated with a newer version of hpack, please upgrade and try again.
/home/patrik/devel/hledger/hledger/hledger.cabal was generated with a newer version of hpack, please upgrade and try again.
/home/patrik/devel/hledger/hledger-ui/hledger-ui.cabal was generated with a newer version of hpack, please upgrade and try again.
/home/patrik/devel/hledger/hledger-web/hledger-web.cabal was generated with a newer version of hpack, please upgrade and try again.
Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Preparing to download ghc-tinfo6-8.10.3 ...
Download expectation failure: HttpExceptionRequest Request {
  host                 = "downloads.haskell.org"
  port                 = 443
  secure               = True
  requestHeaders       = [("User-Agent","The Haskell Stack")]
  path                 = "/~ghc/8.10.3/ghc-8.10.3-x86_64-fedora27-linux.tar.xz"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 ConnectionTimeout

Any hints on how to fix this? Why does it try to download a fedora27 build? I ran `stack upgrade` before, why do you have a newer version of hpack?

Thanks for your support!

Best Patrik

Simon Michael

unread,
Feb 18, 2021, 4:50:56 PM2/18/21
to hledger

On Feb 18, 2021, at 11:40 AM, Patrik keller <pat...@pkel.dev> wrote:

Hi everybody,

I tried to compile hldeger with `stack --version ; stack build` on Fedora 33. I get this output.


Hi Patrik,

Sorry it didn't work for you.

Version 2.5.1, Git revision d6ab861544918185236cf826cb2028abb266d6d5 x86_64 hpack-0.33.0
/home/patrik/devel/hledger/hledger-lib/hledger-lib.cabal was generated with a newer version of hpack, please upgrade and try again.
/home/patrik/devel/hledger/hledger/hledger.cabal was generated with a newer version of hpack, please upgrade and try again.
/home/patrik/devel/hledger/hledger-ui/hledger-ui.cabal was generated with a newer version of hpack, please upgrade and try again.
/home/patrik/devel/hledger/hledger-web/hledger-web.cabal was generated with a newer version of hpack, please upgrade and try again.

I hadn't noticed that the cabal files got regenerated by a newer version of hpack during #1471, thanks for the report. I have regenerated them with hpack 0.33, the version in current stack, to prevent such warnings. (They can often be ignored, but are annoying.)

Preparing to install GHC (tinfo6) to an isolated location.
This will not interfere with any system-level installation.
Preparing to download ghc-tinfo6-8.10.3 ...
Download expectation failure: HttpExceptionRequest Request {
  host                 = "downloads.haskell.org"
  port                 = 443
  secure               = True
  requestHeaders       = [("User-Agent","The Haskell Stack")]
  path                 = "/~ghc/8.10.3/ghc-8.10.3-x86_64-fedora27-linux.tar.xz"
  queryString          = ""
  method               = "GET"
  proxy                = Nothing
  rawBody              = False
  redirectCount        = 10
  responseTimeout      = ResponseTimeoutDefault
  requestVersion       = HTTP/1.1
}
 ConnectionTimeout

Any hints on how to fix this? Why does it try to download a fedora27 build?


I don't have experience with stack/ghc on fedora, so I'm not sure if the odd-looking ghc file name is normal. But it seems the main problem is that stack timed out trying to download ghc from haskell.org. Such transient network failures do happen. Ideas: keep trying and see if it goes away, check network connectivity, and check the stack issue tracker for recent reports of this.

Patrik keller

unread,
Feb 19, 2021, 3:26:21 AM2/19/21
to hle...@googlegroups.com

Thanks for your help. I can rule most network failures. The following command does not time out.

curl "https://downloads.haskell.org/~ghc/8.10.3/ghc-8.10.3-x86_64-fedora27-linux.tar.xz" -H "User-Agent: The Haskell Stack" -o /dev/null

The problem is probably with stack. I will stop bothering you.

The hpack warnings are gone!

--
You received this message because you are subscribed to the Google Groups "hledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hledger+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hledger/D32D354C-C76C-44D7-8365-DF8F0CA4CA45%40joyful.com.

Patrik keller

unread,
May 20, 2021, 3:16:25 PM5/20/21
to hledger

For completeness: I solved this issue by doing nothing and trying again after a few months (upgraded to Fedora 34 in the meantime).

Reply all
Reply to author
Forward
0 new messages