Skip to content

STM32H5 internal compiler error #2138

@dojyorin

Description

@dojyorin
Contributor

Details

Compilation fails with "internal compiler error: Segmentation fault" during compilation.

Repeatability

  • OS: Windows 11 x64
  • Arduino Version: Arduino-CLI 0.34.2
  • Use from: VSCode Arduino Extension
  • STM32duino Version: 2.6.0
  • Target Board: Nucleo-H563ZI

The problem occurs even if I compile an blank project.

void setup(){}
void loop(){}

Cause

After some research I don't know why, replaced DMA_CLBAR_LBA to 0 in below, compilation was successful.

if (temp != ((uint32_t)ref & DMA_CLBAR_LBA))

if (temp != ((uint32_t)ref & 0))

The current value of DMA_CLBAR_LBA is 0xFFFF0000.

Log

ErrorLog
[Starting] Verifying sketch 'arduino\sketches\template\template.ino'
[Warning] Output path is not specified. Unable to reuse previously compiled files. Build will be slower. See README.
during GIMPLE pass: evrp
C:\Users\*\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.6.0\libraries\SrcWrapper\src\HAL\stm32yyxx_hal_dma_ex.c: In function 'HAL_DMAEx_List_ReplaceNode_Head':
C:\Users\*\AppData\Local\Arduino15\packages\STMicroelectronics\hardware\stm32\2.6.0\libraries\SrcWrapper\src\HAL\stm32yyxx_hal_dma_ex.c:34:9: internal compiler error: Segmentation fault
34 | #pragma GCC diagnostic pop
|         ^~~
libbacktrace could not find executable to open
Please submit a full bug report, with preprocessed source (by using -freport-bug).
See <https://gcc.gnu.org/bugs/> for instructions.
Error during build: exit status 1
IntelliSense configuration already up to date. To manually rebuild your IntelliSense configuration run "Ctrl+Alt+I"
[Error] Verifying sketch 'arduino\sketches\template\template.ino': Exit with code=1

Activity

fpistm

fpistm commented on Sep 25, 2023

@fpistm
Member

Hi @dojyorin
I was not able to reproduce on Windows 10 nor with Linux.
Anyway, it seems already reported to STMicroelectronics GH:
STMicroelectronics/stm32u5xx-hal-driver#5
Reading this issue, you will be redirected to some bugzilla.
It is linked to gcc:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108340

So I close it as not related to the core and will be fixed within next arm none eabi gcc toolchain update.

fpistm

fpistm commented on Sep 25, 2023

@fpistm
Member

Maybe this issue could interest @ilg-ul. At least for information.

ilg-ul

ilg-ul commented on Sep 25, 2023

@ilg-ul

Thank you @fpistm, I'll keep in mind that there is an issue, but there is not much we can do, we'll wait for Arm to make a new release.

fpistm

fpistm commented on Sep 25, 2023

@fpistm
Member

Thank you @fpistm, I'll keep in mind that there is an issue, but there is not much we can do, we'll wait for Arm to make a new release.

Welcome, as stated it is more FYI than expecting support. I know you can't do nothing 😉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ilg-ul@dojyorin@fpistm

        Issue actions

          STM32H5 internal compiler error · Issue #2138 · stm32duino/Arduino_Core_STM32