Duet3D Logo Duet3D
    • Tags
    • Documentation
    • Order
    • Register
    • Login

    Problem compiling & linking

    Scheduled Pinned Locked Moved
    Firmware developers
    2
    4
    196
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Zambiorixundefined
      Zambiorix
      last edited by

      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.

      Screenshot 2023-03-30 at 16.59.24.png
      It seems that uint32_t is undefined, so I add:

      #include <stdint.h>
      

      in src/libc/nano-mallocr.c

      That gives me the following error:

      Screenshot 2023-03-30 at 17.11.39.png
      Now there are multiple definitions of _malloc_r

      Renaming src/libc/nano-mallocr.c to src/libc/nano-mallocr.c.ignore leaves me with:

      Screenshot 2023-03-30 at 17.16.41.png

      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 that uint32_t is undefined in the first place?

      Am I missing some setup?

      Thanks
      Cheers

      Gerd

      dc42undefined 1 Reply Last reply Reply Quote 0
      • dc42undefined
        dc42 administrators @Zambiorix
        last edited by

        @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.

        Duet WiFi hardware designer and firmware engineer
        Please do not ask me for Duet support via PM or email, use the forum
        http://www.escher3d.com, https://miscsolutions.wordpress.com

        Zambiorixundefined 1 Reply Last reply Reply Quote 1
        • Zambiorixundefined
          Zambiorix @dc42
          last edited by

          @dc42

          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?

          1 Reply Last reply Reply Quote 0
          • Zambiorixundefined
            Zambiorix
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Unless otherwise noted, all forum content is licensed under CC-BY-SA