Issue with Building PanelDue Firmware
-
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
-
@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?
-
@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. -
@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.
-
@dc42 okay, where i need to add MSYS2 path.
-
@R006 I've just fixed the PanelDueFirmware project so that it can build under Eclipse/Windows again.
-
@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)
-
@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.
-
@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?
-
@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.