NJUPT-SAST / sast-evento

SAST Evento is a cross-platform desktop client based on Slint.
https://evento.sast.fun
MIT License
26 stars 4 forks source link

bug: Internal Compiler Error when using gcc-13 #75

Closed f3rmata closed 1 month ago

f3rmata commented 1 month ago

Issue: Internal Compiler Error when using gcc-13 to compile the project.

Reproduce:

cmake --preset native
cd build && ninja

Log:

FAILED: src/CMakeFiles/sast-evento.dir/Infrastructure/Network/NetworkClient.cc.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DBOOST_ASIO_HAS_IO_URING -DBOOST_SYSTEM_DYN_LINK -DBOOST_SYSTEM_NO_LIB -DBOOST_URL_DYN_LINK -DBOOST_URL_NO_LIB -DEVENTO_API_V1 -DFMT_SHARED -DKEYCHAIN_LINUX=1 -DLOCALE_DIR=\"/var/tmp/portage/app-misc/sast-evento-9999/work/sast-evento-9999/ui/locale\" -DPLATFORM_LINUX -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -DSPDLOG_SHARED_LIB -I/var/tmp/portage/app-misc/sast-evento-9999/work/sast-evento-9999_build/src -I/var/tmp/portage/app-misc/sast-evento-9999/work/sast-evento-9999/src -I/var/tmp/portage/app-misc/sast-evento-9999/work/sast-evento-9999/3rdpart/sast-link-cxx-sdk/include -I/var/tmp/portage/app-misc/sast-evento-9999/work/sast-evento-9999/3rdpart/keychain/include -I/var/tmp/portage/app-misc/sast-evento-9999/work/sast-evento-9999_build -isystem /var/tmp/portage/app-misc/sast-evento-9999/work/sast-evento-9999_build/_deps/slint-build/generated_include -isystem /var/tmp/portage/app-misc/sast-evento-9999/work/sast-evento-9999_build/_deps/slint-src/api/cpp/include  -march=alderlake -O2 -pipe -mabm -mno-cldemote -mno-kl -mno-sgx -mno-widekl -mshstk --param=l1-cache-line-size=64 --param=l1-cache-size=32 --param=l2-cache-size=24576 -std=c++20 -fno-ipa-sra -fno-ipa-cp-clone -MD -MT src/CMakeFiles/sast-evento.dir/Infrastructure/Network/NetworkClient.cc.o -MF src/CMakeFiles/sast-evento.dir/Infrastructure/Network/NetworkClient.cc.o.d -o src/CMakeFiles/sast-evento.dir/Infrastructure/Network/NetworkClient.cc.o -c /var/tmp/portage/app-misc/sast-evento-9999/work/sast-evento-9999/src/Infrastructure/Network/NetworkClient.cc
/var/tmp/portage/app-misc/sast-evento-9999/work/sast-evento-9999/src/Infrastructure/Network/NetworkClient.cc: In member function ‘evento::Task<Result<evento::LoginResEntity, evento::Error> > evento::NetworkClient::loginViaSastLink(std::string)’:
/var/tmp/portage/app-misc/sast-evento-9999/work/sast-evento-9999/src/Infrastructure/Network/NetworkClient.cc:116:1: internal compiler error: in build_special_member_call, at cp/call.cc:11096
  116 | }
      | ^
0x1c82f9b internal_error(char const*, ...)
    ???:0
0x6dcdc0 fancy_abort(char const*, int, char const*)
    ???:0
0x10aa213 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
    ???:0
0x10aa213 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
    ???:0
0x10aa213 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
    ???:0
0x10aa213 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
    ???:0
0x10aa384 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
    ???:0
0x10aa213 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
    ???:0
0x10aa213 walk_tree_1(tree_node**, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*, tree_node* (*)(tree_node**, int*, tree_node* (*)(tree_node**, int*, void*), void*, hash_set<tree_node*, false, default_hash_traits<tree_node*> >*))
    ???:0
0x739d42 morph_fn_to_coro(tree_node*, tree_node**, tree_node**)
    ???:0
0x7749ef finish_function(bool)
    ???:0
0x851a59 c_parse_file()
    ???:0
0x944779 c_common_parse_file()
    ???:0
Please submit a full bug report, with preprocessed source (by using -freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
gcc -v
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/13/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-13.3.1_p20240614/work/gcc-13-20240614/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/13 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/13/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/13 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/13/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/13/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/13/python --enable-languages=c,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=release --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo 13.3.1_p20240614 p17' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --enable-cet --disable-systemtap --disable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --without-isl --enable-default-pie --enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-lto bootstrap-cet'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 13.3.1 20240614 (Gentoo 13.3.1_p20240614 p17) 

Fix:

Bump up gcc version.

ArcticLampyrid commented 1 month ago

已知问题,请更新 GCC。

ArcticLampyrid commented 1 month ago

Upstream Issue:https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115660