Run the 'make', get the error messages:
mkdir -p /home/shining/mapleall/out/riscv64-clang-release; /home/shining/mapleall/tools/gn/gn gen /home/shining/mapleall/out/riscv64-clang-release --args=' GN_INSTALL_PREFIX="/home/shining/mapleall" GN_BUILD_TYPE="RELEASE" USE_CLANG=1 HOST_ARCH=64 JAVA=1 USE_ZRT=0 DEFERRAL_RC="OFF" STRICT_NAIVE_RC="OFF" RC_TESTING="OFF" USE_MALLOC="" COV_CHECK=0 PLATFORM_SDK_VERSION=27 TARGET="riscv64" X86=1' --export-compile-commands; cd /home/shining/mapleall/out/riscv64-clang-release; /home/shining/mapleall/tools/ninja_1.9.0/ninja -v irbuild maple mplcg;
Generating compile_commands took 3ms
Done. Made 38 targets from 14 files in 16ms
[1/210] clang++ -I../../mapleall/maple_be/include/cg -I../../mapleall/maple_be/include/cg/aarch64 -I../../mapleall/maple_be/include/cg/ark -I../../mapleall/maple_be/include/cg/riscv64 -I../../mapleall/maple_be/include/ad -I../../mapleall/maple_be/include/ad/cortex_a55 -I../../mapleall/maple_be/include/be/aarch64 -I../../mapleall/maple_be/include/be/ark -I../../mapleall/maple_be/include/be/riscv64 -I../../mapleall/maple_be/include/be/mmpl -I../../mapleall/maple_be/include/be/nonmmpl -I../../mapleall/maple_be/include/be -I../../mapleall/maple_util/include -I../../mapleall/maple_ir/include -I../../mapleall/mpl2mpl/include -I../../mapleall/mempool/include -I../../mapleall/maple_ipa/include -I../../mapleall/maple_phase/include -I../../huawei_secure_c/include -I../../tools/dwarf/include -I../../maple_engine/include -I../../mapleall/maple_driver/include -O3 -Wall -fstack-protector-strong -fPIC -m64 -DDYNAMICLANG -DMIR_FEATURE_FULL=1 -DMIR_FEATURE_FULL=1 -DTARGRISCV64 -std=c++14 -Werror -Wno-unused-variable -MD -MT obj/mapleall/maple_be/src/cg/libcg.emit.o -MF obj/mapleall/maple_be/src/cg/libcg.emit.o.d -o obj/mapleall/maple_be/src/cg/libcg.emit.o -c ../../mapleall/maple_be/src/cg/emit.cpp
FAILED: obj/mapleall/maple_be/src/cg/libcg.emit.o
clang++ -I../../mapleall/maple_be/include/cg -I../../mapleall/maple_be/include/cg/aarch64 -I../../mapleall/maple_be/include/cg/ark -I../../mapleall/maple_be/include/cg/riscv64 -I../../mapleall/maple_be/include/ad -I../../mapleall/maple_be/include/ad/cortex_a55 -I../../mapleall/maple_be/include/be/aarch64 -I../../mapleall/maple_be/include/be/ark -I../../mapleall/maple_be/include/be/riscv64 -I../../mapleall/maple_be/include/be/mmpl -I../../mapleall/maple_be/include/be/nonmmpl -I../../mapleall/maple_be/include/be -I../../mapleall/maple_util/include -I../../mapleall/maple_ir/include -I../../mapleall/mpl2mpl/include -I../../mapleall/mempool/include -I../../mapleall/maple_ipa/include -I../../mapleall/maple_phase/include -I../../huawei_secure_c/include -I../../tools/dwarf/include -I../../maple_engine/include -I../../mapleall/maple_driver/include -O3 -Wall -fstack-protector-strong -fPIC -m64 -DDYNAMICLANG -DMIR_FEATURE_FULL=1 -DMIR_FEATURE_FULL=1 -DTARGRISCV64 -std=c++14 -Werror -Wno-unused-variable -MD -MT obj/mapleall/maple_be/src/cg/libcg.emit.o -MF obj/mapleall/maple_be/src/cg/libcg.emit.o.d -o obj/mapleall/maple_be/src/cg/libcg.emit.o -c ../../mapleall/maple_be/src/cg/emit.cpp
../../mapleall/maple_be/src/cg/emit.cpp:54:23: error: object backing the pointer will be destroyed at the end of the full-expression [-Werror,-Wdangling-gsl]
const char *puIdx = std::to_string(CG::curPuIdx).c_str();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../../mapleall/maple_be/src/cg/emit.cpp:979:31: error: object backing the pointer will be destroyed at the end of the full-expression [-Werror,-Wdangling-gsl]
const char *idx = std::to_string(GlobalTables::GetFunctionTable().GetFunctionFromPuidx(funcaddr->GetValue())->puIdx).c_str();
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
[2/210] clang++ -I../../mapleall/maple_be/include/cg -I../../mapleall/maple_be/include/cg/aarch64 -I../../mapleall/maple_be/include/cg/ark -I../../mapleall/maple_be/include/cg/riscv64 -I../../mapleall/maple_be/include/ad -I../../mapleall/maple_be/include/ad/cortex_a55 -I../../mapleall/maple_be/include/be/aarch64 -I../../mapleall/maple_be/include/be/ark -I../../mapleall/maple_be/include/be/riscv64 -I../../mapleall/maple_be/include/be/mmpl -I../../mapleall/maple_be/include/be/nonmmpl -I../../mapleall/maple_be/include/be -I../../mapleall/maple_util/include -I../../mapleall/maple_ir/include -I../../mapleall/mpl2mpl/include -I../../mapleall/mempool/include -I../../mapleall/maple_ipa/include -I../../mapleall/maple_phase/include -I../../huawei_secure_c/include -I../../tools/dwarf/include -I../../maple_engine/include -I../../mapleall/maple_driver/include -O3 -Wall -fstack-protector-strong -fPIC -m64 -DDYNAMICLANG -DMIR_FEATURE_FULL=1 -DMIR_FEATURE_FULL=1 -DTARGRISCV64 -std=c++14 -Werror -Wno-unused-variable -MD -MT obj/mapleall/maple_be/src/cg/libcg.emit_dbg.o -MF obj/mapleall/maple_be/src/cg/libcg.emit_dbg.o.d -o obj/mapleall/maple_be/src/cg/libcg.emit_dbg.o -c ../../mapleall/maple_be/src/cg/emit_dbg.cpp
ninja: build stopped: subcommand failed.
make: *** [Makefile:72: mapleall] Error 1