EmbDev.net

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


Author: Eko Eko (noname1986)
Posted on:

Rate this post
0 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.

Author: Martin Thomas (mthomas) (Moderator)
Posted on:

Rate this post
0 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.

Author: Jonathan Dumaresq (dumarjo)
Posted on:

Rate this post
0 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

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.