Mock Version: 4.1 Mock Version: 4.1 Mock Version: 4.1 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gtk2hs-buildtools.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-215833-80891/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target x86_64 --nodeps /builddir/build/SPECS/gtk2hs-buildtools.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Wrote: /builddir/build/SRPMS/gtk2hs-buildtools-0.13.12.0-1.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/gtk2hs-buildtools.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-215833-80891/root'env={'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'}shell=Falselogger=timeout=86400uid=991gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/gtk2hs-buildtools.spec'] with env {'TERM': 'vt100', 'SHELL': '/bin/bash', 'HOME': '/builddir', 'HOSTNAME': 'mock', 'PATH': '/usr/bin:/bin:/usr/sbin:/sbin', 'PROMPT_COMMAND': 'printf "\\033]0;\\007"', 'PS1': ' \\s-\\v\\$ ', 'LANG': 'C.UTF-8'} and shell False Building target platforms: x86_64 Building for target x86_64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.TDBcQg + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf gtk2hs-buildtools-0.13.12.0 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/gtk2hs-buildtools-0.13.12.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd gtk2hs-buildtools-0.13.12.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ZKeCmO + umask 022 + cd /builddir/build/BUILD + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + CXXFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CXXFLAGS + FFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,--build-id=sha1' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=gcc + export CC + CXX=g++ + export CXX + cd gtk2hs-buildtools-0.13.12.0 ++ ls ++ grep -i -e '^\(ANNOUNCE\|AUTHORS\|CHANGELOG\|CHANGES\|CONTRIBUTORS\|README\|TODO\)' + CFLAGS='-O2 -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection' + export CFLAGS + export 'LDFLAGS=-Wl,-z,relro -Wl,--as-needed -Wl,--build-id=sha1' + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,--build-id=sha1' + '[' -f Setup.hs -o -f Setup.lhs ']' + '[' -d /usr/lib64/ghc-9.8.4/lib ']' + subsubdir=/lib + '[' -x Setup ']' + ghc --make -package Cabal -no-user-package-db -dynamic Setup [1 of 2] Compiling Main ( Setup.hs, Setup.o ) [2 of 2] Linking Setup + LANG=C.utf8 + ./Setup --version Cabal library version 3.10.3.0 + '[' -x Setup ']' + LANG=C.utf8 ++ echo ' -O2' -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -fstack-protector-strong -m64 -march=x86-64-v2 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection ++ sed -e 's/ / -optc/g' ++ echo ' -Wl,-z,relro' -Wl,--as-needed -Wl,--build-id=sha1 ++ sed -e 's/ / -optl/g' + ./Setup configure --prefix=/usr --libdir=/usr/lib64 --docdir=/usr/share/licenses/gtk2hs-buildtools '--libsubdir=$compiler/lib/$pkgid' '--datasubdir=$pkgid' '--libexecsubdir=$pkgid' --ghc --dynlibdir=/usr/lib64/ghc-9.8.4/lib --global '--ghc-options= -optc-O2 -optc-fexceptions -optc-g -optc-grecord-gcc-switches -optc-pipe -optc-Wall -optc-Werror=format-security -optc-Wp,-D_FORTIFY_SOURCE=2 -optc-Wp,-D_GLIBCXX_ASSERTIONS -optc-specs=/usr/lib/rpm/OpenCloudOS/OpenCloudOS-hardened-cc1 -optc-fstack-protector-strong -optc-m64 -optc-march=x86-64-v2 -optc-mtune=generic -optc-fasynchronous-unwind-tables -optc-fstack-clash-protection -optc-fcf-protection -optl-Wl,-z,relro -optl-Wl,--as-needed -optl-Wl,--build-id=sha1 -fhide-source-paths' --enable-shared --htmldir=/usr/share/doc/ghc/html/libraries/gtk2hs-buildtools-0.13.12.0 --global Configuring gtk2hs-buildtools-0.13.12.0... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build -j32 Preprocessing library for gtk2hs-buildtools-0.13.12.0.. Building library for gtk2hs-buildtools-0.13.12.0.. [ 1 of 46] Compiling BaseVersion [ 2 of 46] Compiling C2HSConfig [ 3 of 46] Compiling CInfo [ 4 of 46] Compiling Config [ 5 of 46] Compiling DLists [ 6 of 46] Compiling FNameOps [ 7 of 46] Compiling FastMutInt [ 8 of 46] Compiling FileOps c2hs/base/general/DLists.hs:66:13: warning: [GHC-47082] [-Woperator-whitespace-ext-conflict] The prefix use of a ‘$’ would denote an untyped splice were the TemplateHaskell extension enabled. Suggested fix: Add whitespace after the ‘$’. | 66 | closeDL = ($[]) | ^ c2hs/base/general/FileOps.hs:59:30: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 59 | let (paths', file') = if head file == '/' | ^^^^ c2hs/base/general/FileOps.hs:67:21: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 67 | else return $ head existingFiles | ^^^^ [ 9 of 46] Compiling Map [10 of 46] Compiling Binary c2hs/base/general/Binary.hs:240:14: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 240 | let sz' = head (dropWhile (<= off) (iterate (* 2) sz)) | ^^^^ [11 of 46] Compiling Paths_gtk2hs_buildtools [12 of 46] Compiling HookGenerator [13 of 46] Compiling Position [14 of 46] Compiling Errors [15 of 46] Compiling Lexers c2hs/base/syntax/Lexers.hs:133:1: warning: [GHC-94817] [-Wtabs] Tab character found here, and in 172 further locations. Suggested fix: Please use spaces instead. | 133 | lexactionErr, lexmeta, (>|<), (>||<), ctrlChars, ctrlLexer, | ^^^^^^^^ c2hs/base/syntax/Lexers.hs:470:57: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 470 | "The character " ++ show (head cs) | ^^^^ c2hs/base/syntax/Lexers.hs:473:40: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 473 | (Just (Left err), l, (tail cs, (Position fname row (col + 1)), s)) | ^^^^ [16 of 46] Compiling Set [17 of 46] Compiling StateTrans [18 of 46] Compiling Switches [19 of 46] Compiling TypeGen [20 of 46] Compiling UNames hierarchyGen/TypeGen.hs:249:12: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 249 | tail $ c2u True cname++"_get_type"). | ^^^^ hierarchyGen/TypeGen.hs:293:28: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 293 | indent 0.ss "class ".ss (head parents).ss "Class o => ".ss name.ss "Class o". | ^^^^ c2hs/base/state/CIO.hs:77:1: warning: [GHC-15328] [-Wdeprecations] Module[21 of 46] Compiling StateBase [22 of 46] Compiling CIO ‘System.Cmd’ is deprecated: "Use \"System.Process\" instead" | 77 | import System.Cmd | ^^^^^^^^^^^^^^^^^ [23 of 46] Compiling State [24 of 46] Compiling C2HSState [25 of 46] Compiling Attributes [26 of 46] Compiling Idents c2hs/base/syms/Idents.hs:182:61: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 182 | && (checkTail . tail) cs' | ^^^^ c2hs/base/syms/Idents.hs:231:21: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 231 | if (head l == '\'') | ^^^^ c2hs/base/syms/Idents.hs:233:32: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 233 | parseQuoted (tail l) | ^^^^ [27 of 46] Compiling NameSpaces [28 of 46] Compiling CTokens [29 of 46] Compiling CParserMonad [30 of 46] Compiling CLexer c2hs/c/CLexer.x:349:39: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 349 | '\'' -> ('\'', cs) | ^^^^ c2hs/c/CLexer.x:351:39: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 351 | 'x' -> case head (readHex cs) of | ^^^^ c2hs/c/CLexer.x:367:38: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 367 | str''' = dropWhite str'' | ^^^^ dist/build/CLexer.hs:249:39: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 249 | alex_action_5 = token CTokILit (fst . head . readOct) | ^^^^ dist/build/CLexer.hs:250:39: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 250 | alex_action_6 = token CTokILit (fst . head . readDec) | ^^^^ dist/build/CLexer.hs:251:39: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 251 | alex_action_7 = token CTokILit (fst . head . readHex . drop 2) | ^^^^ dist/build/CLexer.hs:252:49: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 252 | alex_action_8 = token CTokCLit (fst . oneChar . tail) | ^^^^ dist/build/CLexer.hs:253:49: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 253 | alex_action_9 = token CTokCLit (fst . oneChar . tail . tail) | ^^^^ dist/build/CLexer.hs:253:56: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 253 | alex_action_9 = token CTokCLit (fst . oneChar . tail . tail) | ^^^^ dist/build/CLexer.hs:256:53: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 256 | alex_action_12 = token CTokSLit (normalizeEscapes . tail) | ^^^^ [31 of 46] Compiling CHSLexer c2hs/chs/CHSLexer.hs:630:38: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 630 | fname' | null str''' || head str''' /= '"' = fname | ^^^^ c2hs/chs/CHSLexer.hs:746:65: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 746 | `lexaction` \cs pos -> Just (CHSTokString pos (init . tail $ cs)) | ^^^^ c2hs/chs/CHSLexer.hs:752:65: warning: [GHC-63394] [-Wx-partial] In the use of[32 of 46] Compiling CHS ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 752 | `lexaction` \cs pos -> Just (CHSTokHSVerb pos (init . tail $ cs)) | ^^^^ c2hs/chs/CHS.hs:427:28: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 427 | nlStart = head s == '\n' | ^^^^ c2hs/chs/CHS.hs:708:57: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 708 | (minor, _ ) = break (== '.') . tail $ rest | ^^^^ [33 of 46] Compiling GenHeader c2hs/gen/GenHeader.hs:103:15: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 103 | \supply -> (tail supply, "C2HS_COND_SENTRY_" ++ show (head supply)) | ^^^^ c2hs/gen/GenHeader.hs:103:57: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 103 | \supply -> (tail supply, "C2HS_COND_SENTRY_" ++ show (head supply)) | ^^^^ [34 of 46] Compiling CAST [35 of 46] Compiling CPretty [36 of 46] Compiling CAttrs [37 of 46] Compiling CTrav c2hs/c/CTrav.hs:597:8: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 597 | case head [ts | CTypeSpec ts <- specs] of | ^^^^ c2hs/c/CTrav.hs:716:14: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 716 | case head [ts | CTypeSpec ts <- specs] of | ^^^^ [38 of 46] Compiling CBuiltin [39 of 46] Compiling CParser [40 of 46] Compiling CNames [41 of 46] Compiling C [42 of 46] Compiling GBMonad c2hs/gen/GBMonad.hs:217:66: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 217 | else [(onlyPosIdent nopos ideChars, tail rest)] | ^^^^ [43 of 46] Compiling GenBind c2hs/gen/GenBind.hs:1037:16: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 1037 | let decl = head post | ^^^^ [44 of 46] Compiling Version [45 of 46] Compiling Gtk2HsC2Hs [46 of 46] Compiling Gtk2HsSetup Preprocessing executable 'gtk2hsTypeGen' for gtk2hs-buildtools-0.13.12.0.. Building executable 'gtk2hsTypeGen' for gtk2hs-buildtools-0.13.12.0.. [1 of 1] Compiling Main [2 of 2] Linking dist/build/gtk2hsTypeGen/gtk2hsTypeGen Preprocessing executable 'gtk2hsC2hs' for gtk2hs-buildtools-0.13.12.0.. Building executable 'gtk2hsC2hs' for gtk2hs-buildtools-0.13.12.0.. [1 of 1] Compiling Main [2 of 2] Linking dist/build/gtk2hsC2hs/gtk2hsC2hs Preprocessing executable 'gtk2hsHookGenerator' for gtk2hs-buildtools-0.13.12.0.. Building executable 'gtk2hsHookGenerator' for gtk2hs-buildtools-0.13.12.0.. [1 of 1] Compiling Main [2 of 2] Linking dist/build/gtk2hsHookGenerator/gtk2hsHookGenerator + '[' -n dist/build/libHSgtk2hs-buildtools-0.13.12.0-6Ws6GVK9EQk1a3G8JG34qz-ghc9.8.4.so ']' + '[' -x Setup ']' + LANG=C.utf8 + ./Setup haddock --html --hyperlink-source --hoogle Preprocessing library for gtk2hs-buildtools-0.13.12.0.. Running Haddock on library for gtk2hs-buildtools-0.13.12.0.. Warning: The documentation for the following packages are not installed. No links will be generated to these packages: Cabal-3.10.3.0, Cabal-syntax-3.10.3.0, array-0.5.8.0, base-4.19.2.0, binary-0.8.9.1, bytestring-0.12.1.0, containers-0.6.8, deepseq-1.5.1.0, directory-1.3.8.5, exceptions-0.10.7, filepath-1.4.301.0, ghc-bignum-1.3, ghc-boot-th-9.8.4, ghc-prim-0.11.0, hashable-1.4.4.0, hashtables-1.3.1, mtl-2.3.1, os-string-2.0.6, parsec-3.1.17.0, pretty-1.1.3.6, primitive-0.9.0.0, process-1.6.25.0, random-1.2.1.3, splitmix-0.1.1, stm-2.5.3.1, template-haskell-2.21.0.0, text-2.1.1, time-1.12.2, transformers-0.6.1.0, unix-2.8.6.0, vector-0.13.1.0, vector-stream-0.1.0.1 Warning: --source-* options are ignored when --hyperlinked-source is enabled. [ 1 of 46] Compiling BaseVersion ( c2hs/base/admin/BaseVersion.hs, nothing ) [ 2 of 46] Compiling C2HSConfig ( c2hs/toplevel/C2HSConfig.hs, nothing ) [ 3 of 46] Compiling CInfo ( c2hs/gen/CInfo.hs, nothing ) [ 4 of 46] Compiling Config ( c2hs/base/admin/Config.hs, nothing ) [ 5 of 46] Compiling DLists ( c2hs/base/general/DLists.hs, nothing ) c2hs/base/general/DLists.hs:66:13: warning: [GHC-47082] [-Woperator-whitespace-ext-conflict] The prefix use of a ‘$’ would denote an untyped splice were the TemplateHaskell extension enabled. Suggested fix: Add whitespace after the ‘$’. | 66 | closeDL = ($[]) | ^ [ 6 of 46] Compiling FNameOps ( c2hs/base/general/FNameOps.hs, nothing ) [ 7 of 46] Compiling FastMutInt ( c2hs/base/general/FastMutInt.hs, nothing ) [ 8 of 46] Compiling FileOps ( c2hs/base/general/FileOps.hs, nothing ) c2hs/base/general/FileOps.hs:59:30: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 59 | let (paths', file') = if head file == '/' | ^^^^ c2hs/base/general/FileOps.hs:67:21: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 67 | else return $ head existingFiles | ^^^^ [ 9 of 46] Compiling Map ( c2hs/base/general/Map.hs, nothing ) [10 of 46] Compiling Binary ( c2hs/base/general/Binary.hs, nothing ) c2hs/base/general/Binary.hs:240:14: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 240 | let sz' = head (dropWhile (<= off) (iterate (* 2) sz)) | ^^^^ [11 of 46] Compiling Paths_gtk2hs_buildtools ( dist/build/autogen/Paths_gtk2hs_buildtools.hs, nothing ) [12 of 46] Compiling HookGenerator ( callbackGen/HookGenerator.hs, nothing ) [13 of 46] Compiling Position ( c2hs/base/general/Position.hs, nothing ) [14 of 46] Compiling Errors ( c2hs/base/errors/Errors.hs, nothing ) [15 of 46] Compiling Lexers ( c2hs/base/syntax/Lexers.hs, nothing ) c2hs/base/syntax/Lexers.hs:133:1: warning: [GHC-94817] [-Wtabs] Tab character found here, and in 172 further locations. Suggested fix: Please use spaces instead. | 133 | lexactionErr, lexmeta, (>|<), (>||<), ctrlChars, ctrlLexer, | ^^^^^^^^ c2hs/base/syntax/Lexers.hs:470:57: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 470 | "The character " ++ show (head cs) | ^^^^ c2hs/base/syntax/Lexers.hs:473:40: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 473 | (Just (Left err), l, (tail cs, (Position fname row (col + 1)), s)) | ^^^^ [16 of 46] Compiling Set ( c2hs/base/general/Set.hs, nothing ) [17 of 46] Compiling StateTrans ( c2hs/base/state/StateTrans.hs, nothing ) [18 of 46] Compiling Switches ( c2hs/state/Switches.hs, nothing ) [19 of 46] Compiling TypeGen ( hierarchyGen/TypeGen.hs, nothing ) hierarchyGen/TypeGen.hs:249:12: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 249 | tail $ c2u True cname++"_get_type"). | ^^^^ hierarchyGen/TypeGen.hs:293:28: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 293 | indent 0.ss "class ".ss (head parents).ss "Class o => ".ss name.ss "Class o". | ^^^^ [20 of 46] Compiling UNames ( c2hs/base/general/UNames.hs, nothing ) [21 of 46] Compiling StateBase ( c2hs/base/state/StateBase.hs, nothing ) [22 of 46] Compiling CIO ( c2hs/base/state/CIO.hs, nothing ) c2hs/base/state/CIO.hs:77:1: warning: [GHC-15328] [-Wdeprecations] Module ‘System.Cmd’ is deprecated: "Use \"System.Process\" instead" | 77 | import System.Cmd | ^^^^^^^^^^^^^^^^^ [23 of 46] Compiling State ( c2hs/base/state/State.hs, nothing ) [24 of 46] Compiling C2HSState ( c2hs/state/C2HSState.hs, nothing ) [25 of 46] Compiling Attributes ( c2hs/base/syms/Attributes.hs, nothing ) [26 of 46] Compiling Idents ( c2hs/base/syms/Idents.hs, nothing ) c2hs/base/syms/Idents.hs:182:61: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 182 | && (checkTail . tail) cs' | ^^^^ c2hs/base/syms/Idents.hs:231:21: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 231 | if (head l == '\'') | ^^^^ c2hs/base/syms/Idents.hs:233:32: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 233 | parseQuoted (tail l) | ^^^^ [27 of 46] Compiling NameSpaces ( c2hs/base/syms/NameSpaces.hs, nothing ) [28 of 46] Compiling CTokens ( c2hs/c/CTokens.hs, nothing ) [29 of 46] Compiling CParserMonad ( c2hs/c/CParserMonad.hs, nothing ) [30 of 46] Compiling CLexer ( dist/build/CLexer.hs, nothing ) c2hs/c/CLexer.x:349:39: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 349 | '\'' -> ('\'', cs) | ^^^^ c2hs/c/CLexer.x:351:39: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 351 | 'x' -> case head (readHex cs) of | ^^^^ c2hs/c/CLexer.x:367:38: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 367 | str''' = dropWhite str'' | ^^^^ dist/build/CLexer.hs:249:39: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 249 | alex_action_5 = token CTokILit (fst . head . readOct) | ^^^^ dist/build/CLexer.hs:250:39: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 250 | alex_action_6 = token CTokILit (fst . head . readDec) | ^^^^ dist/build/CLexer.hs:251:39: warning: [GHC-63394] [-Wx-partial] In the use of ‘head’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 251 | alex_action_7 = token CTokILit (fst . head . readHex . drop 2) | ^^^^ dist/build/CLexer.hs:252:49: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 252 | alex_action_8 = token CTokCLit (fst . oneChar . tail) | ^^^^ dist/build/CLexer.hs:253:49: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 253 | alex_action_9 = token CTokCLit (fst . oneChar . tail . tail) | ^^^^ dist/build/CLexer.hs:253:56: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 253 | alex_action_9 = token CTokCLit (fst . oneChar . tail . tail) | ^^^^ dist/build/CLexer.hs:256:53: warning: [GHC-63394] [-Wx-partial] In the use of ‘tail’ (imported from Prelude, but defined in GHC.List): "This is a partial function, it throws an error on empty lists. Replace it with drop 1, or use pattern matching or Data.List.uncons instead. Consider refactoring to use Data.List.NonEmpty." | 256 | alex_action_12 = token CTokSLit (normalizeEscapes . tail) | ^^^^ [31 of 46] Compiling CHSLexer ( c2hs/chs/CHSLexer.hs, nothing )