Problem compiling & linking
-
Hi all
I have followed all instructions on how to start with RepRapFirmware development environment on macos.
https://github.com/Duet3D/RepRapFirmware/wiki/Building-RepRapFirmware
The only difference, I didn't use homebrew, but installed gcc-arm-embedded from package (https://developer.arm.com/downloads/-/arm-gnu-toolchain-downloads) and eclipse from direct installer.
All the other steps are the same.
CoreN2G, FreeRTOS and RRFLibraries build just fine.
RepRapFirmware (build configuration Duet3_MB6HC) however gives me errors.
It seems thatuint32_t
is undefined, so I add:#include <stdint.h>
in
src/libc/nano-mallocr.c
That gives me the following error:
Now there are multiple definitions of_malloc_r
Renaming
src/libc/nano-mallocr.c
tosrc/libc/nano-mallocr.c.ignore
leaves me with:I have no idea where to look next.
Also, I suppose it's not ok to remove
src/libc/nano-mallocr.c
, but then again, why did it say thatuint32_t
is undefined in the first place?Am I missing some setup?
Thanks
CheersGerd
-
@Zambiorix we think the issue with multiple definitions of _malloc_r occurs when you use a later version of gcc than the one we currently use. We currently use ARM release 10 2021.10. We'll probably update to a later version before 3.5 final.
-
Thanks! That solved it, now the project build without errors.
/bin/sh: crc32appender: command not found
That is strange, I have added it to my PATH
gerd@Gerds-MacBook-Pro ~ % whereis crc32appender crc32appender: /Users/gerd/Documents/Projects/Projects/Duet3D/RepRapFirmware/Tools/crc32appender/macos-x86_64/crc32appender
What could be the issue?
-
Ok, it all works
I had to add the PATH in Eclipse.
Project > Properties > C/C++ Build > Environment
Not sure why I had to do that, since the application is accessible in a terminal window