Author Topic: Codeblocks generates empty "-mmcu=" in makefile  (Read 9923 times)

Offline drnicolas

  • Multiple posting newcomer
  • *
  • Posts: 11
Codeblocks generates empty "-mmcu=" in makefile
« on: February 20, 2011, 02:22:15 pm »
 :shock:
I am new to Codeblocks and this is my first try to convert an existing project with 7 source files to codeblocks

The first run with WinAVR gives me the following lines:
avr-gcc.exe -Wall -mmcu= -DF_CPU=16000000UL  -mmcu=at90can128 -Wall -g     -c ..\..\CAN-Adapter\CANUSB-Adapter\Firmware\CAN2USB_Konverter.c -o obj\Debug\CAN-Adapter\CANUSB-Adapter\Firmware\CAN2USB_Konverter.o
cc1.exe: error: missing argument to "-mmcu="

AT first, I thought I have forgotten to hook one of the target -µC, but after hooking the AT90CAN128, I always get this empty -mmcu .... - and I can't find the reason.
Computer Windows7 in a domain-environment
Codeblocks 10.05

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblocks generates empty "-mmcu=" in makefile
« Reply #1 on: February 20, 2011, 02:37:39 pm »
Check you options in Project -> Build options and in Settings -> Compiler & Debugger -> Compiler -> [your compiler]
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline scarphin

  • Lives here!
  • ****
  • Posts: 644
Re: Codeblocks generates empty "-mmcu=" in makefile
« Reply #2 on: April 10, 2011, 02:51:57 pm »
I can't find anything called cc1.exe in the latest winavr distribution, what is it used for? Are u sure u have the correct settings for compiler and compiler paths?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Codeblocks generates empty "-mmcu=" in makefile
« Reply #3 on: April 10, 2011, 03:00:28 pm »
Most of the time gcc calls it and it is part of gcc's distribution.
On my windows install it is in "c:\MinGW\libexec\gcc\mingw32\4.4.0\"
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]