Skip to content

[build] Fix STM32 build with GCC15 - #1374

Merged
salkinium merged 1 commit into
modm-io:developfrom
chris-durand:fix/gcc15
Aug 7, 2026
Merged

[build] Fix STM32 build with GCC15#1374
salkinium merged 1 commit into
modm-io:developfrom
chris-durand:fix/gcc15

Conversation

@chris-durand

Copy link
Copy Markdown
Member

Allow compilation of STM32 GPIO module with GCC15 by fixing ODR violation due to missing inline on variable

GCC 15.2 is crashing trying to build CMSIS-DSP, but the issue is fixed in 15.3.

Specialisations of AdcChannel and DacChannel variable templates were
defined in a header with external linkage but weren't inline variables.
This was causing linker errors with gcc 15.

@salkinium salkinium left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@salkinium
salkinium merged commit 82d6c04 into modm-io:develop Aug 7, 2026
64 checks passed
@chris-durand
chris-durand deleted the fix/gcc15 branch August 7, 2026 21:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants