check fails "No (or multiple) ghc rts package is registered"
未关闭
Cabal: other
old-milestone: ⊥
type: bug
- 主要语言
- Haskell
- 星标
- 1.7k
- 派生
- 750
- 平均合并
- 4 天 3 小时
- 30 天内合并 PR
- 28
描述
(Imported from [Trac #785](http://hackage.haskell.org/trac/hackage/ticket/785), reported by @dcoutts on 2011-01-06)
For packages that do not depend indirectly on the rts package (ie that have no dependencies specified at all), then the check in the hsc2hs package for the rts package fails.
hackRtsPackage index =The reason is that we only store the transative deps of the package in the saved config, so the rts package is not found.
case PackageIndex.lookupPackageName index (PackageName "rts") of
[(_, [rts])]
-> PackageIndex.insert rts { Installed.ldOptions = [] } index
_ -> error "No (or multiple) ghc rts package is registered!!"
This is of course not a helpful error message. We should remove this check from this place and add something else elsewhere with a more helpful error message. We could do a sanity check during configure or build (but note that we don't do it anymore when configuring ghc itself due to the odd things ghc does during its own build process).
We should probably have a build warning about missing the base package.
贡献指南
评估
这个 Issue 还没有评估数据。