Mock Version: 5.5 Mock Version: 5.5 Mock Version: 5.5 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ghc-language-java.spec'], chrootPath='/home/lib/ocmock/dist-oc9-epol-build-221771-80980/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=983gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ghc-language-java.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: loongarch64 Building for target loongarch64 Wrote: /builddir/build/SRPMS/ghc-language-java-0.2.9-3.oc9.src.rpm Child return code was: 0 ENTER ['do_with_status'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ghc-language-java.spec'], chrootPath='/home/lib/ocmock/dist-oc9-epol-build-221771-80980/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=983gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --noclean --target loongarch64 --nodeps /builddir/build/SPECS/ghc-language-java.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: loongarch64 Building for target loongarch64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.Er3eJK + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf language-java-0.2.9 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/language-java-0.2.9.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd language-java-0.2.9 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + cp -bp /builddir/build/SOURCES/language-java-0.2.9.cabal language-java.cabal + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.S3xf2r + 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 -fasynchronous-unwind-tables -fstack-clash-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 -fasynchronous-unwind-tables -fstack-clash-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 -fasynchronous-unwind-tables -fstack-clash-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 -fasynchronous-unwind-tables -fstack-clash-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 language-java-0.2.9 ++ 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 -fasynchronous-unwind-tables -fstack-clash-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 -fasynchronous-unwind-tables -fstack-clash-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/ghc-language-java '--libsubdir=$compiler/lib/$pkgid' '--datasubdir=$pkgid' '--libexecsubdir=$pkgid' --ghc --dynlibdir=/usr/lib64/ghc-9.8.4/lib --enable-tests --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-fasynchronous-unwind-tables -optc-fstack-clash-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/language-java-0.2.9 --global Configuring language-java-0.2.9... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build -j32 ./language-java.cabal has been changed. Re-configuring with most recently used options. If this fails, please run configure manually. Configuring language-java-0.2.9... Preprocessing library for language-java-0.2.9.. Building library for language-java-0.2.9.. [1 of 6] Compiling Language.Java.Lexer Language/Java/Lexer.x:178:24: 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." | 178 | then lexicalError $ "Non-octal digit '" ++ take 1 remStr ++ "' in \"" ++ s ++ "\"." | ^^^^ Language/Java/Lexer.x:182:20: 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." | 182 | readHexExp :: (Floating a, Eq a) => String -> a | ^^^^ Language/Java/Lexer.x:184:49: 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." | 184 | let (m, suf) = head $ readHex initial | ^^^^ Language/Java/Lexer.x:189:17: 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." | 189 | | ^^^^ Language/Java/Lexer.x:194:37: 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." | 194 | | ^^^^ Language/Java/Lexer.x:231: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." | 231 | let octals = takeWhile isOctDigit $ take n s | ^^^^ dist/build/Language/Java/Lexer.hs:571:19: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘pos’ shadows the existing binding defined at Language/Java/Lexer.x:249:1 | 571 | where go inp__@(pos,_,_,str) = | ^^^ dist/build/Language/Java/Lexer.hs:1403:52: 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." | 1403 | alex_action_59 = \p s -> L (pos p) $ IntTok (fst . head $ readHex (drop 2 s)) | ^^^^ dist/build/Language/Java/Lexer.hs:1404:53: 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." | 1404 | alex_action_60 = \p s -> L (pos p) $ LongTok (fst . head $ readHex (init (drop 2 s))) | ^^^^ dist/build/Language/Java/Lexer.hs:1405:55: 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." | 1405 | alex_action_61 = \p s -> L (pos p) $ DoubleTok (fst . head $ readFloat $ '0':s) | ^^^^ dist/build/Language/Java/Lexer.hs:1406:55: 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." | 1406 | alex_action_62 = \p s -> L (pos p) $ DoubleTok (fst . head $ readFloat $ '0':s) | ^^^^ dist/build/Language/Java/Lexer.hs:1407:55: 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." | 1407 | alex_action_63 = \p s -> L (pos p) $ FloatTok (fst . head $ readFloat $ '0':s) | ^^^^ dist/build/Language/Java/Lexer.hs:1408:55: 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." | 1408 | alex_action_64 = \p s -> L (pos p) $ FloatTok (fst . head $ readFloat $ '0':s) | ^^^^ dist/build/Language/Java/Lexer.hs:1409:55: 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." | 1409 | alex_action_65 = \p s -> L (pos p) $ DoubleTok (fst . head $ readFloat s) | ^^^^ dist/build/Language/Java/Lexer.hs:1410:55: 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." | 1410 | alex_action_66 = \p s -> L (pos p) $ DoubleTok (fst . head $ readFloat s) | ^^^^ dist/build/Language/Java/Lexer.hs:1411:55: 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." | 1411 | alex_action_67 = \p s -> L (pos p) $ FloatTok (fst . head $ readFloat s) | ^^^^ [2 of 6] Compiling Language.Java.Syntax.Exp [3 of 6] Compiling Language.Java.Syntax.Types [4 of 6] Compiling Language.Java.Syntax [5 of 6] Compiling Language.Java.Pretty Language/Java/Pretty.hs:7:1: warning: [GHC-66111] [-Wunused-imports] The import of ‘Data.List’ is redundant except perhaps to import instances from ‘Data.List’ To import instances alone, use: import Data.List() | 7 | import Data.List (intersperse) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Language/Java/Pretty.hs:52:35: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Pretty.hs:12:1-28 (and originally defined in ‘GHC.Base’) | 52 | prettyPrec p (InterfaceTypeDecl id) = prettyPrec p id | ^^ Language/Java/Pretty.hs:129:37: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Pretty.hs:12:1-28 (and originally defined in ‘GHC.Base’) | 129 | prettyPrec p (MemberInterfaceDecl id) = prettyPrec p id | ^^ Language/Java/Pretty.hs:170:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 170 | prettyPrec p mod = text . map toLower $ show mod | ^ Language/Java/Pretty.hs:170:16: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘mod’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Pretty.hs:12:1-28 (and originally defined in ‘GHC.Real’) | 170 | prettyPrec p mod = text . map toLower $ show mod | ^^^ Language/Java/Pretty.hs:200:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 200 | prettyPrec p (IfThen c th) = | ^ Language/Java/Pretty.hs:227:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 227 | prettyPrec p Empty = semi | ^ Language/Java/Pretty.hs:277:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 277 | prettyPrec p Default = text "default:" | ^ Language/Java/Pretty.hs:318:37: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘init’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Pretty.hs:12:1-28 (and originally defined in ‘GHC.List’) | 318 | prettyPrec p (ArrayCreateInit t k init) = | ^^^^ Language/Java/Pretty.hs:377:34: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘exp’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Pretty.hs:12:1-28 (and originally defined in ‘GHC.Float’) | 377 | prettyPrec p (LambdaExpression exp) = prettyPrec p exp | ^^^ Language/Java/Pretty.hs:381:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 381 | prettyPrec p (Int i) = text (show i) | ^ Language/Java/Pretty.hs:382:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 382 | prettyPrec p (Word i) = text (show i) <> char 'L' | ^ Language/Java/Pretty.hs:383:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 383 | prettyPrec p (Float f) = text (show f) <> char 'F' | ^ Language/Java/Pretty.hs:384:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 384 | prettyPrec p (Double d) = text (show d) | ^ Language/Java/Pretty.hs:385:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 385 | prettyPrec p (Boolean b) = text . map toLower $ show b | ^ Language/Java/Pretty.hs:386:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 386 | prettyPrec p (Char c) = quotes $ text (escapeChar c) | ^ Language/Java/Pretty.hs:387:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 387 | prettyPrec p (String s) = doubleQuotes $ text (concatMap escapeString s) | ^ Language/Java/Pretty.hs:388:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 388 | prettyPrec p (Null) = text "null" | ^ Language/Java/Pretty.hs:391:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 391 | prettyPrec p op = text $ case op of | ^ Language/Java/Pretty.hs:413:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 413 | prettyPrec p aop = text $ case aop of | ^ Language/Java/Pretty.hs:498:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 498 | prettyPrec p Diamond = text "<>" | ^ Language/Java/Pretty.hs:505:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 505 | prettyPrec p BooleanT = text "boolean" | ^ Language/Java/Pretty.hs:506:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 506 | prettyPrec p ByteT = text "byte" | ^ Language/Java/Pretty.hs:507:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 507 | prettyPrec p ShortT = text "short" | ^ Language/Java/Pretty.hs:508:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 508 | prettyPrec p IntT = text "int" | ^ Language/Java/Pretty.hs:509:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 509 | prettyPrec p LongT = text "long" | ^ Language/Java/Pretty.hs:510:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 510 | prettyPrec p CharT = text "char" | ^ Language/Java/Pretty.hs:511:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 511 | prettyPrec p FloatT = text "float" | ^ Language/Java/Pretty.hs:512:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 512 | prettyPrec p DoubleT = text "double" | ^ Language/Java/Pretty.hs:544:19: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘exp’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Pretty.hs:12:1-28 (and originally defined in ‘GHC.Float’) | 544 | ppDefault p (Just exp) = text "default" <+> prettyPrec p exp | ^^^ Language/Java/Pretty.hs:558:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 558 | prettyPrec p (Ident s) = text s | ^ Language/Java/Pretty.hs:564:36: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘b’ | 564 | prettyNestedStmt prio p@(StmtBlock b) = prettyPrec prio p | ^ [6 of 6] Compiling Language.Java.Parser Language/Java/Parser.hs:44:30: warning: [GHC-61689] [-Wdodgy-imports] Module ‘Prelude’ does not export ‘catch’. | 44 | import Prelude hiding ( exp, catch, (>>), (>>=) ) | ^^^^^ Language/Java/Parser.hs:47:1: warning: [GHC-66111] [-Wunused-imports] The import of ‘Control.Monad’ is redundant except perhaps to import instances from ‘Control.Monad’ To import instances alone, use: import Control.Monad() | 47 | import Control.Monad ( ap ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Language/Java/Parser.hs:56:1: warning: [GHC-66111] [-Wunused-imports] The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() | 56 | import Control.Applicative ( (<$>), (<$), (<*), (<*>) ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Language/Java/Parser.hs:74:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ‘parseCompilationUnit’ | 74 | parseCompilationUnit inp = | ^^^^^^^^^^^^^^^^^^^^ Language/Java/Parser.hs:122:25: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘ms’ shadows the existing binding bound at Language/Java/Parser.hs:120:5 | 122 | return $ \ms -> ClassTypeDecl (cd ms)) <|> | ^^ Language/Java/Parser.hs:123:15: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 123 | (do id <- annInterfaceDecl <|> interfaceDecl | ^^ Language/Java/Parser.hs:124:25: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘ms’ shadows the existing binding bound at Language/Java/Parser.hs:120:5 | 124 | return $ \ms -> InterfaceTypeDecl (id ms)) | ^^ Language/Java/Parser.hs:138:47: 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." | 138 | return $ \ms -> ClassDecl ms i tps ((fmap head) mex) imp bod | ^^^^ Language/Java/Parser.hs:166:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 166 | id <- ident | ^^ Language/Java/Parser.hs:182:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 182 | id <- ident | ^^ Language/Java/Parser.hs:191:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 191 | id <- ident | ^^ Language/Java/Parser.hs:206:8: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type ‘[()]’ Suggested fix: Suppress this warning by saying ‘_ <- list1 semiColon’ | 206 | list1 semiColon | ^^^^^^^^^^^^^^^ Language/Java/Parser.hs:222:9: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 222 | id <- try annInterfaceDecl <|> try interfaceDecl | ^^ Language/Java/Parser.hs:239:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 239 | id <- ident | ^^ Language/Java/Parser.hs:253:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 253 | id <- ident | ^^ Language/Java/Parser.hs:296:9: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 296 | (do id <- try annInterfaceDecl <|> try interfaceDecl | ^^ Language/Java/Parser.hs:305:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 305 | id <- ident | ^^ Language/Java/Parser.hs:329:43: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘xs’ | 329 | validateFPs (FormalParam _ _ b _ :xs) = not b | ^^ Language/Java/Parser.hs:393:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 393 | id <- ident | ^^ Language/Java/Parser.hs:394:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘abs’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Num’) | 394 | abs <- list arrBrackets | ^^^ Language/Java/Parser.hs:415:5: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type ‘Maybe ()’ Suggested fix: Suppress this warning by saying ‘_ <- opt comma’ | 415 | opt comma | ^^^^^^^^^ Language/Java/Parser.hs:722:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ‘primaryNoNewArray’ | 722 | primaryNoNewArray = startSuff primaryNoNewArrayNPS primarySuffix | ^^^^^^^^^^^^^^^^^ Language/Java/Parser.hs:888:28: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘n’ shadows the existing binding bound at Language/Java/Parser.hs:886:9 | 888 | return $ \n -> MethodCall n as) <|> | ^ Language/Java/Parser.hs:895:27: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘n’ shadows the existing binding bound at Language/Java/Parser.hs:886:9 | 895 | return $ \n -> mc n rts i as) | ^ Language/Java/Parser.hs:901:9: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘rts’ | 901 | rts <- lopt refTypeArgs | ^^^ Language/Java/Parser.hs:985:24: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘t’ shadows the existing binding bound at Language/Java/Parser.hs:981:5 | 985 | return $ \t -> ArrayCreateInit t (length ds) ai) <|> | ^ Language/Java/Parser.hs:988:24: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘t’ shadows the existing binding bound at Language/Java/Parser.hs:981:5 | 988 | return $ \t -> ArrayCreate t des (length ds)) | ^ Language/Java/Parser.hs:1188:17: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type ‘sep’ Suggested fix: Suppress this warning by saying ‘_ <- sep’ | 1188 | try (do sep | ^^^ Language/Java/Parser.hs:1204:11: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘test’ shadows the existing binding defined at Language/Java/Parser.hs:1235:1 | 1204 | javaToken test = token showT posT testT | ^^^^ Language/Java/Parser.hs:1235:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ‘test’ | 1235 | test = "public class Foo { }" | ^^^^ Language/Java/Parser.hs:1236:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ‘testFile’ | 1236 | testFile file = do | ^^^^^^^^ Preprocessing test suite 'test-java-parse' for language-java-0.2.9.. Building test suite 'test-java-parse' for language-java-0.2.9.. [1 of 1] Compiling Main tests/Tests.hs:11:1: warning: [GHC-66111] [-Wunused-imports] The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() | 11 | import Control.Applicative | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [2 of 2] Linking dist/build/test-java-parse/test-java-parse + '[' -n dist/build/libHSlanguage-java-0.2.9-LnPGsvkY6kJ3fOqSsgOmWO-ghc9.8.4.so ']' + '[' -x Setup ']' + LANG=C.utf8 + ./Setup haddock --html --hyperlink-source --hoogle ./language-java.cabal has been changed. Re-configuring with most recently used options. If this fails, please run configure manually. Configuring language-java-0.2.9... Preprocessing library for language-java-0.2.9.. Running Haddock on library for language-java-0.2.9.. Warning: The documentation for the following packages are not installed. No links will be generated to these packages: 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, ghc-bignum-1.3, ghc-boot-th-9.8.4, ghc-prim-0.11.0, mtl-2.3.1, parsec-3.1.17.0, pretty-1.1.3.6, template-haskell-2.21.0.0, text-2.1.1, transformers-0.6.1.0 Warning: --source-* options are ignored when --hyperlinked-source is enabled. [1 of 6] Compiling Language.Java.Lexer ( dist/build/Language/Java/Lexer.hs, nothing ) Language/Java/Lexer.x:178:24: 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." | 178 | then lexicalError $ "Non-octal digit '" ++ take 1 remStr ++ "' in \"" ++ s ++ "\"." | ^^^^ Language/Java/Lexer.x:182:20: 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." | 182 | readHexExp :: (Floating a, Eq a) => String -> a | ^^^^ Language/Java/Lexer.x:184:49: 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." | 184 | let (m, suf) = head $ readHex initial | ^^^^ Language/Java/Lexer.x:189:17: 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." | 189 | | ^^^^ Language/Java/Lexer.x:194:37: 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." | 194 | | ^^^^ Language/Java/Lexer.x:231: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." | 231 | let octals = takeWhile isOctDigit $ take n s | ^^^^ dist/build/Language/Java/Lexer.hs:571:19: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘pos’ shadows the existing binding defined at Language/Java/Lexer.x:249:1 | 571 | where go inp__@(pos,_,_,str) = | ^^^ dist/build/Language/Java/Lexer.hs:1403:52: 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." | 1403 | alex_action_59 = \p s -> L (pos p) $ IntTok (fst . head $ readHex (drop 2 s)) | ^^^^ dist/build/Language/Java/Lexer.hs:1404:53: 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." | 1404 | alex_action_60 = \p s -> L (pos p) $ LongTok (fst . head $ readHex (init (drop 2 s))) | ^^^^ dist/build/Language/Java/Lexer.hs:1405:55: 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." | 1405 | alex_action_61 = \p s -> L (pos p) $ DoubleTok (fst . head $ readFloat $ '0':s) | ^^^^ dist/build/Language/Java/Lexer.hs:1406:55: 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." | 1406 | alex_action_62 = \p s -> L (pos p) $ DoubleTok (fst . head $ readFloat $ '0':s) | ^^^^ dist/build/Language/Java/Lexer.hs:1407:55: 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." | 1407 | alex_action_63 = \p s -> L (pos p) $ FloatTok (fst . head $ readFloat $ '0':s) | ^^^^ dist/build/Language/Java/Lexer.hs:1408:55: 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." | 1408 | alex_action_64 = \p s -> L (pos p) $ FloatTok (fst . head $ readFloat $ '0':s) | ^^^^ dist/build/Language/Java/Lexer.hs:1409:55: 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." | 1409 | alex_action_65 = \p s -> L (pos p) $ DoubleTok (fst . head $ readFloat s) | ^^^^ dist/build/Language/Java/Lexer.hs:1410:55: 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." | 1410 | alex_action_66 = \p s -> L (pos p) $ DoubleTok (fst . head $ readFloat s) | ^^^^ dist/build/Language/Java/Lexer.hs:1411:55: 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." | 1411 | alex_action_67 = \p s -> L (pos p) $ FloatTok (fst . head $ readFloat s) | ^^^^ [2 of 6] Compiling Language.Java.Syntax.Exp ( Language/Java/Syntax/Exp.hs, nothing ) [3 of 6] Compiling Language.Java.Syntax.Types ( Language/Java/Syntax/Types.hs, nothing ) [4 of 6] Compiling Language.Java.Syntax ( Language/Java/Syntax.hs, nothing ) [5 of 6] Compiling Language.Java.Pretty ( Language/Java/Pretty.hs, nothing ) Language/Java/Pretty.hs:7:1: warning: [GHC-66111] [-Wunused-imports] The import of ‘Data.List’ is redundant except perhaps to import instances from ‘Data.List’ To import instances alone, use: import Data.List() | 7 | import Data.List (intersperse) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Language/Java/Pretty.hs:52:35: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Pretty.hs:12:1-28 (and originally defined in ‘GHC.Base’) | 52 | prettyPrec p (InterfaceTypeDecl id) = prettyPrec p id | ^^ Language/Java/Pretty.hs:129:37: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Pretty.hs:12:1-28 (and originally defined in ‘GHC.Base’) | 129 | prettyPrec p (MemberInterfaceDecl id) = prettyPrec p id | ^^ Language/Java/Pretty.hs:170:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 170 | prettyPrec p mod = text . map toLower $ show mod | ^ Language/Java/Pretty.hs:170:16: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘mod’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Pretty.hs:12:1-28 (and originally defined in ‘GHC.Real’) | 170 | prettyPrec p mod = text . map toLower $ show mod | ^^^ Language/Java/Pretty.hs:200:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 200 | prettyPrec p (IfThen c th) = | ^ Language/Java/Pretty.hs:227:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 227 | prettyPrec p Empty = semi | ^ Language/Java/Pretty.hs:277:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 277 | prettyPrec p Default = text "default:" | ^ Language/Java/Pretty.hs:318:37: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘init’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Pretty.hs:12:1-28 (and originally defined in ‘GHC.List’) | 318 | prettyPrec p (ArrayCreateInit t k init) = | ^^^^ Language/Java/Pretty.hs:377:34: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘exp’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Pretty.hs:12:1-28 (and originally defined in ‘GHC.Float’) | 377 | prettyPrec p (LambdaExpression exp) = prettyPrec p exp | ^^^ Language/Java/Pretty.hs:381:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 381 | prettyPrec p (Int i) = text (show i) | ^ Language/Java/Pretty.hs:382:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 382 | prettyPrec p (Word i) = text (show i) <> char 'L' | ^ Language/Java/Pretty.hs:383:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 383 | prettyPrec p (Float f) = text (show f) <> char 'F' | ^ Language/Java/Pretty.hs:384:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 384 | prettyPrec p (Double d) = text (show d) | ^ Language/Java/Pretty.hs:385:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 385 | prettyPrec p (Boolean b) = text . map toLower $ show b | ^ Language/Java/Pretty.hs:386:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 386 | prettyPrec p (Char c) = quotes $ text (escapeChar c) | ^ Language/Java/Pretty.hs:387:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 387 | prettyPrec p (String s) = doubleQuotes $ text (concatMap escapeString s) | ^ Language/Java/Pretty.hs:388:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 388 | prettyPrec p (Null) = text "null" | ^ Language/Java/Pretty.hs:391:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 391 | prettyPrec p op = text $ case op of | ^ Language/Java/Pretty.hs:413:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 413 | prettyPrec p aop = text $ case aop of | ^ Language/Java/Pretty.hs:498:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 498 | prettyPrec p Diamond = text "<>" | ^ Language/Java/Pretty.hs:505:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 505 | prettyPrec p BooleanT = text "boolean" | ^ Language/Java/Pretty.hs:506:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 506 | prettyPrec p ByteT = text "byte" | ^ Language/Java/Pretty.hs:507:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 507 | prettyPrec p ShortT = text "short" | ^ Language/Java/Pretty.hs:508:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 508 | prettyPrec p IntT = text "int" | ^ Language/Java/Pretty.hs:509:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 509 | prettyPrec p LongT = text "long" | ^ Language/Java/Pretty.hs:510:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 510 | prettyPrec p CharT = text "char" | ^ Language/Java/Pretty.hs:511:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 511 | prettyPrec p FloatT = text "float" | ^ Language/Java/Pretty.hs:512:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 512 | prettyPrec p DoubleT = text "double" | ^ Language/Java/Pretty.hs:544:19: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘exp’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Pretty.hs:12:1-28 (and originally defined in ‘GHC.Float’) | 544 | ppDefault p (Just exp) = text "default" <+> prettyPrec p exp | ^^^ Language/Java/Pretty.hs:558:14: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘p’ | 558 | prettyPrec p (Ident s) = text s | ^ Language/Java/Pretty.hs:564:36: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘b’ | 564 | prettyNestedStmt prio p@(StmtBlock b) = prettyPrec prio p | ^ [6 of 6] Compiling Language.Java.Parser ( Language/Java/Parser.hs, nothing ) Language/Java/Parser.hs:44:30: warning: [GHC-61689] [-Wdodgy-imports] Module ‘Prelude’ does not export ‘catch’. | 44 | import Prelude hiding ( exp, catch, (>>), (>>=) ) | ^^^^^ Language/Java/Parser.hs:47:1: warning: [GHC-66111] [-Wunused-imports] The import of ‘Control.Monad’ is redundant except perhaps to import instances from ‘Control.Monad’ To import instances alone, use: import Control.Monad() | 47 | import Control.Monad ( ap ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ Language/Java/Parser.hs:56:1: warning: [GHC-66111] [-Wunused-imports] The import of ‘Control.Applicative’ is redundant except perhaps to import instances from ‘Control.Applicative’ To import instances alone, use: import Control.Applicative() | 56 | import Control.Applicative ( (<$>), (<$), (<*), (<*>) ) | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Language/Java/Parser.hs:74:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ‘parseCompilationUnit’ | 74 | parseCompilationUnit inp = | ^^^^^^^^^^^^^^^^^^^^ Language/Java/Parser.hs:122:25: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘ms’ shadows the existing binding bound at Language/Java/Parser.hs:120:5 | 122 | return $ \ms -> ClassTypeDecl (cd ms)) <|> | ^^ Language/Java/Parser.hs:123:15: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 123 | (do id <- annInterfaceDecl <|> interfaceDecl | ^^ Language/Java/Parser.hs:124:25: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘ms’ shadows the existing binding bound at Language/Java/Parser.hs:120:5 | 124 | return $ \ms -> InterfaceTypeDecl (id ms)) | ^^ Language/Java/Parser.hs:138:47: 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." | 138 | return $ \ms -> ClassDecl ms i tps ((fmap head) mex) imp bod | ^^^^ Language/Java/Parser.hs:166:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 166 | id <- ident | ^^ Language/Java/Parser.hs:182:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 182 | id <- ident | ^^ Language/Java/Parser.hs:191:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 191 | id <- ident | ^^ Language/Java/Parser.hs:206:8: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type ‘[()]’ Suggested fix: Suppress this warning by saying ‘_ <- list1 semiColon’ | 206 | list1 semiColon | ^^^^^^^^^^^^^^^ Language/Java/Parser.hs:222:9: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 222 | id <- try annInterfaceDecl <|> try interfaceDecl | ^^ Language/Java/Parser.hs:239:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 239 | id <- ident | ^^ Language/Java/Parser.hs:253:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 253 | id <- ident | ^^ Language/Java/Parser.hs:296:9: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 296 | (do id <- try annInterfaceDecl <|> try interfaceDecl | ^^ Language/Java/Parser.hs:305:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 305 | id <- ident | ^^ Language/Java/Parser.hs:329:43: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘xs’ | 329 | validateFPs (FormalParam _ _ b _ :xs) = not b | ^^ Language/Java/Parser.hs:393:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘id’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Base’) | 393 | id <- ident | ^^ Language/Java/Parser.hs:394:5: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘abs’ shadows the existing binding imported from ‘Prelude’ at Language/Java/Parser.hs:44:1-49 (and originally defined in ‘GHC.Num’) | 394 | abs <- list arrBrackets | ^^^ Language/Java/Parser.hs:415:5: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type ‘Maybe ()’ Suggested fix: Suppress this warning by saying ‘_ <- opt comma’ | 415 | opt comma | ^^^^^^^^^ Language/Java/Parser.hs:722:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ‘primaryNoNewArray’ | 722 | primaryNoNewArray = startSuff primaryNoNewArrayNPS primarySuffix | ^^^^^^^^^^^^^^^^^ Language/Java/Parser.hs:888:28: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘n’ shadows the existing binding bound at Language/Java/Parser.hs:886:9 | 888 | return $ \n -> MethodCall n as) <|> | ^ Language/Java/Parser.hs:895:27: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘n’ shadows the existing binding bound at Language/Java/Parser.hs:886:9 | 895 | return $ \n -> mc n rts i as) | ^ Language/Java/Parser.hs:901:9: warning: [GHC-40910] [-Wunused-matches] Defined but not used: ‘rts’ | 901 | rts <- lopt refTypeArgs | ^^^ Language/Java/Parser.hs:985:24: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘t’ shadows the existing binding bound at Language/Java/Parser.hs:981:5 | 985 | return $ \t -> ArrayCreateInit t (length ds) ai) <|> | ^ Language/Java/Parser.hs:988:24: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘t’ shadows the existing binding bound at Language/Java/Parser.hs:981:5 | 988 | return $ \t -> ArrayCreate t des (length ds)) | ^ Language/Java/Parser.hs:1188:17: warning: [GHC-81995] [-Wunused-do-bind] A do-notation statement discarded a result of type ‘sep’ Suggested fix: Suppress this warning by saying ‘_ <- sep’ | 1188 | try (do sep | ^^^ Language/Java/Parser.hs:1204:11: warning: [GHC-63397] [-Wname-shadowing] This binding for ‘test’ shadows the existing binding defined at Language/Java/Parser.hs:1235:1 | 1204 | javaToken test = token showT posT testT | ^^^^ Language/Java/Parser.hs:1235:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ‘test’ | 1235 | test = "public class Foo { }" | ^^^^ Language/Java/Parser.hs:1236:1: warning: [GHC-40910] [-Wunused-top-binds] Defined but not used: ‘testFile’ | 1236 | testFile file = do | ^^^^^^^^ Haddock coverage: 0% ( 0 / 4) in 'Language.Java.Lexer' Missing documentation for: Module header L (Language/Java/Lexer.x:242) Token (Language/Java/Lexer.x:251) lexer (Language/Java/Lexer.x:371) Warning: '.' is out of scope. If you qualify the identifier, haddock can try to link it anyway. 89% ( 51 / 57) in 'Language.Java.Syntax' Missing documentation for: Module header desugarAnnotation (Language/Java/Syntax.hs:234) desugarAnnotation' (Language/Java/Syntax.hs:237) LambdaParams (Language/Java/Syntax.hs:435) TypeDeclSpecifier (Language/Java/Syntax/Types.hs:35) Diamond (Language/Java/Syntax/Types.hs:41) 0% ( 0 / 20) in 'Language.Java.Pretty' Missing documentation for: Module header prettyPrint (Language/Java/Pretty.hs:16) parenPrec (Language/Java/Pretty.hs:19) Pretty (Language/Java/Pretty.hs:24) ppEVList (Language/Java/Pretty.hs:178) ppArgs (Language/Java/Pretty.hs:470) ppTypeParams (Language/Java/Pretty.hs:522) ppImplements (Language/Java/Pretty.hs:528) ppExtends (Language/Java/Pretty.hs:533) ppThrows (Language/Java/Pretty.hs:538) ppDefault (Language/Java/Pretty.hs:543) ppResultType (Language/Java/Pretty.hs:547) prettyNestedStmt (Language/Java/Pretty.hs:564) maybePP (Language/Java/Pretty.hs:568) opt (Language/Java/Pretty.hs:571) braceBlock (Language/Java/Pretty.hs:574) opPrec (Language/Java/Pretty.hs:578) escapeGeneral (Language/Java/Pretty.hs:599) escapeChar (Language/Java/Pretty.hs:610) escapeString (Language/Java/Pretty.hs:614) 0% ( 0 / 49) in 'Language.Java.Parser' Missing documentation for: Module header parser (Language/Java/Parser.hs:77) compilationUnit (Language/Java/Parser.hs:86) packageDecl (Language/Java/Parser.hs:94) importDecl (Language/Java/Parser.hs:101) typeDecl (Language/Java/Parser.hs:110) classDecl (Language/Java/Parser.hs:128) interfaceDecl (Language/Java/Parser.hs:189) memberDecl (Language/Java/Parser.hs:217) fieldDecl (Language/Java/Parser.hs:230) methodDecl (Language/Java/Parser.hs:236) constrDecl (Language/Java/Parser.hs:251) interfaceMemberDecl (Language/Java/Parser.hs:293) absMethodDecl (Language/Java/Parser.hs:302) formalParams (Language/Java/Parser.hs:321) formalParam (Language/Java/Parser.hs:332) modifier (Language/Java/Parser.hs:345) varDecls (Language/Java/Parser.hs:383) varDecl (Language/Java/Parser.hs:386) block (Language/Java/Parser.hs:422) blockStmt (Language/Java/Parser.hs:425) stmt (Language/Java/Parser.hs:436) stmtExp (Language/Java/Parser.hs:618) exp (Language/Java/Parser.hs:654) primary (Language/Java/Parser.hs:717) literal (Language/Java/Parser.hs:992) ttype (Language/Java/Parser.hs:1074) primType (Language/Java/Parser.hs:1077) refType (Language/Java/Parser.hs:1088) classType (Language/Java/Parser.hs:1103) resultType (Language/Java/Parser.hs:1112) lambdaExp (Language/Java/Parser.hs:802) methodRef (Language/Java/Parser.hs:808) typeParams (Language/Java/Parser.hs:1121) typeParam (Language/Java/Parser.hs:1124) name (Language/Java/Parser.hs:1150) ident (Language/Java/Parser.hs:1153) empty (Language/Java/Parser.hs:1160) list (Language/Java/Parser.hs:1175) list1 (Language/Java/Parser.hs:1178) seplist (Language/Java/Parser.hs:1182) seplist1 (Language/Java/Parser.hs:1186) opt (Language/Java/Parser.hs:1163) bopt (Language/Java/Parser.hs:1166) lopt (Language/Java/Parser.hs:1169) comma (Language/Java/Parser.hs:1228) semiColon (Language/Java/Parser.hs:1230) period (Language/Java/Parser.hs:1231) colon (Language/Java/Parser.hs:1229) Warning: Language.Java.Lexer: could not find link destinations for: - GHC.Classes.== - GHC.Classes.Eq - GHC.Show.Show - GHC.Types.Bool - GHC.Base.String - GHC.Types.Char - GHC.Types.Double - GHC.Types.Int - GHC.Num.Integer.Integer - GHC.Show.show - GHC.Show.showList - GHC.Show.showsPrec - GHC.Show.ShowS - GHC.Classes./= - Language.Java.Lexer.Pos Warning: Language.Java.Syntax: could not find link destinations for: - GHC.Classes.== - GHC.Classes.>= - GHC.Classes.Eq - GHC.Base.Monad - Data.Data.Data - GHC.Classes.Ord - GHC.Read.Read - GHC.Show.Show - Data.Typeable.Internal.Typeable - GHC.Generics.Generic - GHC.Types.Bool - GHC.Base.String - GHC.Types.Char - GHC.Types.Double - GHC.Types.Int - GHC.Num.Integer.Integer - GHC.Maybe.Maybe - GHC.Types.Ordering - GHC.Types.Type - GHC.Generics.U1 - GHC.Generics.:+: - GHC.Generics.:*: - GHC.Generics.Rec0 - GHC.Generics.D1 - GHC.Generics.C1 - GHC.Generics.S1 - GHC.Generics.Rep - GHC.Types.Symbol - GHC.Types.False - GHC.Maybe.Nothing - GHC.Maybe.Just - GHC.Types.True - GHC.Generics.PrefixI - GHC.Generics.NoSourceUnpackedness - GHC.Generics.NoSourceStrictness - GHC.Generics.DecidedLazy - GHC.Generics.MetaData - GHC.Generics.MetaCons - GHC.Generics.MetaSel - GHC.Read.readList - GHC.Read.readsPrec - GHC.Show.show - GHC.Show.showList - GHC.Show.showsPrec - GHC.Show.ShowS - Text.ParserCombinators.ReadP.ReadS - GHC.Classes./= - GHC.Classes.< - GHC.Classes.<= - GHC.Classes.> - GHC.Classes.compare - GHC.Classes.max - GHC.Classes.min - Text.ParserCombinators.ReadPrec.ReadPrec - Data.Data.Constr - Data.Data.DataType - GHC.Base.MonadPlus - GHC.Read.readListPrec - GHC.Read.readPrec - Data.Data.dataCast1 - Data.Data.dataCast2 - Data.Data.dataTypeOf - Data.Data.gfoldl - Data.Data.gmapM - Data.Data.gmapMo - Data.Data.gmapMp - Data.Data.gmapQ - Data.Data.gmapQi - Data.Data.gmapQl - Data.Data.gmapQr - Data.Data.gmapT - Data.Data.gunfold - Data.Data.toConstr - GHC.Generics.from - GHC.Generics.to - Language.Java.Syntax.Exp.Rep_AssignOp - Language.Java.Syntax.Exp.Rep_Op - Language.Java.Syntax.Exp.Rep_Literal - Language.Java.Syntax.Types.Rep_Name - Language.Java.Syntax.Types.Rep_TypeParam - Language.Java.Syntax.Types.Rep_TypeDeclSpecifier - Language.Java.Syntax.Types.Rep_ClassType - Language.Java.Syntax.Types.Rep_TypeArgument - Language.Java.Syntax.Types.Rep_WildcardBound - Language.Java.Syntax.Types.Rep_RefType - Language.Java.Syntax.Types.Rep_Type - Language.Java.Syntax.Types.Rep_Ident - Language.Java.Syntax.Types.Rep_PrimType - Language.Java.Syntax.Types.Rep_Diamond - Language.Java.Syntax.Rep_CompilationUnit - Language.Java.Syntax.Rep_TypeDecl - Language.Java.Syntax.Rep_ArrayInit - Language.Java.Syntax.Rep_VarInit - Language.Java.Syntax.Rep_Exp - Language.Java.Syntax.Rep_MethodInvocation - Language.Java.Syntax.Rep_LambdaExpression - Language.Java.Syntax.Rep_Block - Language.Java.Syntax.Rep_BlockStmt - Language.Java.Syntax.Rep_Stmt - Language.Java.Syntax.Rep_ForInit - Language.Java.Syntax.Rep_Modifier - Language.Java.Syntax.Rep_Annotation - Language.Java.Syntax.Rep_ElementValue - Language.Java.Syntax.Rep_VarDecl - Language.Java.Syntax.Rep_SwitchBlock - Language.Java.Syntax.Rep_SwitchLabel - Language.Java.Syntax.Rep_Catch - Language.Java.Syntax.Rep_FormalParam - Language.Java.Syntax.Rep_ClassDecl - Language.Java.Syntax.Rep_EnumBody - Language.Java.Syntax.Rep_Decl - Language.Java.Syntax.Rep_MemberDecl - Language.Java.Syntax.Rep_ConstructorBody - Language.Java.Syntax.Rep_ExplConstrInv - Language.Java.Syntax.Rep_MethodBody - Language.Java.Syntax.Rep_InterfaceDecl - Language.Java.Syntax.Rep_InterfaceBody - Language.Java.Syntax.Rep_EnumConstant - Language.Java.Syntax.Rep_ClassBody - Language.Java.Syntax.Rep_LambdaParams - Language.Java.Syntax.Rep_FieldAccess - Language.Java.Syntax.Rep_ArrayIndex - Language.Java.Syntax.Rep_Lhs - Language.Java.Syntax.Rep_VarDeclId - Language.Java.Syntax.Rep_InterfaceKind - Language.Java.Syntax.Rep_ImportDecl - Language.Java.Syntax.Rep_PackageDecl - Text.PrettyPrint.HughesPJ.Doc Warning: Language.Java.Pretty: could not find link destinations for: - GHC.Num.Num - GHC.Types.Bool - GHC.Base.String - GHC.Types.Char - GHC.Types.Int - GHC.Maybe.Maybe - Text.PrettyPrint.HughesPJ.Doc Warning: Language.Java.Parser: could not find link destinations for: - GHC.Types.Bool - GHC.Base.String - GHC.Maybe.Maybe - Data.Either.Either - Text.Parsec.Error.ParseError - Text.Parsec.Prim.Parsec - Language.Java.Parser.Mod - Language.Java.Parser.P Documentation created: dist/doc/html/language-java/, dist/doc/html/language-java/language-java.txt Preprocessing test suite 'test-java-parse' for language-java-0.2.9.. + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.4Ecc9e + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64 ++ dirname /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64 + cd language-java-0.2.9 + '[' -x Setup ']' + LANG=C.utf8 + ./Setup copy --destdir=/builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64 ./language-java.cabal has been changed. Re-configuring with most recently used options. If this fails, please run configure manually. Configuring language-java-0.2.9... ./language-java.cabal has been changed. Re-configuring with most recently used options. If this fails, please run configure manually. Configuring language-java-0.2.9... Installing library in /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/language-java-0.2.9 + '[' -x Setup ']' + LANG=C.utf8 + ./Setup register --gen-pkg-config ./language-java.cabal has been changed. Re-configuring with most recently used options. If this fails, please run configure manually. Configuring language-java-0.2.9... ./language-java.cabal has been changed. Re-configuring with most recently used options. If this fails, please run configure manually. Configuring language-java-0.2.9... + '[' -d /usr/lib64/ghc-9.8.4/lib ']' + subsubdir=/lib + '[' -d language-java-0.2.9.conf ']' + install -D --mode=0644 language-java-0.2.9.conf /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/package.conf.d/language-java-0.2.9.conf + '[' -d /usr/lib64/ghc-9.8.4/lib ']' + subsubdir=/lib + '[' '!' -f /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/package.conf.d/language-java-0.2.9.conf ']' + rm -f ghc-language-java.files ghc-language-java-doc.files + touch ghc-language-java.files ghc-language-java-doc.files + for i in /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4${subsubdir}/libHSlanguage-java-0.2.9-*ghc9.8.4.so + '[' -x /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/libHSlanguage-java-0.2.9-LnPGsvkY6kJ3fOqSsgOmWO-ghc9.8.4.so ']' + echo /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/libHSlanguage-java-0.2.9-LnPGsvkY6kJ3fOqSsgOmWO-ghc9.8.4.so + pkgdir=/builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/language-java-0.2.9 + '[' '!' -d /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/language-java-0.2.9 ']' + '[' -d /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/language-java-0.2.9 ']' + find /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/language-java-0.2.9 -type d -fprintf ghc-language-java-devel.files '%%dir %p\n' -o '(' -name '*.p_hi' -o -name 'libHS*_p.a' ')' -fprint ghc-language-java-prof.files -o -fprint ghc-language-java-devel.files + ls /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/package.conf.d/language-java-0.2.9.conf + haddock_dir=/usr/share/doc/ghc/html/libraries/language-java-0.2.9 + '[' -d /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/share/doc/ghc/html/libraries/language-java-0.2.9 ']' + echo /usr/share/doc/ghc/html/libraries/language-java-0.2.9 + for i in ghc-language-java.files ghc-language-java-devel.files ghc-language-java-doc.files ghc-language-java-prof.files + '[' -f ghc-language-java.files ']' + sed -i -e 's!/builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64!!g' ghc-language-java.files + for i in ghc-language-java.files ghc-language-java-devel.files ghc-language-java-doc.files ghc-language-java-prof.files + '[' -f ghc-language-java-devel.files ']' + sed -i -e 's!/builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64!!g' ghc-language-java-devel.files + for i in ghc-language-java.files ghc-language-java-devel.files ghc-language-java-doc.files ghc-language-java-prof.files + '[' -f ghc-language-java-doc.files ']' + sed -i -e 's!/builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64!!g' ghc-language-java-doc.files + for i in ghc-language-java.files ghc-language-java-devel.files ghc-language-java-doc.files ghc-language-java-prof.files + '[' -f ghc-language-java-prof.files ']' + sed -i -e 's!/builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64!!g' ghc-language-java-prof.files + echo 'running ghc_delete_rpaths:' running ghc_delete_rpaths: + type chrpath ++ find /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64 -type f -executable -exec sh -c 'file {} | grep -q '\''dynamically linked'\''' ';' -print + for i in $(find /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64 -type f -executable -exec sh -c "file {} | grep -q 'dynamically linked'" \; -print) + '[' -x /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/libHSlanguage-java-0.2.9-LnPGsvkY6kJ3fOqSsgOmWO-ghc9.8.4.so ']' ++ chrpath /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/libHSlanguage-java-0.2.9-LnPGsvkY6kJ3fOqSsgOmWO-ghc9.8.4.so ++ sed -e 's@^/builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/lib64/ghc-9.8.4/lib/libHSlanguage-java-0.2.9-LnPGsvkY6kJ3fOqSsgOmWO-ghc9.8.4.so: R.*PATH=@@' + rpath=/usr/lib64/ghc-9.8.4/lib:/usr/lib64/ghc-9.8.4/lib/loongarch64-linux-ghc-9.8.4 + case "$rpath" in + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/OpenCloudOS/brp-ldconfig + /usr/lib/rpm/brp-compress + /usr/lib/rpm/brp-strip /usr/bin/strip + /usr/lib/rpm/brp-strip-comment-note /usr/bin/strip /usr/bin/objdump + /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/OpenCloudOS/brp-mangle-shebangs + /usr/lib/rpm/OpenCloudOS/brp-python-bytecompile '' 1 0 + /usr/lib/rpm/OpenCloudOS/brp-python-hardlink Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.YOU80q + 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 -fasynchronous-unwind-tables -fstack-clash-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 -fasynchronous-unwind-tables -fstack-clash-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 -fasynchronous-unwind-tables -fstack-clash-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 -fasynchronous-unwind-tables -fstack-clash-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 language-java-0.2.9 + '[' -x Setup ']' + LANG=C.utf8 + ./Setup test ./language-java.cabal has been changed. Re-configuring with most recently used options. If this fails, please run configure manually. Configuring language-java-0.2.9... Running 1 test suites... Test suite test-java-parse: RUNNING... Test suite test-java-parse: PASS Test suite logged to: dist/test/language-java-0.2.9-test-java-parse.log 1 of 1 test suites (1 of 1 test cases) passed. + RPM_EC=0 ++ jobs -p + exit 0 Processing files: ghc-language-java-0.2.9-3.oc9.loongarch64 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.uiqTlL + umask 022 + cd /builddir/build/BUILD + cd language-java-0.2.9 + LICENSEDIR=/builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/share/licenses/ghc-language-java + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/share/licenses/ghc-language-java + cp -pr LICENSE /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/share/licenses/ghc-language-java + RPM_EC=0 ++ jobs -p + exit 0 Provides: ghc-language-java = 0.2.9-3.oc9 ghc-language-java(loongarch-64) = 0.2.9-3.oc9 libHSlanguage-java-0.2.9-LnPGsvkY6kJ3fOqSsgOmWO-ghc9.8.4.so()(64bit) Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libHSarray-0.5.8.0-inplace-ghc9.8.4.so()(64bit) libHSbase-4.19.2.0-inplace-ghc9.8.4.so()(64bit) libHSbinary-0.8.9.1-inplace-ghc9.8.4.so()(64bit) libHSbytestring-0.12.1.0-inplace-ghc9.8.4.so()(64bit) libHScontainers-0.6.8-inplace-ghc9.8.4.so()(64bit) libHSdeepseq-1.5.1.0-inplace-ghc9.8.4.so()(64bit) libHSghc-bignum-1.3-inplace-ghc9.8.4.so()(64bit) libHSghc-boot-th-9.8.4-inplace-ghc9.8.4.so()(64bit) libHSghc-prim-0.11.0-inplace-ghc9.8.4.so()(64bit) libHSmtl-2.3.1-inplace-ghc9.8.4.so()(64bit) libHSparsec-3.1.17.0-inplace-ghc9.8.4.so()(64bit) libHSpretty-1.1.3.6-inplace-ghc9.8.4.so()(64bit) libHStemplate-haskell-2.21.0.0-inplace-ghc9.8.4.so()(64bit) libHStext-2.1.1-inplace-ghc9.8.4.so()(64bit) libHStransformers-0.6.1.0-inplace-ghc9.8.4.so()(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.36)(64bit) libgmp.so.10()(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.36)(64bit) rtld(GNU_HASH) Processing files: ghc-language-java-devel-0.2.9-3.oc9.loongarch64 Provides: ghc-devel(language-java-0.2.9-LnPGsvkY6kJ3fOqSsgOmWO) ghc-language-java-devel = 0.2.9-3.oc9 ghc-language-java-devel(loongarch-64) = 0.2.9-3.oc9 ghc-language-java-static = 0.2.9-3.oc9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: ghc-devel(array-0.5.8.0-inplace) ghc-devel(base-4.19.2.0-inplace) ghc-devel(parsec-3.1.17.0-inplace) ghc-devel(pretty-1.1.3.6-inplace) Processing files: ghc-language-java-doc-0.2.9-3.oc9.noarch Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.i051yA + umask 022 + cd /builddir/build/BUILD + cd language-java-0.2.9 + LICENSEDIR=/builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/share/licenses/ghc-language-java-doc + export LC_ALL=C + LC_ALL=C + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/share/licenses/ghc-language-java-doc + cp -pr LICENSE /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64/usr/share/licenses/ghc-language-java-doc + RPM_EC=0 ++ jobs -p + exit 0 Provides: ghc-language-java-doc = 0.2.9-3.oc9 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILDROOT/ghc-language-java-0.2.9-3.oc9.loongarch64 Wrote: /builddir/build/RPMS/ghc-language-java-doc-0.2.9-3.oc9.noarch.rpm Wrote: /builddir/build/RPMS/ghc-language-java-0.2.9-3.oc9.loongarch64.rpm Wrote: /builddir/build/RPMS/ghc-language-java-devel-0.2.9-3.oc9.loongarch64.rpm Child return code was: 0