haskell / haskell/cabal

check fails "No (or multiple) ghc rts package is registered"

Đang mở
#775 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Cabal: other old-milestone: ⊥ type: bug
Ngôn ngữ chính
Haskell
Star
1.7k
Fork
750
Merge trung bình
4 ngày 3 giờ
Pull request đã merge (30 ngày)
28

Mô tả

(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 =

case PackageIndex.lookupPackageName index (PackageName "rts") of
[(_, [rts])]
-> PackageIndex.insert rts { Installed.ldOptions = [] } index
_ -> error "No (or multiple) ghc rts package is registered!!"
The reason is that we only store the transative deps of the package in the saved config, so the rts package is not found.

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.