Forum: ARM programming with GCC/GNU tools make: *** [main.o] Error 1

Author: Vivek Khedekar (Company: Hochschule Karlsruhe) (khedekarvivek)
Posted on:

Rate this post
0 useful
not useful
Hello All,

I have installed the Olimex OCD Development suite and I am getting the 
following error. I have installed all the GNU ARM Toolchains.

Yagarto, WinARM, devkitARM and Codesourcery G++

I am still getting this error

**** Build of configuration Debug for project TEST_Prog01 ****

make all
Building file: ../main.c
Invoking: ARM Yagarto Windows GCC C Compiler
arm-none-eabi-gcc -O0 -Wall -Wa,-adhlns="main.o.lst" -c 
-fmessage-length=0 -MMD -MP -MF"main.d" -MT"main.d" -mcpu=arm7tdmi-s -g3 
-gdwarf-2 -o"main.o" "../main.c"
make: *** [main.o] Error 1

Kindly advise, what to do. Any help would be appreciated.

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 useful
not useful
If CS G++/Codebench is also installed please try
cs-make all 
Background: maybe the make utility in the systems search path is too old 
and incompatible with the current operating system. The CS-Package for 
MS-Win hosts comes with a renamed GNU make (cs-make).
If this still does not work please post the output of cs-make --version 
, make --version and arm-none-eabi-gcc --version . Also try to remove 
the option -fmessage-length=0 from the makefile and also try to call 
make with the debug option (cs-make -d all).


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.