Mock Version: 1.4.13 Mock Version: 1.4.13 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/sunpinyin.spec'], chrootPath='/var/lib/mock/f30-build-39290-22546/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': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/sunpinyin.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/sunpinyin-2.0.4-0.24.20160301git.fc30.src.rpm Child return code was: 0 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/sunpinyin.spec'], chrootPath='/var/lib/mock/f30-build-39290-22546/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': 'en_US.UTF-8'}shell=Falselogger=timeout=345600uid=995gid=135user='mockbuild'nspawn_args=[]unshare_net=TrueprintOutput=False) Executing command: ['bash', '--login', '-c', '/usr/bin/rpmbuild -bb --target riscv64 --nodeps /builddir/build/SPECS/sunpinyin.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': 'en_US.UTF-8'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.739XtU + umask 022 + cd /builddir/build/BUILD + cd /builddir/build/BUILD + rm -rf sunpinyin-20160301 + /usr/bin/tar -xof /builddir/build/SOURCES/sunpinyin-20160301.tar.xz + cd sunpinyin-20160301 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (sunpinyin-use-python2.patch):' Patch #0 (sunpinyin-use-python2.patch): + /usr/bin/patch --no-backup-if-mismatch -p1 -b --suffix .python2 --fuzz=0 patching file SConstruct patching file python/pinyin_info_gen.py patching file python/quanpin_trie_gen.py + mkdir -p raw + cp /builddir/build/SOURCES/lm_sc.3gm.arpa-20140820.tar.bz2 raw + cp /builddir/build/SOURCES/dict.utf8-20131214.tar.bz2 raw + pushd raw ~/build/BUILD/sunpinyin-20160301/raw ~/build/BUILD/sunpinyin-20160301 + tar xvf lm_sc.3gm.arpa-20140820.tar.bz2 lm_sc.3gm.arpa + tar xvf dict.utf8-20131214.tar.bz2 dict.utf8 + popd ~/build/BUILD/sunpinyin-20160301 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.7uTw8X + umask 022 + cd /builddir/build/BUILD + cd sunpinyin-20160301 + CFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CFLAGS + CXXFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection' + export CXXFLAGS + FFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FFLAGS + FCFLAGS='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' BUILDSTDERR: +++ dirname ./configure BUILDSTDERR: ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' 'x-Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' ']' BUILDSTDERR: ++ find . -name ltmain.sh + ./configure --build=riscv64-koji-linux-gnu --host=riscv64-koji-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info BUILDSTDERR: /var/tmp/rpm-tmp.7uTw8X: line 46: ./configure: No such file or directory + : + scons -j4 --prefix=/usr --libdir=/usr/lib64 --datadir=/usr/share scons: Reading SConscript files ... Warning: you've set CFLAGS in the environmental variable! Warning: you've set CXXFLAGS in the environmental variable! Warning: you've set LDFLAGS in the environmental variable! Checking for pkg-config... yes Checking for sqlite3... yes Checking for C header file assert.h... yes Checking for C function bind_textdomain_codeset()... yes Checking for C function dcgettext()... yes Checking for C function exp2()... no Checking for C header file fcntl.h... yes Checking for C header file getopt.h... yes Checking for C function getopt_long()... yes Checking for C function getpagesize()... yes Checking for C function get_opt()... no Checking for C header file iconv.h... yes Checking for C header file inttypes.h... yes Checking for C header file locale.h... yes Checking for C header file libintl.h... yes Checking for C header file limits.h... yes Checking for C header file locale.h... yes Checking for C function log2()... no Checking for C header file memory.h... yes Checking for C function memset()... yes Checking for C function mmap()... yes Checking for C function munmap()... yes Checking for C function setlocale()... yes Checking for C header file sys/mman.h... yes Checking for C header file sys/param.h... yes Checking for C header file sys/stat.h... yes Checking for C header file sys/types.h... yes Checking for C header file unistd.h... yes Checking for C header file wchar.h... yes scons: done reading SConscript files. scons: Building targets ... scons: Configure: creating config.h Creating 'doc/README' Creating 'doc/SLM-inst.mk' cd python && ./pinyin_info_gen.py > ../src/pinyin/pinyin_info.h g++ -o src/portability.os -c -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pipe -fPIC -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR='"/usr/share/sunpinyin"' -I. -Isrc -Isrc/ime-core -Isrc/slm -Isrc/slm/tslmendian -Isrc/slm/getwordfreq -Isrc/slm/slmseg -Isrc/slm/ids2ngram -Isrc/slm/slmbuild -Isrc/slm/slmprune -Isrc/slm/thread -Isrc/slm/slminfo -Isrc/slm/slmpack -Isrc/slm/tslminfo -Isrc/slm/tools -Isrc/slm/mmseg -Isrc/lexicon -Isrc/pinyin src/portability.cpp g++ -o src/slm/slm.os -c -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pipe -fPIC -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR='"/usr/share/sunpinyin"' -I. -Isrc -Isrc/ime-core -Isrc/slm -Isrc/slm/tslmendian -Isrc/slm/getwordfreq -Isrc/slm/slmseg -Isrc/slm/ids2ngram -Isrc/slm/slmbuild -Isrc/slm/slmprune -Isrc/slm/thread -Isrc/slm/slminfo -Isrc/slm/slmpack -Isrc/slm/tslminfo -Isrc/slm/tools -Isrc/slm/mmseg -Isrc/lexicon -Isrc/pinyin src/slm/slm.cpp BUILDSTDERR: In file included from src/portability.cpp:39: BUILDSTDERR: ./config.h:122:3: error: #error can not detect the endianness! BUILDSTDERR: # error can not detect the endianness! BUILDSTDERR: ^~~~~ g++ -o src/pinyin/pinyin_data.os -c -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pipe -fPIC -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR='"/usr/share/sunpinyin"' -I. -Isrc -Isrc/ime-core -Isrc/slm -Isrc/slm/tslmendian -Isrc/slm/getwordfreq -Isrc/slm/slmseg -Isrc/slm/ids2ngram -Isrc/slm/slmbuild -Isrc/slm/slmprune -Isrc/slm/thread -Isrc/slm/slminfo -Isrc/slm/slmpack -Isrc/slm/tslminfo -Isrc/slm/tools -Isrc/slm/mmseg -Isrc/lexicon -Isrc/pinyin src/pinyin/pinyin_data.cpp g++ -o src/lexicon/pytrie.os -c -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -fasynchronous-unwind-tables -fstack-clash-protection -pipe -fPIC -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR='"/usr/share/sunpinyin"' -I. -Isrc -Isrc/ime-core -Isrc/slm -Isrc/slm/tslmendian -Isrc/slm/getwordfreq -Isrc/slm/slmseg -Isrc/slm/ids2ngram -Isrc/slm/slmbuild -Isrc/slm/slmprune -Isrc/slm/thread -Isrc/slm/slminfo -Isrc/slm/slmpack -Isrc/slm/tslminfo -Isrc/slm/tools -Isrc/slm/mmseg -Isrc/lexicon -Isrc/pinyin src/lexicon/pytrie.cpp BUILDSTDERR: In file included from src/slm/slm.h:43, BUILDSTDERR: from src/slm/slm.cpp:46: BUILDSTDERR: ./config.h:122:3: error: #error can not detect the endianness! BUILDSTDERR: # error can not detect the endianness! BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from src/lexicon/pytrie.h:6, BUILDSTDERR: from src/lexicon/pytrie.cpp:6: BUILDSTDERR: ./config.h:122:3: error: #error can not detect the endianness! BUILDSTDERR: # error can not detect the endianness! BUILDSTDERR: ^~~~~ BUILDSTDERR: In file included from src/pinyin/syllable.h:50, BUILDSTDERR: from src/pinyin/pinyin_data.h:44, BUILDSTDERR: from src/pinyin/pinyin_data.cpp:41: BUILDSTDERR: ./config.h:122:3: error: #error can not detect the endianness! BUILDSTDERR: # error can not detect the endianness! BUILDSTDERR: ^~~~~ BUILDSTDERR: scons: *** [src/portability.os] Error 1 BUILDSTDERR: scons: *** [src/pinyin/pinyin_data.os] Error 1 BUILDSTDERR: scons: *** [src/slm/slm.os] Error 1 BUILDSTDERR: scons: *** [src/lexicon/pytrie.os] Error 1 scons: building terminated because of errors. BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.7uTw8X (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.7uTw8X (%build) Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.7/site-packages/mockbuild/util.py", line 636, in do 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 --target riscv64 --nodeps /builddir/build/SPECS/sunpinyin.spec