picohari / freertos_stm32f4

FreeRTOS on STM32F407 with LwIP, µGFX, FatFS, USB, ...
GNU General Public License v3.0
23 stars 13 forks source link

Error linker during working Makefile #2

Open filislav opened 3 years ago

filislav commented 3 years ago

Hello i am trying to use your firmware for figuring out how works usb and lwip together because when i am writing my firmware it doesn't work together. But finally i take an error of linker

Linking build/stm32f4-firmware.elf /usr/local/Cellar/gcc-arm-none-eabi/20200630/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: /usr/local/Cellar/gcc-arm-none-eabi/20200630/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc.a(lib_a-signalr.o): in function _getpid_r': signalr.c:(.text._getpid_r+0x0): undefined reference to_getpid'

What went wrong? I am be gratefull to you for your answer.

picohari commented 3 years ago

Hi, I think your linker/gcc version is too recent: On my system the versions are: gcc: arm-none-eabi-gcc (15:6.3.1+svn253039-1build1) 6.3.1 20170620 linker: GNU ld (2.27-9ubuntu1+9) 2.27

Or, try to enable _getpid in src/os/syscall.c - maybe the linker just needs an implementation of that function call [it does nothing, just returning 1] ...

Best regards

Am Fr., 25. Dez. 2020 um 09:21 Uhr schrieb Vyacheslav < notifications@github.com>:

Hello i am trying to use your firmware for figuring out how works usb and lwip together because when i am writing my firmware it doesn't work together. But finally i take an error of linker

Linking build/stm32f4-firmware.elf /usr/local/Cellar/gcc-arm-none-eabi/20200630/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/bin/ld: /usr/local/Cellar/gcc-arm-none-eabi/20200630/bin/../lib/gcc/arm-none-eabi/9.3.1/../../../../arm-none-eabi/lib/thumb/v7e-m+fp/hard/libc.a(lib_a-signalr.o): in function _getpid_r': signalr.c:(.text._getpid_r+0x0): undefined reference to _getpid'

What went wrong? I am be gratefull to you for your answer.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/picohari/freertos_stm32f4/issues/2, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABNCXMHNUU7SSU7CTEQYJALSWRDQHANCNFSM4VI6GJVA .

-- Gesendet von meiner Weltraumstation