Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
0x7a657573 opened this issue Mar 18, 2023 · 2 comments
Closed

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

0x7a657573 opened this issue Mar 18, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@0x7a657573
Copy link

0x7a657573 commented Mar 18, 2023

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]
@0x7a657573 0x7a657573 added the bug Something isn't working label Mar 18, 2023
@RichardBarry
Copy link
Contributor

Grateful if you can create a support thread on this at https://forums.freertos.org until we determine the route cause as the kernel should build with C90, and GCC is happy with "inline". Thanks.

@0x7a657573
Copy link
Author

I posted my Issue to forums.freertos.org

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants