Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

like image 303
Petr Avatar asked Aug 26 '12 19:08

Petr


1 Answers

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.

like image 176
Petr Avatar answered Oct 01 '22 20:10

Petr