Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic error*:unrecognized command line option '-assembler-with-cpp (Read 8171 times)
Tomek Gorski
Newbies
*
Offline


Posts: 7
Joined: Aug 1st, 2013
error*:unrecognized command line option '-assembler-with-cpp
Aug 30th, 2014 at 4:49pm
Print Post  
Thanks for quick response.
so now I got this message

C:\Program Files (x86)\Arduino\hardware\tools\avr\bin\avr-gcc -c -g -assembler-with-cpp -mmcu=attiny85 -DF_CPU=16000000L -DUSB_VID=null -DUSB_PID=null -DARDUINO=157 -I"C:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files (x86)\Arduino\hardware\attiny\avr\variants\tiny8" -I"C:\Users\XXX\Documents\Arduino\libraries\HIDSerial" -I"C:\Program Files (x86)\Arduino\libraries" -I"C:\Program Files (x86)\Arduino\hardware\attiny\avr\libraries" -I"C:\Program Files (x86)\Visual Micro\Visual Micro for Arduino\Micro Platforms\default\debuggers" -I"C:\Users\XXX\Documents\Arduino\libraries" "C:\Users\XXX\Documents\Arduino\libraries\HIDSerial\usbdrvasm.S" -o sm.S.o"   -DVISUALMICRO_COMPILER_VER=1
error*:unrecognized command line option '-assembler-with-cpp'

but in every config/make file all i can find is "-x assembler-with-cpp" which is correct. So where '-assembler-with-cpp' is coming from?

« Last Edit: Aug 31st, 2014 at 8:40pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: error*:unrecognized command line option '-assembler-with-cpp
Reply #1 - Aug 30th, 2014 at 11:28pm
Print Post  
Hi Tom,

It's best to open new threads for different issues if that's okay. This allows you to set the correct subject and users to read about each topic clearly.

There are two ways that .s files would normally be compiled. maybe 1.5.7 has some changes in this area but this is what we currently do.

If a "recipe.s.o.pattern" exists in either the boards.txt or platform.txt then we assume an arduino 1.5.x compile which means the entire compiler string can be deduced from these files.

If a "recipe.s.o.pattern" does not exist then a hard coded arduino 1.0.x compile happens which does include -assembler-with-cpp

I will move this post to a new thread at some point so don't be confused by that Smiley

Does this compile correctly in arduino 1.5.7?

Thanks
« Last Edit: Aug 31st, 2014 at 8:40pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tomek Gorski
Newbies
*
Offline


Posts: 7
Joined: Aug 1st, 2013
Re: error*:unrecognized command line option '-assembler-with-cpp
Reply #2 - Aug 31st, 2014 at 2:01am
Print Post  
well I found recipe.S.o.pattern in C:\Program Files (x86)\Arduino\hardware\arduino\avr\platform.txt , but It doesn't look like this line is used in compilation. When I add some modifications to it, they do not show up in build output.
ps. should we proceed with conversation here or should I establish a new thread or you move those posts or ...?
« Last Edit: Aug 31st, 2014 at 8:41pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: error*:unrecognized command line option '-assembler-with-cpp
Reply #3 - Aug 31st, 2014 at 8:46pm
Print Post  
Thanks I have split the post.

I expect the platforms.txt is not being used by the attiny custom core you will have installed to allow use of the board. 

This means the attiny core is a pre-1.5 core which is supported.

It is possible that the tiny board you are using should be programmed with the arduino 1.0.x Ide and that the arduino ide 1.5.x beta includes changes that do not yet support your board.

Is the arduino ide able to compile the same program?
  
Back to top
IP Logged
 
Tomek Gorski
Newbies
*
Offline


Posts: 7
Joined: Aug 1st, 2013
Re: error*:unrecognized command line option '-assembler-with-cpp
Reply #4 - Sep 1st, 2014 at 9:14pm
Print Post  
Yes. Arduino IDE 1.5.7 compiles and uploads programs.
I've got it all working with both VM plugin and arduino ide.

You ware right about recipe.s.o.pattern although VM seems to be case-sensitive while arduino ide is not. So the actual phrase that can be found in original platform.txt is recipe.S.o.pattern. Changing the "S" to lower case fixed everything.
Thanks.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: error*:unrecognized command line option '-assembler-with-cpp
Reply #5 - Sep 2nd, 2014 at 11:40am
Print Post  
Fantastic thanks I will stop the case sensitivity in the next release.
  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint