With the release of Sabayon 9 and the incorporation of Hardened Xmonad
can no longer recompile scripts and when I try to compile it using cabal
I get an error that it could not link.

This is the error message trying to compile xmonad
cabal install --reinstall xmonad
Resolving dependencies...
Configuring xmonad-0.10...
Preprocessing library xmonad-0.10...
Preprocessing executables for xmonad-0.10...
Building xmonad-0.10...
[1 of 8] Compiling XMonad.StackSet  ( XMonad/StackSet.hs,
dist/build/XMonad/StackSet.o )
[2 of 8] Compiling XMonad.Core      ( XMonad/Core.hs,
dist/build/XMonad/Core.o )
[3 of 8] Compiling XMonad.Layout    ( XMonad/Layout.hs,
dist/build/XMonad/Layout.o )
[4 of 8] Compiling XMonad.Operations ( XMonad/Operations.hs,
dist/build/XMonad/Operations.o )
[5 of 8] Compiling XMonad.ManageHook ( XMonad/ManageHook.hs,
dist/build/XMonad/ManageHook.o )
[6 of 8] Compiling XMonad.Config    ( XMonad/Config.hs,
dist/build/XMonad/Config.o )
[7 of 8] Compiling XMonad.Main      ( dist/build/XMonad/Main.hs,
dist/build/XMonad/Main.o )
[8 of 8] Compiling XMonad           ( XMonad.hs, dist/build/XMonad.o )
Registering xmonad-0.10...
[ 1 of 10] Compiling XMonad.StackSet  ( XMonad/StackSet.hs,
dist/build/xmonad/xmonad-tmp/XMonad/StackSet.o )
[ 2 of 10] Compiling XMonad.Core      ( XMonad/Core.hs,
dist/build/xmonad/xmonad-tmp/XMonad/Core.o )
[ 3 of 10] Compiling XMonad.Layout    ( XMonad/Layout.hs,
dist/build/xmonad/xmonad-tmp/XMonad/Layout.o )
[ 4 of 10] Compiling XMonad.Operations ( XMonad/Operations.hs,
dist/build/xmonad/xmonad-tmp/XMonad/Operations.o )
[ 5 of 10] Compiling XMonad.ManageHook ( XMonad/ManageHook.hs,
dist/build/xmonad/xmonad-tmp/XMonad/ManageHook.o )
[ 6 of 10] Compiling XMonad.Config    ( XMonad/Config.hs,
dist/build/xmonad/xmonad-tmp/XMonad/Config.o )
[ 7 of 10] Compiling XMonad.Main      (
dist/build/xmonad/xmonad-tmp/XMonad/Main.hs,
dist/build/xmonad/xmonad-tmp/XMonad/Main.o )
[ 8 of 10] Compiling Paths_xmonad     (
dist/build/autogen/Paths_xmonad.hs,
dist/build/xmonad/xmonad-tmp/Paths_xmonad.o )

dist/build/autogen/Paths_xmonad.hs:1:8:
    Warning: In the use of `catch'
             (imported from Prelude, but defined in System.IO.Error):
             Deprecated: "Please use the new exceptions variant,
Control.Exception.catch"
[ 9 of 10] Compiling XMonad           ( XMonad.hs,
dist/build/xmonad/xmonad-tmp/XMonad.o )
[10 of 10] Compiling Main             ( Main.hs,
dist/build/xmonad/xmonad-tmp/Main.o )
Linking dist/build/xmonad/xmonad ...
/usr/lib/gcc/x86_64-pc-linux-gnu/4.6.2/../../../../x86_64-pc-linux-gnu/bin/ld:
dist/build/xmonad/xmonad-tmp/Main.o: relocation R_X86_64_32S against
`stg_CAF_BLACKHOLE_info' can not be used when making a shared object;
recompile with -fPIC
dist/build/xmonad/xmonad-tmp/Main.o: could not read symbols: Bad value
collect2: ld returned 1 exit status
cabal: Error: some packages failed to install:
xmonad-0.10 failed during the building phase. The exception was:
ExitFailure 1


This is a bug report on it not being able to compile new xmonad.hs's
http://bugs.sabayon.org/show_bug.cgi?id=3303#c3


Reply via email to