-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Description
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.
Arduino_Core_STM32/system/Drivers/STM32H5xx_HAL_Driver/Src/stm32h5xx_hal_dma_ex.c
Line 4122 in 1ee0a03
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
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done
Milestone
Relationships
Development
Select code repository
Activity
fpistm commentedon Sep 25, 2023
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 commentedon Sep 25, 2023
Maybe this issue could interest @ilg-ul. At least for information.
ilg-ul commentedon Sep 25, 2023
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 commentedon Sep 25, 2023
Welcome, as stated it is more FYI than expecting support. I know you can't do nothing 😉