Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 862354 - dev-lang/ghc-9.0.2-r1 fails to emerge (terminate called after throwing an instance of 'std::out_of_range')
Summary: dev-lang/ghc-9.0.2-r1 fails to emerge (terminate called after throwing an ins...
Status: RESOLVED DUPLICATE of bug 837818
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Haskell Language team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-30 14:45 UTC by Pascal Jäger
Modified: 2022-07-31 06:51 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info '=dev-lang/ghc-9.0.2-r1::haskell (emerge--info,12.17 KB, text/plain)
2022-07-30 14:48 UTC, Pascal Jäger
Details
emerge -pqv '=dev-lang/ghc-9.0.2-r1::haskell (emerge-pqv,35.86 KB, text/plain)
2022-07-30 14:51 UTC, Pascal Jäger
Details
build.log (build.tar.xz,82.40 KB, application/x-xz)
2022-07-31 06:29 UTC, Pascal Jäger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pascal Jäger 2022-07-30 14:45:31 UTC
When I emerge ghc-9.0.2-r1 it fails. See the logs attached.

Reproducible: Always
Comment 1 Pascal Jäger 2022-07-30 14:48:48 UTC
Created attachment 795853 [details]
emerge --info '=dev-lang/ghc-9.0.2-r1::haskell
Comment 2 Pascal Jäger 2022-07-30 14:51:18 UTC
Created attachment 795856 [details]
emerge -pqv '=dev-lang/ghc-9.0.2-r1::haskell
Comment 3 Pascal Jäger 2022-07-30 14:56:04 UTC
Fails with:
"terminate called after throwing an instance of 'std::out_of_range'
  what():  nonstd::string_view::substr()
`x86_64-pc-linux-gnu-gcc' failed in phase `Assembler'. (Exit code: -6)"

I attached the build log.
Comment 4 Pascal Jäger 2022-07-30 15:06:03 UTC
Pastebin wasnt able to handle that many text, so I only uploaded the last 100 lines. 

https://pastebin.com/nFjJ5fgZ
Comment 5 Pascal Jäger 2022-07-30 20:52:25 UTC
To anyone having the same problem right now:
I added the useflag 'binary' to the dev-lang/ghc. That obviously fixes the build problems for now. 

I would still like to be able to build it myself, though. Its gentoo after all.
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-30 20:53:45 UTC
(In reply to Pascal Jäger from comment #4)
> Pastebin wasnt able to handle that many text, so I only uploaded the last
> 100 lines. 
> 
> https://pastebin.com/nFjJ5fgZ

Please attach it in full to this bug (compressed if necessary)
Comment 7 Pascal Jäger 2022-07-31 06:29:48 UTC
Created attachment 795946 [details]
build.log
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-31 06:51:17 UTC

*** This bug has been marked as a duplicate of bug 837818 ***