[...] + echo 'Patch #3 (ghc-use-ld.bfd.patch):' Patch #3 (ghc-use-ld.bfd.patch): + mk/build.mk + cat + pwd + top=/tmp/B.JVvt0D/BUILD/ghc-7.6.3 + '[' ! -f .bindist.install.mark ']' + pwd + top=/tmp/B.JVvt0D/BUILD/ghc-7.6.3 + cd binsrc + ./configure '--prefix=/tmp/B.JVvt0D/BUILD/ghc-7.6.3/bindist' checking for path to top of build tree... utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: error while loading shared libraries: libgmp.so.3: cannot open shared object file: No such file or directory configure: error: cannot determine current directory error: Bad exit status from /tmp/B.JVvt0D/BUILD/tmp/rpm-tmp.20909 (%build) RPM build errors: Bad exit status from /tmp/B.JVvt0D/BUILD/tmp/rpm-tmp.20909 (%build) ended at: Fri Oct 20 01:35:26 2017, done in 0:00:36.719646 error: No files produced. mesg: ttyname failed: Inappropriate ioctl for device + chmod -R u+rwX /tmp/B.JVvt0D/BUILD + rm -rf /tmp/B.JVvt0D/tmp /tmp/B.JVvt0D/BUILD mesg: ttyname failed: Inappropriate ioctl for device + rm -rf /tmp/B.JVvt0D Begin-TLD-Builder-Info Build-Time: user:43.05s sys:4.95s real:155.20s (faults io:0 non-io:211049) End-TLD-Builder-Info