Mock Version: 1.4.9 Mock Version: 1.4.9 ENTER ['do'](['bash', '--login', '-c', '/usr/bin/rpmbuild -bs --target riscv64 --nodeps /builddir/build/SPECS/sunpinyin.spec'], chrootPath='/var/lib/mock/f29-build-15178-6981/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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Wrote: /builddir/build/SRPMS/sunpinyin-2.0.4-0.22.20160301git.fc29.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/f29-build-15178-6981/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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'}shell=Falselogger=timeout=345600uid=998gid=135user='mockbuild'nspawn_args=[]unshare_net=FalseprintOutput=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', 'http_proxy': 'http://192.168.0.254:3128', 'https_proxy': 'http://192.168.0.254:3128'} and shell False Building target platforms: riscv64 Building for target riscv64 Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.tr2TTj + 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 . + 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 ~/build/BUILD/sunpinyin-20160301 + popd + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.0QZbLp + 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,-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.0QZbLp: line 48: ./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 BUILDSTDERR: DEPRECATION WARNING: python2 invoked with /usr/bin/python. BUILDSTDERR: Use /usr/bin/python3 or /usr/bin/python2 BUILDSTDERR: /usr/bin/python will be removed or switched to Python 3 in the future. BUILDSTDERR: If you cannot make the switch now, please follow instructions at https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Quick_Opt-Out 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/lexicon -Isrc/slm -Isrc/slm/tools -Isrc/slm/getwordfreq -Isrc/slm/slmprune -Isrc/slm/slminfo -Isrc/slm/tslminfo -Isrc/slm/thread -Isrc/slm/tslmendian -Isrc/slm/slmpack -Isrc/slm/mmseg -Isrc/slm/ids2ngram -Isrc/slm/slmseg -Isrc/slm/slmbuild -Isrc/pinyin -Isrc/ime-core src/lexicon/pytrie.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/lexicon -Isrc/slm -Isrc/slm/tools -Isrc/slm/getwordfreq -Isrc/slm/slmprune -Isrc/slm/slminfo -Isrc/slm/tslminfo -Isrc/slm/thread -Isrc/slm/tslmendian -Isrc/slm/slmpack -Isrc/slm/mmseg -Isrc/slm/ids2ngram -Isrc/slm/slmseg -Isrc/slm/slmbuild -Isrc/pinyin -Isrc/ime-core src/slm/slm.cpp 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/lexicon -Isrc/slm -Isrc/slm/tools -Isrc/slm/getwordfreq -Isrc/slm/slmprune -Isrc/slm/slminfo -Isrc/slm/tslminfo -Isrc/slm/thread -Isrc/slm/tslmendian -Isrc/slm/slmpack -Isrc/slm/mmseg -Isrc/slm/ids2ngram -Isrc/slm/slmseg -Isrc/slm/slmbuild -Isrc/pinyin -Isrc/ime-core src/pinyin/pinyin_data.cpp 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/lexicon -Isrc/slm -Isrc/slm/tools -Isrc/slm/getwordfreq -Isrc/slm/slmprune -Isrc/slm/slminfo -Isrc/slm/tslminfo -Isrc/slm/thread -Isrc/slm/tslmendian -Isrc/slm/slmpack -Isrc/slm/mmseg -Isrc/slm/ids2ngram -Isrc/slm/slmseg -Isrc/slm/slmbuild -Isrc/pinyin -Isrc/ime-core src/portability.cpp 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/portability.cpp:39: 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/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/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/slm/slm.os] Error 1 BUILDSTDERR: scons: *** [src/pinyin/pinyin_data.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.0QZbLp (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.0QZbLp (%build) RPM build errors: Child return code was: 1 EXCEPTION: [Error()] Traceback (most recent call last): File "/usr/lib/python3.6/site-packages/mockbuild/trace_decorator.py", line 96, in trace result = func(*args, **kw) File "/usr/lib/python3.6/site-packages/mockbuild/util.py", line 626, 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