+ exec + rm -rf /rpmbuild + mkdir -p /rpmbuild + su -c 'rpmbuild -ba /builddir/build/SPECS/sunpinyin.spec --define "debug_package %{nil}" --undefine _annotated_build --define "_missing_doc_files_terminate_build %{nil}" --define "_emacs_sitestartdir /usr/share/emacs/site-lisp/site-start.d" --define "_emacs_sitelispdir /usr/share/emacs/site-lisp" --nocheck ' mockbuild Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.P8IJ4m + 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 + popd ~/build/BUILD/sunpinyin-20160301 + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.FqdyHO + 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 ' + 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 ' + 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 -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 -I/usr/lib64/gfortran/modules' + export FCFLAGS + LDFLAGS='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld' + export LDFLAGS + '[' 1 = 1 ']' +++ dirname ./configure ++ find . -name config.guess -o -name config.sub + '[' 1 = 1 ']' + '[' x '!=' x-specs=/usr/lib/rpm/redhat/redhat-hardened-ld ']' ++ find . -name ltmain.sh + ./configure --build=riscv64-redhat-linux-gnu --host=riscv64-redhat-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 /var/tmp/rpm-tmp.FqdyHO: 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 DEPRECATION WARNING: python2 invoked with /usr/bin/python. Use /usr/bin/python3 or /usr/bin/python2 /usr/bin/python will be removed or switched to Python 3 in the future. 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 -pipe -fPIC -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR='"/usr/share/sunpinyin"' -I. -Isrc -Isrc/pinyin -Isrc/lexicon -Isrc/ime-core -Isrc/slm -Isrc/slm/thread -Isrc/slm/slmbuild -Isrc/slm/slmseg -Isrc/slm/slmprune -Isrc/slm/ids2ngram -Isrc/slm/tslmendian -Isrc/slm/slminfo -Isrc/slm/slmpack -Isrc/slm/tools -Isrc/slm/tslminfo -Isrc/slm/mmseg -Isrc/slm/getwordfreq src/lexicon/pytrie.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 -pipe -fPIC -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR='"/usr/share/sunpinyin"' -I. -Isrc -Isrc/pinyin -Isrc/lexicon -Isrc/ime-core -Isrc/slm -Isrc/slm/thread -Isrc/slm/slmbuild -Isrc/slm/slmseg -Isrc/slm/slmprune -Isrc/slm/ids2ngram -Isrc/slm/tslmendian -Isrc/slm/slminfo -Isrc/slm/slmpack -Isrc/slm/tools -Isrc/slm/tslminfo -Isrc/slm/mmseg -Isrc/slm/getwordfreq src/portability.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 -pipe -fPIC -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR='"/usr/share/sunpinyin"' -I. -Isrc -Isrc/pinyin -Isrc/lexicon -Isrc/ime-core -Isrc/slm -Isrc/slm/thread -Isrc/slm/slmbuild -Isrc/slm/slmseg -Isrc/slm/slmprune -Isrc/slm/ids2ngram -Isrc/slm/tslmendian -Isrc/slm/slminfo -Isrc/slm/slmpack -Isrc/slm/tools -Isrc/slm/tslminfo -Isrc/slm/mmseg -Isrc/slm/getwordfreq src/pinyin/pinyin_data.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 -pipe -fPIC -DHAVE_CONFIG_H -DSUNPINYIN_DATA_DIR='"/usr/share/sunpinyin"' -I. -Isrc -Isrc/pinyin -Isrc/lexicon -Isrc/ime-core -Isrc/slm -Isrc/slm/thread -Isrc/slm/slmbuild -Isrc/slm/slmseg -Isrc/slm/slmprune -Isrc/slm/ids2ngram -Isrc/slm/tslmendian -Isrc/slm/slminfo -Isrc/slm/slmpack -Isrc/slm/tools -Isrc/slm/tslminfo -Isrc/slm/mmseg -Isrc/slm/getwordfreq src/slm/slm.cpp In file included from src/portability.cpp:39:0: ./config.h:122:3: error: #error can not detect the endianness! # error can not detect the endianness! ^~~~~ In file included from src/lexicon/pytrie.h:6:0, from src/lexicon/pytrie.cpp:6: ./config.h:122:3: error: #error can not detect the endianness! # error can not detect the endianness! ^~~~~ In file included from src/slm/slm.h:43:0, from src/slm/slm.cpp:46: ./config.h:122:3: error: #error can not detect the endianness! # error can not detect the endianness! ^~~~~ In file included from src/pinyin/syllable.h:50:0, from src/pinyin/pinyin_data.h:44, from src/pinyin/pinyin_data.cpp:41: ./config.h:122:3: error: #error can not detect the endianness! # error can not detect the endianness! ^~~~~ scons: *** [src/portability.os] Error 1 scons: *** [src/pinyin/pinyin_data.os] Error 1 scons: *** [src/slm/slm.os] Error 1 scons: *** [src/lexicon/pytrie.os] Error 1 scons: building terminated because of errors. error: Bad exit status from /var/tmp/rpm-tmp.FqdyHO (%build) RPM build errors: Bad exit status from /var/tmp/rpm-tmp.FqdyHO (%build) ++ cleanup ++ set +e ++ sync ++ sleep 5 ++ sync ++ poweroff Terminated +++ cleanup +++ set +e +++ sync Terminated ++++ cleanup ++++ set +e ++++ sync ++++ sleep 5 ++++ sync ++++ poweroff