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/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/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 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/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/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/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.QJJMo7 (%build) RPM build errors: BUILDSTDERR: Bad exit status from /var/tmp/rpm-tmp.QJJMo7 (%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