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/ghc-zlib-bindings.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-222198-81000/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/ghc-zlib-bindings.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/ghc-zlib-bindings-0.1.1.5-3.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/ghc-zlib-bindings.spec'], chrootPath='/var/lib/mock/dist-oc9-epol-build-222198-81000/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/ghc-zlib-bindings.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.keqBsI + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf zlib-bindings-0.1.1.5 + /usr/lib/rpm/rpmuncompress -x /builddir/build/SOURCES/zlib-bindings-0.1.1.5.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd zlib-bindings-0.1.1.5 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + dos2unix -k -n /builddir/build/SOURCES/zlib-bindings-0.1.1.5.cabal zlib-bindings.cabal dos2unix: converting file /builddir/build/SOURCES/zlib-bindings-0.1.1.5.cabal to file zlib-bindings.cabal in Unix format... + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.fW80tO + 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 zlib-bindings-0.1.1.5 ++ 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.lhs, 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/ghc-zlib-bindings '--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-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/zlib-bindings-0.1.1.5 --global Configuring zlib-bindings-0.1.1.5... + '[' -x Setup ']' + LANG=C.utf8 + ./Setup build -j32 Preprocessing library for zlib-bindings-0.1.1.5.. Building library for zlib-bindings-0.1.1.5.. [1 of 2] Compiling Codec.Zlib.Lowlevel Codec/Zlib/Lowlevel.hs:100:1: warning: [GHC-53633] [-Woverlapping-patterns] Pattern match is redundant In an equation for ‘wbToInt’: wbToInt _ = ... | 100 | wbToInt _ = 15 | ^^^^^^^^^^^^^^ [2 of 2] Compiling Codec.Zlib c/helper.c: In function ‘inflate_set_dictionary’: c/helper.c:32:45: error: warning: pointer targets in passing argument 2 of ‘inflateSetDictionary’ differ in signedness [-Wpointer-sign] 32 | return inflateSetDictionary(stream, dictionary, dictLength); | ^~~~~~~~~~ | | | const char * | 32 | return inflateSetDictionary(stream, dictionary, dictLength); | ^ In file included from /usr/include/zlib.h:34, from c/helper.c:1:0: error: /usr/include/zlib.h:886:42: error: note: expected ‘const Bytef *’ {aka ‘const unsigned char *’} but argument is of type ‘const char *’ 886 | ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, | ^~ | 886 | ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, | ^ c/helper.c: In function ‘deflate_set_dictionary’: c/helper.c:37:45: error: warning: pointer targets in passing argument 2 of ‘deflateSetDictionary’ differ in signedness [-Wpointer-sign] 37 | return deflateSetDictionary(stream, dictionary, dictLength); | ^~~~~~~~~~ | | | const char * | 37 | return deflateSetDictionary(stream, dictionary, dictLength); | ^ /usr/include/zlib.h:610:42: error: note: expected ‘const Bytef *’ {aka ‘const unsigned char *’} but argument is of type ‘const char *’ 610 | ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, | ^~ | 610 | ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, | ^ c/helper.c: In function ‘set_avail_in’: c/helper.c:48:25: error: warning: pointer targets in assignment from ‘char *’ to ‘Bytef *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 48 | stream->next_in = buff; | ^ | 48 | stream->next_in = buff; | ^ c/helper.c: In function ‘set_avail_out’: c/helper.c:54:26: error: warning: pointer targets in assignment from ‘char *’ to ‘Bytef *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 54 | stream->next_out = buff; | ^ | 54 | stream->next_out = buff; | ^ c/helper.c: In function ‘get_next_in’: c/helper.c:75:22: error: warning: pointer targets in returning ‘Bytef *’ {aka ‘unsigned char *’} from a function with return type ‘char *’ differ in signedness [-Wpointer-sign] 75 | return stream->next_in; | ~~~~~~^~~~~~~~~ | 75 | return stream->next_in; | ^ c/helper.c: In function ‘inflate_set_dictionary’: c/helper.c:32:45: error: warning: pointer targets in passing argument 2 of ‘inflateSetDictionary’ differ in signedness [-Wpointer-sign] 32 | return inflateSetDictionary(stream, dictionary, dictLength); | ^~~~~~~~~~ | | | const char * | 32 | return inflateSetDictionary(stream, dictionary, dictLength); | ^ In file included from /usr/include/zlib.h:34, from c/helper.c:1:0: error: /usr/include/zlib.h:886:42: error: note: expected ‘const Bytef *’ {aka ‘const unsigned char *’} but argument is of type ‘const char *’ 886 | ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, | ^~ | 886 | ZEXTERN int ZEXPORT inflateSetDictionary OF((z_streamp strm, | ^ c/helper.c: In function ‘deflate_set_dictionary’: c/helper.c:37:45: error: warning: pointer targets in passing argument 2 of ‘deflateSetDictionary’ differ in signedness [-Wpointer-sign] 37 | return deflateSetDictionary(stream, dictionary, dictLength); | ^~~~~~~~~~ | | | const char * | 37 | return deflateSetDictionary(stream, dictionary, dictLength); | ^ /usr/include/zlib.h:610:42: error: note: expected ‘const Bytef *’ {aka ‘const unsigned char *’} but argument is of type ‘const char *’ 610 | ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, | ^~ | 610 | ZEXTERN int ZEXPORT deflateSetDictionary OF((z_streamp strm, | ^ c/helper.c: In function ‘set_avail_in’: c/helper.c:48:25: error: warning: pointer targets in assignment from ‘char *’ to ‘Bytef *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 48 | stream->next_in = buff; | ^ | 48 | stream->next_in = buff; | ^ c/helper.c: In function ‘set_avail_out’: c/helper.c:54:26: error: warning: pointer targets in assignment from ‘char *’ to ‘Bytef *’ {aka ‘unsigned char *’} differ in signedness [-Wpointer-sign] 54 | stream->next_out = buff; | ^ | 54 | stream->next_out = buff; | ^ c/helper.c: In function ‘get_next_in’: c/helper.c:75:22: error: warning: pointer targets in returning ‘Bytef *’ {aka ‘unsigned char *’} from a function with return type ‘char *’ differ in signedness [-Wpointer-sign] 75 | return stream->next_in; | ~~~~~~^~~~~~~~~ | 75 | return stream->next_in; | ^ Preprocessing test suite 'test' for zlib-bindings-0.1.1.5.. Building test suite 'test' for zlib-bindings-0.1.1.5.. [1 of 1] Compiling Main [2 of 2] Linking dist/build/test/test + '[' -n dist/build/libHSzlib-bindings-0.1.1.5-9YYdw21y84gEvJl5W4M0Nr-ghc9.8.4.so ']' + '[' -x Setup ']' + LANG=C.utf8 + ./Setup haddock --html --hyperlink-source --hoogle Preprocessing library for zlib-bindings-0.1.1.5.. Running Haddock on library for zlib-bindings-0.1.1.5.. Warning: The documentation for the following packages are not installed. No links will be generated to these packages: base-4.19.2.0, bytestring-0.12.1.0, deepseq-1.5.1.0, ghc-bignum-1.3, ghc-boot-th-9.8.4, ghc-prim-0.11.0, pretty-1.1.3.6, template-haskell-2.21.0.0, zlib-0.7.1.0 Warning: --source-* options are ignored when --hyperlinked-source is enabled. [1 of 2] Compiling Codec.Zlib.Lowlevel ( Codec/Zlib/Lowlevel.hs, nothing ) [2 of 2] Compiling Codec.Zlib ( Codec/Zlib.hs, nothing ) Haddock coverage: 0% ( 0 / 20) in 'Codec.Zlib.Lowlevel' Missing documentation for: Module header ZStreamStruct (Codec/Zlib/Lowlevel.hs:29) ZStream' (Codec/Zlib/Lowlevel.hs:30) zstreamNew (Codec/Zlib/Lowlevel.hs:40) Strategy (Codec/Zlib/Lowlevel.hs:32) deflateInit2 (Codec/Zlib/Lowlevel.hs:48) inflateInit2 (Codec/Zlib/Lowlevel.hs:57) c_free_z_stream_inflate (Codec/Zlib/Lowlevel.hs:59) c_free_z_stream_deflate (Codec/Zlib/Lowlevel.hs:62) c_set_avail_in (Codec/Zlib/Lowlevel.hs:65) c_set_avail_out (Codec/Zlib/Lowlevel.hs:68) c_get_avail_out (Codec/Zlib/Lowlevel.hs:71) c_get_avail_in (Codec/Zlib/Lowlevel.hs:74) c_get_next_in (Codec/Zlib/Lowlevel.hs:77) c_call_inflate_noflush (Codec/Zlib/Lowlevel.hs:80) c_call_deflate_noflush (Codec/Zlib/Lowlevel.hs:83) c_call_deflate_finish (Codec/Zlib/Lowlevel.hs:86) c_call_deflate_flush (Codec/Zlib/Lowlevel.hs:89) c_call_deflate_set_dictionary (Codec/Zlib/Lowlevel.hs:92) c_call_inflate_set_dictionary (Codec/Zlib/Lowlevel.hs:95) Warning: 'WindowBits' is ambiguous. It is defined * in ‘Codec.Compression.Zlib.Stream’ * in ‘Codec.Compression.Zlib.Stream’ You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined in ‘Codec.Compression.Zlib.Stream’ Warning: 'Inflate' is ambiguous. It is defined * at Codec/Zlib.hs:59:19 * at Codec/Zlib.hs:59:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at Codec/Zlib.hs:59:1 Warning: 'Deflate' is ambiguous. It is defined * at Codec/Zlib.hs:63:19 * at Codec/Zlib.hs:63:1 You may be able to disambiguate the identifier by qualifying it or by specifying the type/value namespace explicitly. Defaulting to the one defined at Codec/Zlib.hs:63:1 Warning: Codec.Zlib: Couldn't find .haddock for export WindowBits Warning: Codec.Zlib: Couldn't find .haddock for export defaultWindowBits 90% ( 18 / 20) in 'Codec.Zlib' Missing documentation for: WindowBits defaultWindowBits Warning: Codec.Zlib.Lowlevel: could not find link destinations for: - GHC.Enum.enumFrom - GHC.Enum.enumFromThen - GHC.Enum.enumFromTo - GHC.Enum.enumFromThenTo - GHC.Classes.== - GHC.Classes.>= - GHC.Enum.Enum - GHC.Classes.Eq - GHC.Classes.Ord - GHC.Show.Show - GHC.Types.Bool - GHC.Base.String - GHC.Types.Int - GHC.Types.Ordering - GHC.Types.IO - GHC.Ptr.Ptr - GHC.Ptr.FunPtr - GHC.Enum.fromEnum - GHC.Enum.pred - GHC.Enum.succ - GHC.Enum.toEnum - GHC.Show.show - GHC.Show.showList - GHC.Show.showsPrec - GHC.Show.ShowS - GHC.Classes./= - GHC.Classes.< - GHC.Classes.<= - GHC.Classes.> - GHC.Classes.compare - GHC.Classes.max - GHC.Classes.min - Foreign.C.Types.CChar - Foreign.C.Types.CInt - Foreign.C.Types.CUInt Warning: Codec.Zlib: could not find link destinations for: - GHC.Classes.== - GHC.Classes.>= - GHC.Classes.Eq - GHC.Classes.Ord - GHC.Show.Show - GHC.Generics.Generic - GHC.Types.Bool - GHC.Base.String - GHC.Types.Int - GHC.Maybe.Maybe - GHC.Types.Ordering - GHC.Types.IO - 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.Types.True - GHC.Generics.PrefixI - GHC.Generics.NoSourceUnpackedness - GHC.Generics.NoSourceStrictness - GHC.Generics.DecidedLazy - GHC.Generics.MetaData - GHC.Generics.MetaCons - GHC.Generics.MetaSel - GHC.Show.show - GHC.Show.showList - GHC.Show.showsPrec - GHC.Show.ShowS - GHC.Classes./= - GHC.Classes.< - GHC.Classes.<= - GHC.Classes.> - GHC.Classes.compare - GHC.Classes.max - GHC.Classes.min - GHC.Exception.Type.SomeException - Codec.Compression.Zlib.Stream.Rep_WindowBits - Data.ByteString.Internal.Type.ByteString - Data.ByteString.Lazy.Internal.defaultChunkSize - GHC.Exception.Type.Exception - GHC.Exception.Type.displayException - GHC.Exception.Type.fromException - GHC.Exception.Type.toException - GHC.Generics.from - GHC.Generics.to Documentation created: dist/doc/html/zlib-bindings/, dist/doc/html/zlib-bindings/zlib-bindings.txt Preprocessing test suite 'test' for zlib-bindings-0.1.1.5.. + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.jOsplM + umask 022 + cd /builddir/build/BUILD + '[' /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64 '!=' / ']' + rm -rf /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64 ++ dirname /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64 + mkdir -p /builddir/build/BUILDROOT + mkdir /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64 + cd zlib-bindings-0.1.1.5 + '[' -x Setup ']' + LANG=C.utf8 + ./Setup copy --destdir=/builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64 Installing library in /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/zlib-bindings-0.1.1.5 + '[' -x Setup ']' + LANG=C.utf8 + ./Setup register --gen-pkg-config + '[' -d /usr/lib64/ghc-9.8.4/lib ']' + subsubdir=/lib + '[' -d zlib-bindings-0.1.1.5.conf ']' + install -D --mode=0644 zlib-bindings-0.1.1.5.conf /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/package.conf.d/zlib-bindings-0.1.1.5.conf + '[' -d /usr/lib64/ghc-9.8.4/lib ']' + subsubdir=/lib + '[' '!' -f /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/package.conf.d/zlib-bindings-0.1.1.5.conf ']' + rm -f ghc-zlib-bindings.files ghc-zlib-bindings-doc.files + touch ghc-zlib-bindings.files ghc-zlib-bindings-doc.files + for i in /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4${subsubdir}/libHSzlib-bindings-0.1.1.5-*ghc9.8.4.so + '[' -x /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/libHSzlib-bindings-0.1.1.5-9YYdw21y84gEvJl5W4M0Nr-ghc9.8.4.so ']' + echo /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/libHSzlib-bindings-0.1.1.5-9YYdw21y84gEvJl5W4M0Nr-ghc9.8.4.so + pkgdir=/builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/zlib-bindings-0.1.1.5 + '[' '!' -d /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/zlib-bindings-0.1.1.5 ']' + '[' -d /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/zlib-bindings-0.1.1.5 ']' + find /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/zlib-bindings-0.1.1.5 -type d -fprintf ghc-zlib-bindings-devel.files '%%dir %p\n' -o '(' -name '*.p_hi' -o -name 'libHS*_p.a' ')' -fprint ghc-zlib-bindings-prof.files -o -fprint ghc-zlib-bindings-devel.files + ls /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/package.conf.d/zlib-bindings-0.1.1.5.conf + haddock_dir=/usr/share/doc/ghc/html/libraries/zlib-bindings-0.1.1.5 + '[' -d /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/share/doc/ghc/html/libraries/zlib-bindings-0.1.1.5 ']' + echo /usr/share/doc/ghc/html/libraries/zlib-bindings-0.1.1.5 + for i in ghc-zlib-bindings.files ghc-zlib-bindings-devel.files ghc-zlib-bindings-doc.files ghc-zlib-bindings-prof.files + '[' -f ghc-zlib-bindings.files ']' + sed -i -e 's!/builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64!!g' ghc-zlib-bindings.files + for i in ghc-zlib-bindings.files ghc-zlib-bindings-devel.files ghc-zlib-bindings-doc.files ghc-zlib-bindings-prof.files + '[' -f ghc-zlib-bindings-devel.files ']' + sed -i -e 's!/builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64!!g' ghc-zlib-bindings-devel.files + for i in ghc-zlib-bindings.files ghc-zlib-bindings-devel.files ghc-zlib-bindings-doc.files ghc-zlib-bindings-prof.files + '[' -f ghc-zlib-bindings-doc.files ']' + sed -i -e 's!/builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64!!g' ghc-zlib-bindings-doc.files + for i in ghc-zlib-bindings.files ghc-zlib-bindings-devel.files ghc-zlib-bindings-doc.files ghc-zlib-bindings-prof.files + '[' -f ghc-zlib-bindings-prof.files ']' + sed -i -e 's!/builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64!!g' ghc-zlib-bindings-prof.files running ghc_delete_rpaths: + echo 'running ghc_delete_rpaths:' + type chrpath ++ find /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64 -type f -executable -exec sh -c 'file {} | grep -q '\''dynamically linked'\''' ';' -print + for i in $(find /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64 -type f -executable -exec sh -c "file {} | grep -q 'dynamically linked'" \; -print) + '[' -x /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/libHSzlib-bindings-0.1.1.5-9YYdw21y84gEvJl5W4M0Nr-ghc9.8.4.so ']' ++ chrpath /builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/libHSzlib-bindings-0.1.1.5-9YYdw21y84gEvJl5W4M0Nr-ghc9.8.4.so ++ sed -e 's@^/builddir/build/BUILDROOT/ghc-zlib-bindings-0.1.1.5-3.oc9.x86_64/usr/lib64/ghc-9.8.4/lib/libHSzlib-bindings-0.1.1.5-9YYdw21y84gEvJl5W4M0Nr-ghc9.8.4.so: R.*PATH=@@' + rpath=/usr/lib64/ghc-9.8.4/lib/x86_64-linux-ghc-9.8.4:/usr/lib64/ghc-9.8.4/lib:/usr/lib64 + 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 ******************************************************************************* * * WARNING: 'check-rpaths' detected a broken RPATH OR RUNPATH and will cause * 'rpmbuild' to fail. To ignore these errors, you can set the * '$QA_RPATHS' environment variable which is a bitmask allowing the * values below. The current value of QA_RPATHS is 0x0000. * * 0x0001 ... standard RPATHs (e.g. /usr/lib); such RPATHs are a minor * issue but are introducing redundant searchpaths without * providing a benefit. They can also cause errors in multilib * environments. * 0x0002 ... invalid RPATHs; these are RPATHs which are neither absolute * nor relative filenames and can therefore be a SECURITY risk * 0x0004 ... insecure RPATHs; these are relative RPATHs which are a * SECURITY risk * 0x0008 ... the special '$ORIGIN' RPATHs are appearing after other * RPATHs; this is just a minor issue but usually unwanted * 0x0010 ... the RPATH is empty; there is no reason for such RPATHs * and they cause unneeded work while loading libraries * 0x0020 ... an RPATH references '..' of an absolute path; this will break * the functionality when the path before '..' is a symlink * * * Examples: * - to ignore standard and empty RPATHs, execute 'rpmbuild' like * $ QA_RPATHS=$(( 0x0001|0x0010 )) rpmbuild my-package.src.rpm * - to check existing files, set $RPM_BUILD_ROOT and execute check-rpaths like * $ RPM_BUILD_ROOT= /usr/lib/rpm/check-rpaths * ******************************************************************************* ERROR 0001: file '/usr/lib64/ghc-9.8.4/lib/libHSzlib-bindings-0.1.1.5-9YYdw21y84gEvJl5W4M0Nr-ghc9.8.4.so' contains a standard runpath '/usr/lib64' in [/usr/lib64/ghc-9.8.4/lib/x86_64-linux-ghc-9.8.4:/usr/lib64/ghc-9.8.4/lib:/usr/lib64] error: Bad exit status from /var/tmp/rpm-tmp.jOsplM (%install) Bad exit status from /var/tmp/rpm-tmp.jOsplM (%install) RPM build errors: Child return code was: 1 EXCEPTION: [Error('Command failed: \n # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ghc-zlib-bindings.spec\n', 1)] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 93, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 597, in do_with_status raise exception.Error("Command failed: \n # %s\n%s" % (command, output), child.returncode) mockbuild.exception.Error: Command failed: # bash --login -c /usr/bin/rpmbuild -bb --noclean --target x86_64 --nodeps /builddir/build/SPECS/ghc-zlib-bindings.spec