-
Notifications
You must be signed in to change notification settings - Fork 28
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
Error: "multiple definition of `_sbrk'" in src/syscalls.c #16
Comments
I have checked on the Internet and find out this blog works fine with my issue: However, I don't understand why this function "_sbrk" has been declared multiple times? Thanks. |
Had this same issue. I fixed it by deleting newlib/_sbrk.c. |
I've been having the same issue. For a temporary fix, on the Would love to know if there are any permanent fix for this though. Lines in question:
|
Have the same issue. Compiled successfully after omitting The
I don't have enough C/Arm knowledge. Which one is outdated? |
I am using STM32F4 Discovery board following the step by step in 'Mastering STM32' - Carmine Noviello (Aug-2018). I have tried to import the CubeMX code generated project to the existed project in eclipse and it has got this error.
Eclipse: Oxygen.3a Release (4.7.3a)
Cube MX: 5.6.1
ARM GCC: gcc-arm-none-eabi-9-2019-q4-major-win32
c:/smt32toolchain/gcc-arm/bin/../lib/gcc/arm-none-eabi/9.2.1/../../../../arm-none-eabi/bin/ld.exe: ./src/syscalls.o: in function
_sbrk':C:\SMT32Toolchain\projects\Blinky\Debug/../src/syscalls.c:118: multiple definition of
_sbrk'; ./system/src/newlib/_sbrk.o:C:\SMT32Toolchain\projects\Blinky\Debug/../system/src/newlib/_sbrk.c:45: first defined here collect2.exe: error: ld returned 1 exit status make: *** [makefile:64: Blinky.elf] Error 1
Thank you!
The text was updated successfully, but these errors were encountered: