Skip to content

[BUG] Build With CMake and GCC as static library #646

@0x7a657573

Description

@0x7a657573

Describe the bug
I tried to add FreeRTOS on my CMake Project but in compile time I get some error like this:

[build] ../system/FreeRTOS/portable/GCC/ARM_CM3/portmacro.h:135:51: error: unknown type name 'inline'
[build] attribute( ( always_inline ) ) static inline uint8_t ucPortCountLeadingZeros( uint32_t ulBitmap )

I think this error happen because in the FreeRTOS, CMakelists.txt at line 296 say to compiler use C90 standard.
set_property(TARGET freertos_kernel PROPERTY C_STANDARD 90)
when I change this line to use GNU99 standard, error is gone !

Target

  • Development board: [STM32F103CBT6]
  • Instruction Set Architecture: [ARM Cortex-m3]
  • IDE and version: [vscode]
  • Toolchain and version: [GCC arm-none-eabi-8.3.1]

Host

  • Host OS: [Linux]
  • Version: [Debian 11.6]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions