e 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: sh: ./pinyin_info_gen.py: /usr/bin/python: bad interpreter: No such file or directory 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/slm -Isrc/slm/getwordfreq -Isrc/slm/slminfo -Isrc/slm/tools -Isrc/slm/slmseg -Isrc/slm/slmpack -Isrc/slm/tslminfo -Isrc/slm/ids2ngram -Isrc/slm/thread -Isrc/slm/slmbuild -Isrc/slm/slmprune -Isrc/slm/tslmendian -Isrc/slm/mmseg -Isrc/ime-core -Isrc/pinyin -Isrc/lexicon src/slm/slm.cpp BUILDSTDERR: scons: *** [src/pinyin/pinyin_info.h] Error 126 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/slm -Isrc/slm/getwordfreq -Isrc/slm/slminfo -Isrc/slm/tools -Isrc/slm/slmseg -Isrc/slm/slmpack -Isrc/slm/tslminfo -Isrc/slm/ids2ngram -Isrc/slm/thread -Isrc/slm/slmbuild -Isrc/slm/slmprune -Isrc/slm/tslmendian -Isrc/slm/mmseg -Isrc/ime-core -Isrc/pinyin -Isrc/lexicon src/portability.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: ^~~~~ 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: scons: *** [src/portability.os] Error 1 BUILDSTDERR: scons: *** [src/slm/slm.os] Error 1 scons: building terminated because of errors. RPM build errors: BUILDSTDERR: error: Bad exit status from /var/tmp/rpm-tmp.r5bGUe (%build) BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.r5bGUe (%build) 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