After upgrading to GHC7, all programs suddenly fail saying “Most RTS options are disabled. Link with -rtsopts to enable them.”

自作多情 提交于 2019-12-10 13:21:06

问题


Haskell tools compiled in the upgraded environment fail with this message, regardless of command line parameters.


回答1:


As it turns out, RTS options can pose a security issue, so they can be disabled in GHC7. Then, when a RTS option is passed to such a program, it fails.

The problem was that I had GHCRTS environment variable set, which is added to RTS options of all Haskell programs. Clearing this environment variable solved the issue.



来源:https://stackoverflow.com/questions/12133000/after-upgrading-to-ghc7-all-programs-suddenly-fail-saying-most-rts-options-are

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!