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

Issue with Building PanelDue Firmware

Scheduled Pinned Locked Moved
PanelDue
2
10
255
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.
  • undefined
    R006
    last edited by R006 12 Feb 2024, 11:13 2 Dec 2024, 09:50

    Hello,
    I’m encountering an issue while trying to build the PanelDueFirmware. The error message is as follows:
    **14:53:49 **** Build of configuration Release-5.0i-7.0i for project PanelDueFirmware ****
    make -j8 all
    make: /bin/sh: No such file or directory
    make: *** [makefile:79: all] Error 127
    "make -j8 all" terminated with exit code 2. Build might be incomplete.

    14:53:49 Build Failed. 1 errors, 0 warnings. (took 301ms)**

    Could you please provide guidance on how to resolve this issue? @dc42 @Phaedrux

    undefined 1 Reply Last reply 3 Dec 2024, 10:49 Reply Quote 0
    • undefined
      dc42 administrators @R006
      last edited by 3 Dec 2024, 10:49

      @R006 I haven't built PanelDueFirmware for a while. Are you following the instructions at https://github.com/Duet3D/PanelDueFirmware/blob/master/Readme.md or using the Eclipse 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

      undefined 1 Reply Last reply 3 Dec 2024, 11:05 Reply Quote 0
      • undefined
        R006 @dc42
        last edited by 3 Dec 2024, 11:05

        @dc42
        I am using the PanelDue firmware from the master branch.
        However, despite following the instructions as per the duet docs I am still facing an error.

        undefined 1 Reply Last reply 3 Dec 2024, 11:10 Reply Quote 0
        • undefined
          dc42 administrators @R006
          last edited by 3 Dec 2024, 11:10

          @R006 the program bin/sh that it is looking for is a Linux command shell. The usual way to get it under Windows is to install a Linux-like build environment such as MSYS2 and then make sure that the folder that holds that build environment is n the PATH.

          I tried building PanelDueFirmware using the Eclipse project yesterday and I got it to build, however I think the latest Cmake file changes the version string according to the configuration. I can probably replicate that in Eclipse if you would prefer to build using Eclipse.

          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

          undefined 1 Reply Last reply 4 Dec 2024, 04:31 Reply Quote 0
          • undefined
            R006 @dc42
            last edited by 4 Dec 2024, 04:31

            @dc42 okay, where i need to add MSYS2 path.

            undefined 1 Reply Last reply 4 Dec 2024, 23:23 Reply Quote 0
            • undefined
              dc42 administrators @R006
              last edited by 4 Dec 2024, 23:23

              @R006 I've just fixed the PanelDueFirmware project so that it can build under Eclipse/Windows again.

              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

              undefined 1 Reply Last reply 5 Dec 2024, 05:21 Reply Quote 0
              • undefined
                R006 @dc42
                last edited by R006 12 Jun 2024, 08:53 5 Dec 2024, 05:21

                @dc42, I’ve reinstalled everything and tried to build the firmware, but I’m encountering the following error:
                14:18:51 **** Build of configuration Duet3_MB6HC for project RepRapFirmware ****
                make -j8 all
                /bin/sh: -c: line 1: syntax error near unexpected token (' /bin/sh: -c: line 1: /c/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/make --no-print-directory main-build && /c/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/make --no-print-directory post-build'
                make: *** [makefile:105: all] Error 2
                "make -j8 all" terminated with exit code 2. Build might be incomplete.

                14:18:51 Build Failed. 1 errors, 0 warnings. (took 566ms)

                undefined 1 Reply Last reply 7 Dec 2024, 22:04 Reply Quote 0
                • undefined
                  dc42 administrators @R006
                  last edited by 7 Dec 2024, 22:04

                  @R006 you said you were building PanelDueFirmware. From that error message you appear to be building RepRapFirmware instead, but not using the standard tools. The standard Eclipse project for building RepRapFirmware does not reference /bin/sh.

                  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

                  undefined 1 Reply Last reply 11 Dec 2024, 05:09 Reply Quote 0
                  • undefined
                    R006 @dc42
                    last edited by 11 Dec 2024, 05:09

                    @dc42 10:30:33 I have tried building both firmware and both are giving the same error.

                    **** Build of configuration Release-5.0i-7.0i for project PanelDueFirmware ****
                    make -j8 all
                    /bin/sh: -c: line 1: syntax error near unexpected token (' /bin/sh: -c: line 1: /c/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/make --no-print-directory main-build && /c/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/make --no-print-directory post-build'
                    make: *** [makefile:82: all] Error 2
                    "make -j8 all" terminated with exit code 2. Build might be incomplete.

                    10:30:34 Build Failed. 1 errors, 0 warnings. (took 901ms)

                    10:31:11 **** Build of configuration Duet3_MB6HC for project RepRapFirmware ****
                    make -j8 all
                    /bin/sh: -c: line 1: syntax error near unexpected token (' /bin/sh: -c: line 1: /c/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/make --no-print-directory main-build && /c/Program Files (x86)/GNU Arm Embedded Toolchain/10 2021.10/bin/make --no-print-directory post-build'
                    make: *** [makefile:105: all] Error 2
                    "make -j8 all" terminated with exit code 2. Build might be incomplete.

                    10:31:12 Build Failed. 1 errors, 0 warnings. (took 701ms)

                    How to resolve this problem?

                    undefined 1 Reply Last reply 11 Dec 2024, 06:37 Reply Quote 0
                    • undefined
                      dc42 administrators @R006
                      last edited by 11 Dec 2024, 06:37

                      @R006 that command refers to paths that have spaces in them (between Program and Files) so in each case the whole path/filename needs to have quotation marks around it. I'm not a user of CMake so I don't know how to make that happen, unless that whole line appears in CMakeLists.txt and you can just edit it. Developers who build under Linux typically avoid spaces in file and folder names to avoid this sort of problem.

                      I built PanelDueFirmware successfully under Eclipse/Windows a few days ago. I have the same space in the file paths as you do and Eclipse puts the quotation marks in automatically.

                      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

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