Skip to content

2.1.0.4 mmcu argument missing #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
texastony opened this issue Dec 10, 2013 · 13 comments
Closed

2.1.0.4 mmcu argument missing #106

texastony opened this issue Dec 10, 2013 · 13 comments
Labels
status: Arduino IDE incompatibility Somethig that is not exactly the same as the arduino ide status: fixed in 2.4

Comments

@texastony
Copy link

I believe I successfully installed V2 of the plugin via the Eclipse "Install New Software" menu. When I attempted to build a test sketch, I received this error: "cc1plus: error: missing argument to "-mmcu="". A bit of googling later, I ran this line in the terminal:

 "/Applications/Arduino1_5.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -MMD -mmcu=atmega328p -DF_CPU= -DARDUINO=155 -DARDUINO_AVR_PRO -DARDUINO_ARCH_    -I"/Applications/Arduino1_5.app/Contents/Resources/Java/hardware/arduino/avr/cores/arduino" -I"/Applications/Arduino1_5.app/Contents/Resources/Java/hardware/arduino/avr/variants/standard" -MMD -MP -MF"EclipseTest.cpp.d" -MT"EclipseTest.cpp.d" -x c++ "EclipseTest.cpp"  -o  "EclipseTest.cpp.o" 

And was able to avoid the cc1plus error (although I have a slew of other problems). I am currently unaware of where the plugin determines the cc1plus arguments. It could be from the AVRdude.config file, which in my case is the file that comes with the Arduino 1.5 beta, so this comment would be better placed on their forum. But I compiled with no problems using the Arduino IDE.

Much obliged for your time, texastony.

Specs: Mac OS X, Juno SR2, Arduino1.5, Pro Mini 5V w/ Atmega 328p, AVRDude (all paths pointing to Arduino1.5's avr, though Crosspack is installed as well), and Arduino Eclipse extension 2.1.0.4

@jantje
Copy link
Member

jantje commented Dec 10, 2013

Hi
I have just tested a Arduino1.5.5 Pro Mini 5V w/ Atmega 328p compilation on my system and it works fine.
you say

I ran this line in the terminal:

What do you mean by that?

@texastony
Copy link
Author

Howdy,
First, I tried to build it (verify) in eclipse. I got the error, cc1plus: error: missing argument to "-mmcu=", so I copied the cc1plus command from the eclipse console into my Terminal (as in the default Mac terminal, Terminal.app), added -mmcu=atmega328p, which had previously only been -mmcu=, and successfully got cc1plus to run (though not verify, as in there were still errors, but one problem at a time) the code.

I am still going through the src files to see if I can find where the plug in determines the build commands for cc1plus, so I can modify it/ensure that it is pulling information from the right file.

@jantje
Copy link
Member

jantje commented Dec 10, 2013

Sorry this does not look like a problem in my plugin.
I assume you have a special setup and something is wrong in your platform.txt or board.txt
You should not find any mmcu references in the plugin.

@jantje
Copy link
Member

jantje commented Dec 13, 2013

any updates?

@texastony
Copy link
Author

Unfortunately, other projects have distracted me from this matter, but I will get to it on Wednesday. I suspected that your plugin called on something else to construct the arguments, I just wanted to confirm it. Once I figure out what argument is missing where, I'll post, in case others have the same problem.

@jantje
Copy link
Member

jantje commented Dec 13, 2013

waiting for feedback :-)

@JohnMod
Copy link

JohnMod commented Dec 14, 2013

I had the same error and I fixed it by going to Eclipse Project Properties, C/C++ Build, Environment and defining the variable A.BUILD.MCU (and setting it to atmega328p in my case).

@jantje
Copy link
Member

jantje commented Dec 14, 2013

Which board? Which platfor? Which hardware? which os?

@JohnMod
Copy link

JohnMod commented Dec 15, 2013

Yes, sorry for leaving out all that information.

It was a while ago and it was for the Duemillanova and LilyPad. I was running 32bit Eclipse Juno R2 on Windows 7. I can't remember if I was using Arduino 1.05 or 1.54. I have since reinstalled Eclipse using Arduino 1.52 and I don't have that problem now.

@jantje
Copy link
Member

jantje commented Dec 15, 2013

Arduino IDE 1.5.4 + lillipad + mcu? that makes sense. see http://eclipse.baeyens.it/installAdvice.shtml

@jantje
Copy link
Member

jantje commented Dec 15, 2013

before you blame me
Arduino IDE 1.5.2 beta boards.txt states

menu.cpu.lilypad.atmega328.build.mcu=atmega328p

Arduino IDE 1.5.4 beta boards.txt states

lilypad.menu.cpu.atmega328.build.mcu=atmega328p

This is one of the reasons everything is still called beta.

@JohnMod
Copy link

JohnMod commented Dec 15, 2013

No blame intended for you. In fact, you deserve only thanks and praise! Thanks to you, those using Eclipse can get stuff done in the Arduino world. I wouldn't want to develop without it.

@jantje
Copy link
Member

jantje commented Dec 17, 2013

I'm closing this as a user issue due to incompatible Arduino IDE version

@jantje jantje closed this as completed Dec 17, 2013
@jantje jantje added status: fixed in 2.4 status: Arduino IDE incompatibility Somethig that is not exactly the same as the arduino ide labels May 27, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: Arduino IDE incompatibility Somethig that is not exactly the same as the arduino ide status: fixed in 2.4
Projects
None yet
Development

No branches or pull requests

3 participants