EmbDev.net

Forum: ARM programming with GCC/GNU tools new user-error in make file


von Eko E. (noname1986)


Rate this post
useful
not useful
I am a new user in ARM microcontroller.
I interested using WinARM.
I have downloaded that package and followed step by step tutorial using
WinARM 20060606 in http://www.siwawi.arubi.uni-kl.de.
but when I want to compile a project about led blink there are 17 errors
in make file about "Command Syntax Error".



"Command Syntax Error" in this section
ifeq ($(RUN_MODE),RAM_RUN)
LDFLAGS +=-Tbuild/$(SUBMDL)-RAM.ld
else
LDFLAGS +=-Tbuild/$(SUBMDL)-ROM.ld
endif

"Colon Expected" in this section
.PRECIOUS : $(AOBJARM) $(AOBJ) $(COBJARM) $(COBJ) $(CPPOBJ) $(CPPOBJARM)

"Command Syntax Error"
@echo $(MSG_COMPILING_ARM) $<
$(CC) -c $(ALL_CFLAGS) $(CONLYFLAGS) $< -o $@
@echo $(MSG_COMPILINGCPP) $<
$(CPP) -c $(THUMB) $(ALL_CFLAGS) $(CPPFLAGS) $< -o $@
@echo $(MSG_COMPILINGCPP_ARM) $<
$(CPP) -c $(ALL_CFLAGS) $(CPPFLAGS) $< -o $@
@echo $(MSG_ASSEMBLING) $<

$(CC) -c $(THUMB) $(ALL_ASFLAGS) $< -o $@
-include $(shell mkdir .dep 2>/dev/null) $(wildcard .dep/*)



Why this can happen? Thank you.

von Martin T. (mthomas) (Moderator)


Rate this post
useful
not useful
Maybe you are not using a GNU make. Check if there is another program
called make.exe in the search path (i.e. one from Borland/Inprise) and
rename it. If this does not help, paste the complete output of make all.

von Jonathan D. (dumarjo)


Rate this post
useful
not useful
Martin Thomas wrote:
> Maybe you are not using a GNU make. Check if there is another program
> called make.exe in the search path (i.e. one from Borland/Inprise) and
> rename it. If this does not help, paste the complete output of make all.

Or it use the non cygwin make.exe with a Makefile that that doesn't have
the SHELL=CMD

Just a though

Jonathan

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.