Using make under Eclipse varies from install to install [message #1783029] |
Tue, 06 March 2018 17:46  |
Eclipse User |
|
|
|
Several new engineers have installed Eclipse with GNU Tool ARM Embedded tool chain and GNU ARM Eclipse build tools. We also use our own custom Makefile. We noticed some people's installations would fail the make process even though they followed the same set of instructions.
Long story short - we tracked this down to the environment calling a bash shell instead of the Windows cmd shell. This is repeatable on all machines. I can build on the command line on machines that cannot build under Eclipse. Then I can open a git-bash shell and the same 'make all' command will fail. Likewise, on a machine that is able to build under Eclipse, I can repeat the same steps above at the command line and get the build to fail or succeed depending on the shell.
Ok, fine, we now have a workaround - create a project variable in Eclipse with the path to git-cmd.exe and it works just fine. But I would like to understand why this is needed on some machines but not others. In fact, the only reference to a shell that I can find is in the Preferences->Terminal->Local Terminal setting. But on my machine, this actual points to the _wrong_ shell (Git\bin\sh.exe), yet my build works just fine. I can't find any other place where Eclipse makes reference to the shell in which make should be executed. Any ideas?
Thanks,
Jamie
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.29557 seconds