Skip to content

internal compiler error: in build_cleanup, while initializing a const std::string& statically. #71

Description

@auggeythecat

Bug Report

What's the issue you encountered?

While attempting to build/port the Dolphin emulator to the Switch, an internal compiler error was encountered (consistently) from a const std::string& initialization. See below, along with the dump at the bottom:

Source/Core/Common/IniFile.cpp:39:43: internal compiler error: in build_cleanup, at cp/decl2.cc:3750
39 | const std::string& IniFile::NULL_STRING = "";
| ^~
0x75fbd3027740 __libc_start_call_main
../sysdeps/nptl/libc_start_call_main.h:59
0x75fbd3027878 __libc_start_main_impl
../csu/libc-start.c:360
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See https://devkitpro.org for instructions.
Preprocessed source stored into /tmp/ccCc5paU.out file, please attach this to your bugreport.
make[3]: *** [Source/Core/Common/CMakeFiles/common.dir/build.make:541: Source/Core/Common/CMakeFiles/common.dir/IniFile.cpp.obj] Error 1
make[2]: *** [CMakeFiles/Makefile2:2650: Source/Core/Common/CMakeFiles/common.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:3031: Source/Core/DolphinNoGUI/CMakeFiles/dolphin-nogui.dir/rule] Error 2
make: *** [Makefile:742: dolphin-nogui] Error 2

How can the issue be reproduced?

I had no part in the creation of dolphin.

Configuring with the devkitpro switch toolchain, then building the dolphin-nogui make target consistently gives this ICE on this commit: https://github.com/auggeythecat/dolphin-nx/tree/7f6e49d96f30e51b2d0852ddf5cdc42574e65287

Environment?

Windows 11, running an arch linux WSL distro (archlinux).

Apologies if I didn't redact anything properly
env.txt

All tools are official.

Additional context?

Preprocessed source dump from the -freport-bug flag.

ccCc5paU.out.gz

Thank you so much more making the tools/toolchain, let alone dedicating time to stuff like this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions