Encountering an "internal compiler error: Segmentation fault" with the 'cc1' program when compiling using the riscv32-elf toolchain under WSL2. The error occurs when compiling through the toolchain. I have tried almost every release, but problem still occurs every time.
I have tried to compile this toolchain directly on WSL2, but when executing cross-compilation with the compiled programs, there are always prompts indicating the absence of some library files that seem to be related to newlib. Although this issue is not directly related to the toolchain itself, I would appreciate guidance on how to resolve this problem. Thanks!
System Information
Issue Description
Encountering an "internal compiler error: Segmentation fault" with the 'cc1' program when compiling using the riscv32-elf toolchain under WSL2. The error occurs when compiling through the toolchain. I have tried almost every release, but problem still occurs every time. I have tried to compile this toolchain directly on WSL2, but when executing cross-compilation with the compiled programs, there are always prompts indicating the absence of some library files that seem to be related to newlib. Although this issue is not directly related to the toolchain itself, I would appreciate guidance on how to resolve this problem. Thanks!
The exact error message is as follows: