Martin Thomas wrote:
> As written on the page the port is preliminary and there are still some
> small incompatibilites with the makefiles and the shell (sh.exe) as
> included in WinARM 6/06
It's not sh.exe, it's make.exe that appears to be the problem. The make
distributed with WinARM 6/06 is version 3.80. Try substituting make
3.81 that came with OpenOCD re100.
- Joe
The process:
Building startup.o ...
/usr/bin/sh: line 2: syntax error: unexpected end of file
make: *** [startup.o] Error 258
Very strange. What is calling sh? Without modifying your makefiles,
when I take sh.exe out of the path, it compiles without error.
After some poking around, I noticed that using "SHELL = cmd" does not
work as described in the make manual. If you check it with $(warning
shell= $(SHELL)), make outputs "shell= c:/winarm/utils/bin/sh.exe".
When the winarm sh.exe is removed or renamed, make sets SHELL to simply
"sh.exe". Actually, under MS-DOS, SHELL shouldn't even have to be
specified, because make is supposed to use the MS-DOS environment
variable "COMSPEC". But I tried this and it does not.
Specifying SHELL = cmd.exe sets shell to "C:/WINDOWS/system32/cmd.exe".
However, that does not work either. It appears that make is calling
cmd.exe with the -c switch, when it should be /c. So this seems more
like a make.exe issue than a sh.exe issue.
[At this point I looked at the version of make and tried a newer
version, et voila! ]