* Package: dev-haskell/cabal-3.2.1.0-r1  * Repository: gentoo  * Maintainer: haskell@gentoo.org  * USE: abi_x86_64 amd64 elibc_glibc kernel_linux userland_GNU  * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory >>> Unpacking source... >>> Unpacking Cabal-3.2.1.0.tar.gz to /var/tmp/portage/dev-haskell/cabal-3.2.1.0-r1/work >>> Source unpacked in /var/tmp/portage/dev-haskell/cabal-3.2.1.0-r1/work shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory >>> Preparing source in /var/tmp/portage/dev-haskell/cabal-3.2.1.0-r1/work/Cabal-3.2.1.0 ... >>> Source prepared. shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory >>> Configuring source in /var/tmp/portage/dev-haskell/cabal-3.2.1.0-r1/work/Cabal-3.2.1.0 ... * Using cabal-3.4.0.0. * Prepending /usr/lib64/ghc-9.0.1 to LD_LIBRARY_PATH /usr/bin/ghc -package Cabal-3.4.0.0 --make /var/tmp/portage/dev-haskell/cabal-3.2.1.0-r1/work/Cabal-3.2.1.0/Setup.hs -j4 +RTS -A256M -qb0 -RTS -threaded -ignore-package=pulseaudio -ignore-package=kinds -dynamic -o setup [ 1 of 237] Compiling Distribution.Compat.Async ( Distribution/Compat/Async.hs, Distribution/Compat/Async.o ) [ 2 of 237] Compiling Distribution.Compat.Binary ( Distribution/Compat/Binary.hs, Distribution/Compat/Binary.o ) [ 3 of 237] Compiling Distribution.Compat.Directory ( Distribution/Compat/Directory.hs, Distribution/Compat/Directory.o ) [ 4 of 237] Compiling Distribution.Compat.Exception ( Distribution/Compat/Exception.hs, Distribution/Compat/Exception.o ) [ 5 of 237] Compiling Distribution.Compat.FilePath ( Distribution/Compat/FilePath.hs, Distribution/Compat/FilePath.o ) [ 6 of 237] Compiling Distribution.Compat.Internal.TempFile ( Distribution/Compat/Internal/TempFile.hs, Distribution/Compat/Internal/TempFile.o ) [ 7 of 237] Compiling Distribution.Compat.MonadFail ( Distribution/Compat/MonadFail.hs, Distribution/Compat/MonadFail.o ) [ 8 of 237] Compiling Distribution.Compat.Newtype ( Distribution/Compat/Newtype.hs, Distribution/Compat/Newtype.o ) [ 9 of 237] Compiling Distribution.Compat.Process ( Distribution/Compat/Process.hs, Distribution/Compat/Process.o ) [ 10 of 237] Compiling Distribution.Compat.Stack ( Distribution/Compat/Stack.hs, Distribution/Compat/Stack.o ) [ 11 of 237] Compiling Distribution.Compat.Typeable ( Distribution/Compat/Typeable.hs, Distribution/Compat/Typeable.o ) [ 12 of 237] Compiling Distribution.PackageDescription.Utils ( Distribution/PackageDescription/Utils.hs, Distribution/PackageDescription/Utils.o ) [ 13 of 237] Compiling Distribution.Simple.Utils.Json ( Distribution/Simple/Utils/Json.hs, Distribution/Simple/Utils/Json.o ) [ 14 of 237] Compiling Distribution.Utils.Base62 ( Distribution/Utils/Base62.hs, Distribution/Utils/Base62.o ) [ 15 of 237] Compiling Distribution.Utils.MD5 ( Distribution/Utils/MD5.hs, Distribution/Utils/MD5.o ) [ 16 of 237] Compiling Distribution.Utils.String ( Distribution/Utils/String.hs, Distribution/Utils/String.o ) [ 17 of 237] Compiling Distribution.Utils.Structured ( Distribution/Utils/Structured.hs, Distribution/Utils/Structured.o ) Distribution/Utils/Structured.hs:90:1: warning: [-Wdeprecations] Module ‘Data.ByteString.Lazy.Builder’ is deprecated: Use Data.ByteString.Builder instead  | 90 | import qualified Data.ByteString.Lazy.Builder as Builder  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ 18 of 237] Compiling Distribution.Compat.Semigroup ( Distribution/Compat/Semigroup.hs, Distribution/Compat/Semigroup.o ) [ 19 of 237] Compiling Distribution.Compat.Prelude ( Distribution/Compat/Prelude.hs, Distribution/Compat/Prelude.o ) [ 20 of 237] Compiling Distribution.Utils.ShortText ( Distribution/Utils/ShortText.hs, Distribution/Utils/ShortText.o ) [ 21 of 237] Compiling Distribution.Utils.Progress ( Distribution/Utils/Progress.hs, Distribution/Utils/Progress.o ) [ 22 of 237] Compiling Distribution.Utils.MapAccum ( Distribution/Utils/MapAccum.hs, Distribution/Utils/MapAccum.o ) [ 23 of 237] Compiling Distribution.Utils.IOData ( Distribution/Utils/IOData.hs, Distribution/Utils/IOData.o ) [ 24 of 237] Compiling Distribution.Utils.Generic ( Distribution/Utils/Generic.hs, Distribution/Utils/Generic.o ) Distribution/Utils/Generic.hs:260:38: error: • Couldn't match type: IO a with: GHC.Types.IO a Expected: String -> GHC.Types.IO a Actual: String -> IO a • In the first argument of ‘(.)’, namely ‘action’ In the second argument of ‘(>>=)’, namely ‘action . ignoreBOM . fromUTF8LBS’ In the expression: BS.hGetContents hnd >>= action . ignoreBOM . fromUTF8LBS • Relevant bindings include action :: String -> IO a (bound at Distribution/Utils/Generic.hs:258:27) withUTF8FileContents :: FilePath -> (String -> IO a) -> IO a (bound at Distribution/Utils/Generic.hs:258:1)  | 260 | (\hnd -> BS.hGetContents hnd >>= action . ignoreBOM . fromUTF8LBS)  | ^^^^^^ [ 25 of 237] Compiling Distribution.Types.Condition ( Distribution/Types/Condition.hs, Distribution/Types/Condition.o ) [ 26 of 237] Compiling Distribution.TestSuite ( Distribution/TestSuite.hs, Distribution/TestSuite.o ) [ 29 of 237] Compiling Distribution.Simple.InstallDirs.Internal ( Distribution/Simple/InstallDirs/Internal.hs, Distribution/Simple/InstallDirs/Internal.o ) [ 30 of 237] Compiling Distribution.Simple.Flag ( Distribution/Simple/Flag.hs, Distribution/Simple/Flag.o ) [ 31 of 237] Compiling Distribution.Simple.CCompiler ( Distribution/Simple/CCompiler.hs, Distribution/Simple/CCompiler.o ) [ 32 of 237] Compiling Distribution.Parsec.Position ( Distribution/Parsec/Position.hs, Distribution/Parsec/Position.o ) [ 33 of 237] Compiling Distribution.Parsec.Warning ( Distribution/Parsec/Warning.hs, Distribution/Parsec/Warning.o ) [ 35 of 237] Compiling Distribution.Parsec.Error ( Distribution/Parsec/Error.hs, Distribution/Parsec/Error.o ) [ 36 of 237] Compiling Distribution.PackageDescription.Quirks ( Distribution/PackageDescription/Quirks.hs, Distribution/PackageDescription/Quirks.o ) [ 37 of 237] Compiling Distribution.GetOpt ( Distribution/GetOpt.hs, Distribution/GetOpt.o ) [ 38 of 237] Compiling Distribution.Fields.LexerMonad ( Distribution/Fields/LexerMonad.hs, Distribution/Fields/LexerMonad.o ) [ 39 of 237] Compiling Distribution.Fields.Lexer ( Distribution/Fields/Lexer.hs, Distribution/Fields/Lexer.o ) [ 40 of 237] Compiling Distribution.Fields.Field ( Distribution/Fields/Field.hs, Distribution/Fields/Field.o ) [ 41 of 237] Compiling Distribution.Fields.Parser ( Distribution/Fields/Parser.hs, Distribution/Fields/Parser.o ) [ 42 of 237] Compiling Distribution.Compat.ResponseFile ( Distribution/Compat/ResponseFile.hs, Distribution/Compat/ResponseFile.o ) Distribution/Compat/ResponseFile.hs:60:21: error: • Couldn't match type: f0 [a0] with: GHC.Stack.Types.HasCallStack => GHC.Types.IO [String] Expected: [String] -> IO [String] Actual: [String] -> f0 [a0] • In the expression: fmap concat . mapM (expand n dir) In an equation for ‘go’: go n dir | n >= 0 = fmap concat . mapM (expand n dir) | otherwise = const $ hPutStrLn stderr "Error: response file recursion limit exceeded." >> exitFailure In an equation for ‘expandResponse’: expandResponse = go recursionLimit "." where recursionLimit = 100 go :: Int -> FilePath -> [String] -> IO [String] go n dir | n >= 0 = fmap concat . mapM (expand n dir) | otherwise = const $ hPutStrLn stderr "Error: response file recursion limit exceeded." >> exitFailure expand :: Int -> FilePath -> String -> IO [String] ....  | 60 | | n >= 0 = fmap concat . mapM (expand n dir)  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Distribution/Compat/ResponseFile.hs:60:41: error: • Couldn't match type: GHC.Stack.Types.HasCallStack => GHC.Types.IO [String] with: f0 [a0] Expected: String -> f0 [a0] Actual: String -> IO [String] • In the first argument of ‘mapM’, namely ‘(expand n dir)’ In the second argument of ‘(.)’, namely ‘mapM (expand n dir)’ In the expression: fmap concat . mapM (expand n dir)  | 60 | | n >= 0 = fmap concat . mapM (expand n dir)  | ^^^^^^^^^^^^ Distribution/Compat/ResponseFile.hs:61:21: error: • Couldn't match type: GHC.Types.IO b0 with: GHC.Stack.Types.HasCallStack => GHC.Types.IO [String] Expected: [String] -> IO [String] Actual: [String] -> GHC.Types.IO b0 • In the expression: const $ hPutStrLn stderr "Error: response file recursion limit exceeded." >> exitFailure In an equation for ‘go’: go n dir | n >= 0 = fmap concat . mapM (expand n dir) | otherwise = const $ hPutStrLn stderr "Error: response file recursion limit exceeded." >> exitFailure In an equation for ‘expandResponse’: expandResponse = go recursionLimit "." where recursionLimit = 100 go :: Int -> FilePath -> [String] -> IO [String] go n dir | n >= 0 = fmap concat . mapM (expand n dir) | otherwise = const $ hPutStrLn stderr "Error: response file recursion limit exceeded." >> exitFailure expand :: Int -> FilePath -> String -> IO [String] ....  | 61 | | otherwise = const $ hPutStrLn stderr "Error: response file recursion limit exceeded." >> exitFailure  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Distribution/Compat/ResponseFile.hs:68:27: error: • Couldn't match type: GHC.Stack.Types.HasCallStack => GHC.Types.IO [String] with: GHC.Types.IO [String] Expected: [String] -> GHC.Types.IO [String] Actual: [String] -> IO [String] • In the first argument of ‘(=<<)’, namely ‘go (n - 1) (takeDirectory f)’ In the expression: go (n - 1) (takeDirectory f) =<< unescapeArgs <$> readFile f In an equation for ‘readRecursively’: readRecursively n f = go (n - 1) (takeDirectory f) =<< unescapeArgs <$> readFile f  | 68 | readRecursively n f = go (n - 1) (takeDirectory f) =<< unescapeArgs <$> readFile f  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ 43 of 237] Compiling Distribution.Compat.Parsing ( Distribution/Compat/Parsing.hs, Distribution/Compat/Parsing.o ) [ 44 of 237] Compiling Distribution.Compat.GetShortPathName ( Distribution/Compat/GetShortPathName.hs, Distribution/Compat/GetShortPathName.o ) [ 45 of 237] Compiling Distribution.Compat.Environment ( Distribution/Compat/Environment.hs, Distribution/Compat/Environment.o ) [ 46 of 237] Compiling Distribution.Compat.DList ( Distribution/Compat/DList.hs, Distribution/Compat/DList.o ) [ 47 of 237] Compiling Distribution.Lex ( Distribution/Lex.hs, Distribution/Lex.o ) [ 48 of 237] Compiling Distribution.Compat.Lens ( Distribution/Compat/Lens.hs, Distribution/Compat/Lens.o ) [ 49 of 237] Compiling Distribution.Types.CondTree ( Distribution/Types/CondTree.hs, Distribution/Types/CondTree.o ) [ 50 of 237] Compiling Distribution.Compat.CreatePipe ( Distribution/Compat/CreatePipe.hs, Distribution/Compat/CreatePipe.o ) [ 51 of 237] Compiling Distribution.Compat.CopyFile ( Distribution/Compat/CopyFile.hs, Distribution/Compat/CopyFile.o ) [ 52 of 237] Compiling Distribution.Compat.CharParsing ( Distribution/Compat/CharParsing.hs, Distribution/Compat/CharParsing.o ) [ 53 of 237] Compiling Distribution.CabalSpecVersion ( Distribution/CabalSpecVersion.hs, Distribution/CabalSpecVersion.o ) [ 54 of 237] Compiling Distribution.SPDX.LicenseListVersion ( Distribution/SPDX/LicenseListVersion.hs, Distribution/SPDX/LicenseListVersion.o ) [ 55 of 237] Compiling Distribution.Pretty ( Distribution/Pretty.hs, Distribution/Pretty.o ) [ 96 of 237] Compiling Distribution.Compat.Graph ( Distribution/Compat/Graph.hs, Distribution/Compat/Graph.o ) [ 97 of 237] Compiling Distribution.Utils.UnionFind ( Distribution/Utils/UnionFind.hs, Distribution/Utils/UnionFind.o ) [ 98 of 237] Compiling Distribution.Verbosity.Internal ( Distribution/Verbosity/Internal.hs, Distribution/Verbosity/Internal.o ) /usr/bin/ghc -package Cabal-3.4.0.0 --make /var/tmp/portage/dev-haskell/cabal-3.2.1.0-r1/work/Cabal-3.2.1.0/Setup.hs -j4 +RTS -A256M -qb0 -RTS -threaded -ignore-package=pulseaudio -ignore-package=kinds -o setup [ 1 of 237] Compiling Distribution.Compat.Async ( Distribution/Compat/Async.hs, Distribution/Compat/Async.o ) [ 2 of 237] Compiling Distribution.Compat.Binary ( Distribution/Compat/Binary.hs, Distribution/Compat/Binary.o ) [ 3 of 237] Compiling Distribution.Compat.Directory ( Distribution/Compat/Directory.hs, Distribution/Compat/Directory.o ) [ 4 of 237] Compiling Distribution.Compat.Exception ( Distribution/Compat/Exception.hs, Distribution/Compat/Exception.o ) [ 5 of 237] Compiling Distribution.Compat.FilePath ( Distribution/Compat/FilePath.hs, Distribution/Compat/FilePath.o ) [ 6 of 237] Compiling Distribution.Compat.Internal.TempFile ( Distribution/Compat/Internal/TempFile.hs, Distribution/Compat/Internal/TempFile.o ) [ 7 of 237] Compiling Distribution.Compat.MonadFail ( Distribution/Compat/MonadFail.hs, Distribution/Compat/MonadFail.o ) [ 8 of 237] Compiling Distribution.Compat.Newtype ( Distribution/Compat/Newtype.hs, Distribution/Compat/Newtype.o ) [ 9 of 237] Compiling Distribution.Compat.Process ( Distribution/Compat/Process.hs, Distribution/Compat/Process.o ) [ 10 of 237] Compiling Distribution.Compat.Stack ( Distribution/Compat/Stack.hs, Distribution/Compat/Stack.o ) [ 11 of 237] Compiling Distribution.Compat.Typeable ( Distribution/Compat/Typeable.hs, Distribution/Compat/Typeable.o ) [ 12 of 237] Compiling Distribution.PackageDescription.Utils ( Distribution/PackageDescription/Utils.hs, Distribution/PackageDescription/Utils.o ) [ 13 of 237] Compiling Distribution.Simple.Utils.Json ( Distribution/Simple/Utils/Json.hs, Distribution/Simple/Utils/Json.o ) [ 14 of 237] Compiling Distribution.Utils.Base62 ( Distribution/Utils/Base62.hs, Distribution/Utils/Base62.o ) [ 15 of 237] Compiling Distribution.Utils.MD5 ( Distribution/Utils/MD5.hs, Distribution/Utils/MD5.o ) [ 16 of 237] Compiling Distribution.Utils.String ( Distribution/Utils/String.hs, Distribution/Utils/String.o ) [ 17 of 237] Compiling Distribution.Utils.Structured ( Distribution/Utils/Structured.hs, Distribution/Utils/Structured.o ) Distribution/Utils/Structured.hs:90:1: warning: [-Wdeprecations] Module ‘Data.ByteString.Lazy.Builder’ is deprecated: Use Data.ByteString.Builder instead  | 90 | import qualified Data.ByteString.Lazy.Builder as Builder  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [ 18 of 237] Compiling Distribution.Compat.Semigroup ( Distribution/Compat/Semigroup.hs, Distribution/Compat/Semigroup.o ) [ 19 of 237] Compiling Distribution.Compat.Prelude ( Distribution/Compat/Prelude.hs, Distribution/Compat/Prelude.o ) [ 20 of 237] Compiling Distribution.Utils.ShortText ( Distribution/Utils/ShortText.hs, Distribution/Utils/ShortText.o ) [ 21 of 237] Compiling Distribution.Utils.Progress ( Distribution/Utils/Progress.hs, Distribution/Utils/Progress.o ) [ 22 of 237] Compiling Distribution.Utils.MapAccum ( Distribution/Utils/MapAccum.hs, Distribution/Utils/MapAccum.o ) [ 23 of 237] Compiling Distribution.Utils.IOData ( Distribution/Utils/IOData.hs, Distribution/Utils/IOData.o ) [ 24 of 237] Compiling Distribution.Types.Condition ( Distribution/Types/Condition.hs, Distribution/Types/Condition.o ) [ 25 of 237] Compiling Distribution.TestSuite ( Distribution/TestSuite.hs, Distribution/TestSuite.o ) [ 26 of 237] Compiling Distribution.Simple.InstallDirs.Internal ( Distribution/Simple/InstallDirs/Internal.hs, Distribution/Simple/InstallDirs/Internal.o ) [ 27 of 237] Compiling Distribution.Simple.Flag ( Distribution/Simple/Flag.hs, Distribution/Simple/Flag.o ) [ 28 of 237] Compiling Distribution.Simple.CCompiler ( Distribution/Simple/CCompiler.hs, Distribution/Simple/CCompiler.o ) [ 29 of 237] Compiling Distribution.Parsec.Position ( Distribution/Parsec/Position.hs, Distribution/Parsec/Position.o ) [ 30 of 237] Compiling Distribution.Parsec.Warning ( Distribution/Parsec/Warning.hs, Distribution/Parsec/Warning.o ) [ 31 of 237] Compiling Distribution.Parsec.Error ( Distribution/Parsec/Error.hs, Distribution/Parsec/Error.o ) [ 32 of 237] Compiling Distribution.PackageDescription.Quirks ( Distribution/PackageDescription/Quirks.hs, Distribution/PackageDescription/Quirks.o ) [ 33 of 237] Compiling Distribution.GetOpt ( Distribution/GetOpt.hs, Distribution/GetOpt.o ) [ 34 of 237] Compiling Distribution.Fields.LexerMonad ( Distribution/Fields/LexerMonad.hs, Distribution/Fields/LexerMonad.o ) [ 35 of 237] Compiling Distribution.Fields.Lexer ( Distribution/Fields/Lexer.hs, Distribution/Fields/Lexer.o ) [ 36 of 237] Compiling Distribution.Fields.Field ( Distribution/Fields/Field.hs, Distribution/Fields/Field.o ) [ 37 of 237] Compiling Distribution.Fields.Parser ( Distribution/Fields/Parser.hs, Distribution/Fields/Parser.o ) [ 38 of 237] Compiling Distribution.Compat.Parsing ( Distribution/Compat/Parsing.hs, Distribution/Compat/Parsing.o ) [ 39 of 237] Compiling Distribution.Compat.GetShortPathName ( Distribution/Compat/GetShortPathName.hs, Distribution/Compat/GetShortPathName.o ) [ 40 of 237] Compiling Distribution.Compat.Environment ( Distribution/Compat/Environment.hs, Distribution/Compat/Environment.o ) [ 41 of 237] Compiling Distribution.Compat.DList ( Distribution/Compat/DList.hs, Distribution/Compat/DList.o ) [ 42 of 237] Compiling Distribution.Lex ( Distribution/Lex.hs, Distribution/Lex.o ) [ 43 of 237] Compiling Distribution.Compat.Lens ( Distribution/Compat/Lens.hs, Distribution/Compat/Lens.o ) [ 44 of 237] Compiling Distribution.Types.CondTree ( Distribution/Types/CondTree.hs, Distribution/Types/CondTree.o ) [ 45 of 237] Compiling Distribution.Compat.CreatePipe ( Distribution/Compat/CreatePipe.hs, Distribution/Compat/CreatePipe.o ) [ 46 of 237] Compiling Distribution.Compat.CopyFile ( Distribution/Compat/CopyFile.hs, Distribution/Compat/CopyFile.o ) [ 47 of 237] Compiling Distribution.Compat.CharParsing ( Distribution/Compat/CharParsing.hs, Distribution/Compat/CharParsing.o ) [ 48 of 237] Compiling Distribution.CabalSpecVersion ( Distribution/CabalSpecVersion.hs, Distribution/CabalSpecVersion.o ) [ 49 of 237] Compiling Distribution.SPDX.LicenseListVersion ( Distribution/SPDX/LicenseListVersion.hs, Distribution/SPDX/LicenseListVersion.o ) [ 50 of 237] Compiling Distribution.Pretty ( Distribution/Pretty.hs, Distribution/Pretty.o ) [ 51 of 237] Compiling Distribution.Compat.Graph ( Distribution/Compat/Graph.hs, Distribution/Compat/Graph.o ) [ 52 of 237] Compiling Distribution.Utils.UnionFind ( Distribution/Utils/UnionFind.hs, Distribution/Utils/UnionFind.o ) [ 53 of 237] Compiling Distribution.Verbosity.Internal ( Distribution/Verbosity/Internal.hs, Distribution/Verbosity/Internal.o ) [ 54 of 237] Compiling Distribution.Utils.Generic ( Distribution/Utils/Generic.hs, Distribution/Utils/Generic.o ) Distribution/Utils/Generic.hs:260:38: error: • Couldn't match type: IO a with: GHC.Types.IO a Expected: String -> GHC.Types.IO a Actual: String -> IO a • In the first argument of ‘(.)’, namely ‘action’ In the second argument of ‘(>>=)’, namely ‘action . ignoreBOM . fromUTF8LBS’ In the expression: BS.hGetContents hnd >>= action . ignoreBOM . fromUTF8LBS • Relevant bindings include action :: String -> IO a (bound at Distribution/Utils/Generic.hs:258:27) withUTF8FileContents :: FilePath -> (String -> IO a) -> IO a (bound at Distribution/Utils/Generic.hs:258:1)  | 260 | (\hnd -> BS.hGetContents hnd >>= action . ignoreBOM . fromUTF8LBS)  | ^^^^^^ [ 58 of 237] Compiling Distribution.Compat.ResponseFile ( Distribution/Compat/ResponseFile.hs, Distribution/Compat/ResponseFile.o ) Distribution/Compat/ResponseFile.hs:60:21: error: • Couldn't match type: f0 [a0] with: GHC.Stack.Types.HasCallStack => GHC.Types.IO [String] Expected: [String] -> IO [String] Actual: [String] -> f0 [a0] • In the expression: fmap concat . mapM (expand n dir) In an equation for ‘go’: go n dir | n >= 0 = fmap concat . mapM (expand n dir) | otherwise = const $ hPutStrLn stderr "Error: response file recursion limit exceeded." >> exitFailure In an equation for ‘expandResponse’: expandResponse = go recursionLimit "." where recursionLimit = 100 go :: Int -> FilePath -> [String] -> IO [String] go n dir | n >= 0 = fmap concat . mapM (expand n dir) | otherwise = const $ hPutStrLn stderr "Error: response file recursion limit exceeded." >> exitFailure expand :: Int -> FilePath -> String -> IO [String] ....  | 60 | | n >= 0 = fmap concat . mapM (expand n dir)  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Distribution/Compat/ResponseFile.hs:60:41: error: • Couldn't match type: GHC.Stack.Types.HasCallStack => GHC.Types.IO [String] with: f0 [a0] Expected: String -> f0 [a0] Actual: String -> IO [String] • In the first argument of ‘mapM’, namely ‘(expand n dir)’ In the second argument of ‘(.)’, namely ‘mapM (expand n dir)’ In the expression: fmap concat . mapM (expand n dir)  | 60 | | n >= 0 = fmap concat . mapM (expand n dir)  | ^^^^^^^^^^^^ Distribution/Compat/ResponseFile.hs:61:21: error: • Couldn't match type: GHC.Types.IO b0 with: GHC.Stack.Types.HasCallStack => GHC.Types.IO [String] Expected: [String] -> IO [String] Actual: [String] -> GHC.Types.IO b0 • In the expression: const $ hPutStrLn stderr "Error: response file recursion limit exceeded." >> exitFailure In an equation for ‘go’: go n dir | n >= 0 = fmap concat . mapM (expand n dir) | otherwise = const $ hPutStrLn stderr "Error: response file recursion limit exceeded." >> exitFailure In an equation for ‘expandResponse’: expandResponse = go recursionLimit "." where recursionLimit = 100 go :: Int -> FilePath -> [String] -> IO [String] go n dir | n >= 0 = fmap concat . mapM (expand n dir) | otherwise = const $ hPutStrLn stderr "Error: response file recursion limit exceeded." >> exitFailure expand :: Int -> FilePath -> String -> IO [String] ....  | 61 | | otherwise = const $ hPutStrLn stderr "Error: response file recursion limit exceeded." >> exitFailure  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Distribution/Compat/ResponseFile.hs:68:27: error: • Couldn't match type: GHC.Stack.Types.HasCallStack => GHC.Types.IO [String] with: GHC.Types.IO [String] Expected: [String] -> GHC.Types.IO [String] Actual: [String] -> IO [String] • In the first argument of ‘(=<<)’, namely ‘go (n - 1) (takeDirectory f)’ In the expression: go (n - 1) (takeDirectory f) =<< unescapeArgs <$> readFile f In an equation for ‘readRecursively’: readRecursively n f = go (n - 1) (takeDirectory f) =<< unescapeArgs <$> readFile f  | 68 | readRecursively n f = go (n - 1) (takeDirectory f) =<< unescapeArgs <$> readFile f  | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ * ERROR: dev-haskell/cabal-3.2.1.0-r1::gentoo failed (configure phase): * compiling /var/tmp/portage/dev-haskell/cabal-3.2.1.0-r1/work/Cabal-3.2.1.0/Setup.hs failed * * Call stack: * ebuild.sh, line 127: Called src_configure * environment, line 2316: Called haskell-cabal_src_configure '--flag=-bundled-binary-generic' * environment, line 1966: Called cabal-bootstrap * environment, line 908: Called die * The specific snippet of code: * } || make_setup "$@" || die "compiling ${setupmodule} failed"; * * If you need support, post the output of `emerge --info '=dev-haskell/cabal-3.2.1.0-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=dev-haskell/cabal-3.2.1.0-r1::gentoo'`. * The complete build log is located at '/var/tmp/portage/dev-haskell/cabal-3.2.1.0-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/dev-haskell/cabal-3.2.1.0-r1/temp/environment'. * Working directory: '/var/tmp/portage/dev-haskell/cabal-3.2.1.0-r1/work/Cabal-3.2.1.0' * S: '/var/tmp/portage/dev-haskell/cabal-3.2.1.0-r1/work/Cabal-3.2.1.0' shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory chdir: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory