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

    Errors while building RRF 3.4beta3

    Scheduled Pinned Locked Moved Solved
    Firmware developers
    3
    21
    830
    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.
    • JayTundefined
      JayT
      last edited by

      Hi,

      I am trying to run basic build of available 3.4beta3. I have followed instructions as on :
      https://github.com/Duet3D/RepRapFirmware/wiki/Building-RepRapFirmware
      I am also using 3.4 beta3 project folders for all necessary parts like RRFlibraries, CAN lib etc.
      Can any of you suggest what is the possible cause of errors ?
      I haven't changed any C file. Possibly some settings issue in Eclipse?

      3.4beta3_build problems2.jpg

      note: Build order is also set right.

      JayTundefined dc42undefined 2 Replies Last reply Reply Quote 0
      • JayTundefined
        JayT @JayT
        last edited by JayT

        @jayt
        I included PATH settings in C/C++ ->build-> env. after that " invalid arguments' error is gone. But i still have G++ and gcc path not found errors.

        @dc42 @jay_s_uk : any suggestions?

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

          @jayt step 13 at https://github.com/Duet3D/RepRapFirmware/wiki/Building-RepRapFirmware is:

          The build depends on the Eclipse workspace variable ArmGccPath being set to the directory where your arm-none-eabi-g++ compiler resides. For example C:\Program Files (x86)\GNU Tools ARM Embedded\7 2018-q2-update\bin on Windows. To set it, go to Windows -> Preferences -> C/C++ -> Build -> Build Variables and click "Add..."

          Looks like you missed that one out or got it wrong.

          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

          JayTundefined 1 Reply Last reply Reply Quote 0
          • JayTundefined
            JayT @dc42
            last edited by

            @dc42 : I haven't missed the step. checked the arm-non-eabi-g++ in the path too.
            gnu-arm-path.jpg error-explanation.jpg

            1. Anything Else that i am missing here? What should be CDT settings?
            2. Do i have to include any other build env variable?
            jay_s_ukundefined dc42undefined 2 Replies Last reply Reply Quote 0
            • jay_s_ukundefined
              jay_s_uk @JayT
              last edited by

              @jayt you need to add it to the windows path https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/#:~:text=Click the “Environment Variables…”,path you want to add.

              Owns various duet boards and is the main wiki maintainer for the Teamgloomy LPC/STM32 port of RRF. Assume I'm running whatever the latest beta/stable build is

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

                @jayt Also check Cross Settings in the project:

                8e2a7ba9-de38-44ac-a335-065a31a553e1-image.png

                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

                JayTundefined 2 Replies Last reply Reply Quote 1
                • JayTundefined
                  JayT @dc42
                  last edited by

                  @dc42 : When I click on C/C++ settings, I don't see "Cross settings" like in your snapshot. I see Discovery & error Parsers tab.

                  @jay_s_uk : there was already one GNU path in $PATH.
                  I included the one suggested above too. no luck

                  JayTundefined 1 Reply Last reply Reply Quote 0
                  • JayTundefined
                    JayT @dc42
                    last edited by

                    This post is deleted!
                    1 Reply Last reply Reply Quote 0
                    • JayTundefined
                      JayT @JayT
                      last edited by

                      @jayt : i checked the cross tool settings. those were fine. but the error on G++ path no found persists.

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

                        @jayt if the Cross Settings are OK as in the screen image I posted, then it shouldn't be looking for gcc or g++, it should be looking for arm-none-eabi-gcc and arm-none-eabi-g++.

                        The Cross Settings are in the Project settings, not the workspace Preferences.

                        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

                        JayTundefined 2 Replies Last reply Reply Quote 1
                        • JayTundefined
                          JayT @dc42
                          last edited by JayT

                          @dc42 : What i did is, I clicked on each project e.g. CANlib, checked its properties and aligned as per your screen shot. likewise i did for all the Projects. I even deleted everything and re-imported and assigned properties. Also set the right build configurations again. Any other setting? Should i include PATH variable anywhere in settings? Or any other thing to include in PATH?

                          dc42undefined 1 Reply Last reply Reply Quote 0
                          • JayTundefined
                            JayT @dc42
                            last edited by

                            @dc42 cross_settings.jpg

                            Also how does it say finished building by invoking arm-non-eabi-g++ and yet throw error about GCC path and G++ path not found?
                            20210928_113641.jpg

                            JayTundefined 1 Reply Last reply Reply Quote 0
                            • JayTundefined
                              JayT @JayT
                              last edited by

                              @jayt : And when i run build-all , it gets stuck after 62%.it takes a lot of time. it wasn't taking so much time, untill i reimported the projects. 😞

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

                                @jayt the only thing you need to include in your windows path is the path to the Gnu Arm Eclipse folder, so that Eclipse can find make.exe. Looks like that bit is working.

                                My guess is that the "g++ not found" error is because you are trying to build DuetWiFiSocketServer or one of its dependent projects and you haven't set up the path to the Tensilica version of gcc. But you don't need to build that project.

                                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

                                JayTundefined 1 Reply Last reply Reply Quote 1
                                • JayTundefined
                                  JayT @dc42
                                  last edited by JayT

                                  @dc42 :
                                  After iterating whole process again, I now receive following type of error ( that says on element: makefile, in folder RepRapfirmware/Duet3_debug, line 110):
                                  makefile error.jpg

                                  Any idea what am I missing?

                                  Also I remove duetwifisocket from RepRapfirmware-> build list

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

                                    @jayt it looks like just the post build step failed. There is probably a more detailed message in the Console tab.

                                    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

                                    JayTundefined 2 Replies Last reply Reply Quote 1
                                    • JayTundefined
                                      JayT @dc42
                                      last edited by JayT

                                      @dc42 :
                                      CRC32appender not found - is the error. I changed the path as stated in the thread: "Can't build RRF 3.3"

                                      I have restarted "Build all". But do I have to run "Build ALL" always ? and I feel its slower than the last time i tried build.

                                      Shall confirm if the build completes by next reply.

                                      1 Reply Last reply Reply Quote 0
                                      • JayTundefined
                                        JayT @dc42
                                        last edited by

                                        @dc42 :

                                        I receive following error on CRC32appender not found when invoked by some scripts sh.
                                        my user Path variable includes this path:
                                        "C:\Users\User3D\eclipse-workspace\Firmware\RepRapFirmware\Tools\crc32appender\win-x86_64"

                                        What else shall i do to fix this ?

                                        crc32error.jpg

                                        JayTundefined 1 Reply Last reply Reply Quote 0
                                        • JayTundefined
                                          JayT @JayT
                                          last edited by JayT

                                          @jayt : This issue is now resolved.
                                          I used the suggestion from the thread: https://forum.duet3d.com/topic/12275/crc32appender-now-needed-for-rrf/16.
                                          Placed crc32appender in the GNU arm.... tools\bin folder.
                                          this worked!
                                          (Somehow, eclipse is not able to fetch it from $PATH- based settings.)

                                          @dc42 @jay_s_uk : thank you for the suggestions & help.
                                          can you tell me if any settings needed to build only reprap folder instead of building all projects again, if we change only one project file ?

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

                                            @jayt you can build just the RRF project if the other projects do not change.

                                            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

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