Skip to content

Build fix for gcc 11 on stm32 boards#166

Merged
hathach merged 11 commits into
adafruit:masterfrom
DuMaM:bugfix/#165-stm32-build-fix
Jun 28, 2022
Merged

Build fix for gcc 11 on stm32 boards#166
hathach merged 11 commits into
adafruit:masterfrom
DuMaM:bugfix/#165-stm32-build-fix

Conversation

@DuMaM
Copy link
Copy Markdown
Contributor

@DuMaM DuMaM commented Dec 11, 2021

This is a fix for issue #165

I did't program in C for quite long, so sorry for this trivial fix. Maybe somebody will propose a better solution.

@DuMaM DuMaM force-pushed the bugfix/#165-stm32-build-fix branch from 8b9670b to afb8377 Compare December 11, 2021 23:18
Comment thread ports/stm32f3/boards.c Outdated
Comment thread ports/stm32f3/boards.c Outdated
Copy link
Copy Markdown
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't reproduce the issue since latest release from ARM is only 10.3. We will leave this issue and pr pending until gcc11 is released. Thank you for the pr.

@hathach
Copy link
Copy Markdown
Member

hathach commented Jun 28, 2022

thank you for keeping this PR update, I did pull and try to update this PR as well. Unfortunately the self-update target of stm32f4 still failed due to the false warnings from -Werror=stringop-overread gcc. This has been fixed in gcc 11.3. For now, we will suppress it with -Wno-error to get this merged asap.

https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=91f7d7e1bb6827bf8e0b7ba7eb949953a5b1bd18

@hathach hathach merged commit 626c552 into adafruit:master Jun 28, 2022
@DuMaM DuMaM deleted the bugfix/#165-stm32-build-fix branch June 28, 2022 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants