
I'm trying to install the profiling version of the base libraries on Fedora 15. I set the profiling options in ~/.cabal/config then tried to reinstall but I get %cabal install base --reinstall Resolving dependencies... cabal: internal error: impossible Is there anything I can do now?

On Saturday 11 June 2011, 03:43:43, blackcat@pro-ns.net wrote:
I'm trying to install the profiling version of the base libraries on Fedora 15. I set the profiling options in ~/.cabal/config then tried to reinstall but I get
%cabal install base --reinstall Resolving dependencies... cabal: internal error: impossible
Is there anything I can do now?
You can't reinstall base, it's wired into the compiler. Never, *never* (unless you know exactly what you're doing and why it would work in your special circumstances) try to upgrade or reinstall boot libs (libraries needed for building the compiler, base, containers, array, directory, process, time, ghc-prim, integer-gmp/integer-simple, a couple more), that is almost guaranteed to break your installation very soon. Now, what you can do depends on how you got your GHC. If you got it via your system's package manager (yum, apt, zypper, or whatever Fedora uses), there ought to be a profiling package available for that, typically it would be named mumble-ghc-prof[iling]-jumble. That should have been built to work with the system GHC, install that. If you got your GHC from the ghc-site as a binary bundle, that should already include the profiling libraries, if not, that's probably a bug, report it (and to get the profiling libraries, you can build from source as an immediate measure). If you built GHC from source, the profiling libraries are by default also built, so to not have them, you must have told ghc not to build them in mk/build.mk, edit your desired build flavour to include GhcLibWays += -p [no guarantee for capitalisation, look it up in mk/build.mk.sample] and rebuild.

The profiling library for any library in Fedora goes by the name
ghc-{libraryname}-prof (installable via yum). As far as the base libraries
are concerned, you can try installing ghc-prof. This will pull in many of
the profiling libraries for the base packages.
Please note that the packaged profiling library is available via yum only if
the library itself is available as such.
https://admin.fedoraproject.org/pkgdb/users/packages/haskell-sig gives you a
list of haskell packages available via yum.
On Sat, Jun 11, 2011 at 7:13 AM,
I'm trying to install the profiling version of the base libraries on Fedora 15. I set the profiling options in ~/.cabal/config then tried to reinstall but I get
%cabal install base --reinstall Resolving dependencies... cabal: internal error: impossible
Is there anything I can do now?
_______________________________________________ Beginners mailing list Beginners@haskell.org http://www.haskell.org/mailman/listinfo/beginners
-- Regards Lakshmi Narasimhan T V

This worked for me with the base libraries but did not work with the mtl libraries. With a little sleuthing, I figured out that the libraries were built and seemingly installed in /usr/lib64/.... but ghc couldn't find them. Tweaking my LD_LIBRARY_PATH didn't help, so I just copied the libraries up a level in the directory heirarchy and all was fine. I don't know what the right thing to do was or if there's just a bug in the way that these libraries are installed in Fedora.
The profiling library for any library in Fedora goes by the name ghc-{libraryname}-prof (installable via yum). As far as the base libraries are concerned, you can try installing ghc-prof. This will pull in many of the profiling libraries for the base packages.
Please note that the packaged profiling library is available via yum only if the library itself is available as such. https://admin.fedoraproject.org/pkgdb/users/packages/haskell-sig [3] gives you a list of haskell packages available via yum.
participants (3)
-
blackcat@pro-ns.net
-
Daniel Fischer
-
lakshminaras2002@gmail.com