make: *** [main.o] Error 1

OP (Company: Hochschule Karlsruhe) #2508428
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.
Guest
If CS G++/Codebench is also installed please try
1
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).

Reply

A question of your own? This thread is over 14 years old. Ask it in a thread of its own – more people read along there, and it gets answered more often and sooner.

Start a new thread

A fix, an addition or feedback on this thread? Then reply here.

Formatting
  • [c]C-Code[/c]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]
  • [[Title]] – link to an article
  • Link to another post: right-click its post ID (#8078628), copy the address, paste it into the text

More about formatting

Post long source code as an attachment, not in the text.

Already registered? Log in

Not shown to anyone. We send you a link; your post appears once you confirm it there.

By submitting you create a free account and accept the terms of use.