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
Locked Topic Issue after upgrade arduino ide (Read 21921 times)
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Issue after upgrade arduino ide
Dec 16th, 2014 at 7:42pm
 
Sorry for reposting, but i have made a mistake, i use VS2012.

Goodevening,
  today i have upgraded arduino sdk from 1.5.6r to 1.5.8.
Before this update i work with your visual studio plugin without problem.
After update i retrive "Error compiling" in any project i load.
In arduino ide the same project are compiled correctly.

What can i do?

Here the verbose output of a blink example

Compiling 'Blink' for 'Arduino Uno'
Build folder: file:///C:/Users/montecchil/AppData/Local/VMicro/Arduino/Builds/Blink/uno
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines: 
Architecture Tools: C:\Program Files\Arduino/hardware/tools/avr/bin/
GCC: 4.8.1
Sketchbook: file:///C:/Users/montecchil/Documents/Arduino
Core Include Paths
Include Path 'C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino'
Include Path 'C:\Program Files\Arduino\hardware\arduino\avr\variants\standard'
"C:\Program Files\Arduino/hardware/tools/avr/bin/avr-g++" -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\montecchil\AppData\Local\VMicro\Arduino\Builds\Blink\uno\Blink.cpp" -o "C:\Users\montecchil\AppData\Local\VMicro\Arduino\Builds\Blink\uno\Blink.cpp.o"
Error compiling
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue after upgrade arduino ide
Reply #1 - Dec 16th, 2014 at 7:52pm
 
Hi,

Please tell me the version number in tools>options>visual micro>version>version

Thanks
  
Back to top
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #2 - Dec 17th, 2014 at 4:11am
 
Now v1412.10, but the same issue was with 1409
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue after upgrade arduino ide
Reply #3 - Dec 17th, 2014 at 1:25pm
 
Thanks for the info,

Please open the sketch and click "Build>Clean Solution", then try compile.

If that fails please add the path of the Arduino.EXE FOLDER to the beginning of your windows PATH environment variable (control panel) then try compile.

Interested to hear which of these two things works.

Thanks
  
Back to top
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #4 - Dec 17th, 2014 at 1:30pm
 
Clean doesn't work, it was my first attempt; 
Also adding arduino.exe path in enviroment vatiable not work.

  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue after upgrade arduino ide
Reply #5 - Dec 17th, 2014 at 1:32pm
 
Okay then please switch on "tools>options>compiler>show build properties" and I think you already have verbose turned on?

In that case do the build>clean, then run a compile then email the full output to info [at] visualmicro.com with a link back to this post

Thanks very much
  
Back to top
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #6 - Dec 17th, 2014 at 1:36pm
 
Yes, verbose output is enabled and the output after clean build is in my fist post.
I send it to the email that you tell me yesterday evening..
  
Back to top
 
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #7 - Dec 17th, 2014 at 1:40pm
 
The issue is born with the newest toolchain.
In my configuration i have another toolchain for compiling tinyavr and it work correctly with visualmicro plugin
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue after upgrade arduino ide
Reply #8 - Dec 17th, 2014 at 1:51pm
 
Yes I agree but many of us have been using the new toolchain for quite some time.

The issue we found with the new toolchain is that it does not find the cygwin.dll in the arduino.exe folder. This is why Visual Micro was modified to automatically alter the windows path statement when it runs the toolchain processes. This has worked for everyone except you so I am trying to understand the difference.

You can prove this to be the problem by copying the cygwin dlls to the toolchain folder.

Please switch on "tools>options>compiler>show build properties", then clean and then compile and email again.

Also please confirm that you have the same issue with an empty sketch that contains on void setup(){} and void loop(){}

Thanks
  
Back to top
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #9 - Dec 17th, 2014 at 2:00pm
 
Compiler output send.
Yes, there is the same issue with a empty project
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue after upgrade arduino ide
Reply #10 - Dec 17th, 2014 at 2:03pm
 
Thanks that's clean.

We need to re-visit the path environment variable. Did you add the arduino location C:\Program Files\Arduino to the path then re-start the ide?

If so then please email your full "path" environment variable

Thanks
« Last Edit: Dec 17th, 2014 at 2:04pm by Tim@Visual Micro »  
Back to top
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #11 - Dec 17th, 2014 at 2:04pm
 
If i put cygwin.dll in C:\Program Files\Arduino\hardware\tools\avr\bin, does not work anyway
  
Back to top
 
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #12 - Dec 17th, 2014 at 2:05pm
 
yes, i add the path to the enviroment then restart visual studio, obviusly
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue after upgrade arduino ide
Reply #13 - Dec 17th, 2014 at 2:05pm
 
Thanks

Can you please check the date and time of the visual.micro.arduino.sketch.dll in the visual micro program files folder.

  
Back to top
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #14 - Dec 17th, 2014 at 2:11pm
 
I can't find this file in my path.
I found Visual.Micro.Processing.Sketch.dll last change 09/12/2014 23.23

Visual.Micro.Visual.Studio.Arduino.12.dll 09/12/2014 23.23
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue after upgrade arduino ide
Reply #15 - Dec 17th, 2014 at 2:12pm
 
Thanks for the email with the path. Interestingly users who have winavr installed needed to add the arduino folder to the start of the path statement. 

In the latest visual micro release the folder is added to the start of the path, in the previous release it was added to the end of the path and it is possible the working directory was also set to the arduino folder (I need to check that).

I see you have winavr installed and I am not sure why it hasn't worked for you. I need to do some testing but maybe you can also try adding the arduino folder to the end of your path and also try removing the two winavr path entries for a test

C:\WinAVR-20100110\bin;C:\WinAVR-20100110\utils\bin;

Thanks, sorry it is so painful I have no idea why they have made this change to the toolchain, I suspect it was an oversight.
  
Back to top
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #16 - Dec 17th, 2014 at 2:17pm
 
Nothing to do.
I removed WinAvr path (both), restart visual studio, but i can't compile
  
Back to top
 
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #17 - Dec 17th, 2014 at 2:21pm
 
I think the probles is that

"C:\Program Files\Arduino/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\montecchil\AppData\Local\VMicro\Arduino\Builds\Blink\uno\Blink.cpp" -o "C:\Users\montecchil\AppData\Local\VMicro\Arduino\Builds\Blink\uno\Blink.cpp.o"
error*:spawn: No such file or directory
  
Back to top
 
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #18 - Dec 17th, 2014 at 2:22pm
 
C:\Users\montecchil>"C:\Program Files\Arduino/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=
16000000L -DARDUINO=158 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "C:\Use
rs\montecchil\AppData\Local\VMicro\Arduino\Builds\Blink\uno\Blink.cpp" -o "C:\Users\montecchil\AppData\Local\VMicro\Arduino\Builds\Blink\uno\Blink.cpp.o"
cygwin warning:
  MS-DOS style path detected: C:\Users\montecchil\AppData\Local\VMicro\Arduino\Builds\Blink\uno\Blink.cpp
  Preferred POSIX equivalent is: .cpp
  CYGWIN environment variable option "nodosfilewarning" turns off this warning.
  Consult the user's guide for more details about POSIX paths:
    http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
avr-g++: error: spawn: No such file or directory

C:\Users\montecchil>
  
Back to top
 
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #19 - Dec 17th, 2014 at 2:46pm
 
Ok, now i am compiling right.
I removed dll in C:\Program Files\Arduino\hardware\tools\avr\bin that was in C:\Program Files\Arduino
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue after upgrade arduino ide
Reply #20 - Dec 17th, 2014 at 2:48pm
 
Thanks, yes exactly the error I expect if cygwin can not be located when the toolchain runs

Please put the command in a .bat file and try to understand why it does not work.

"C:\Program Files\Arduino/hardware/tools/avr/bin/avr-g++" -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=158 -DARDUINO_AVR_UNO -DARDUINO_ARCH_AVR -I"C:\Program Files\Arduino\hardware\arduino\avr\cores\arduino" -I"C:\Program Files\Arduino\hardware\arduino\avr\variants\standard" "C:\Users\montecchil\AppData\Local\VMicro\Arduino\Builds\Blink\uno\Blink.cpp" -o "C:\Users\montecchil\AppData\Local\VMicro\Arduino\Builds\Blink\uno\Blink.cpp.o"

The "CYGWIN environment variable option "nodosfilewarning" turns off this warning." also indicates a similar issue. This is just a wanring that can be ignored but Visual Micro is also setting the envronment variable to prevent this message from happening.

I will also perform some more tests over the next few days but 1.5.8 has been around for some weeks now and there were only two things to make this work for myself and some other testers:-

1) Allow the new g++ to find the cygwin.dll
2) Create a CYGWIN env variable with a value of nodosfilewarning

Thanks
  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue after upgrade arduino ide
Reply #21 - Dec 17th, 2014 at 2:51pm
 
ps: I do need to look at why this has broken for you when it was working with 1.5.7.

You can see here that this issue started in 1.5.7 and was resolved by vm in a similar way to the article

https://github.com/arduino/Arduino/issues/2216

  
Back to top
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #22 - Dec 17th, 2014 at 2:54pm
 
Yes, i found the same article with the gcc error.
Now I solved but i have not undestand how a dll was in toolchain path
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue after upgrade arduino ide
Reply #23 - Dec 17th, 2014 at 2:58pm
 
I asked you to copy the dll into the toolchain path earlier today as a test. 

This was because everything else failed.

It would help to now understand the final actions that have resolved this?

Thanks
  
Back to top
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #24 - Dec 17th, 2014 at 3:00pm
 
Yes, i now.
Buf after this, i have deleted from avr/bin all the dll that was in arduino.exe path and after this the issue is solved.
So, i suppose that the arduino ide upgrade has copy a dll in wrong path, but now i dont know wich of those is
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue after upgrade arduino ide
Reply #25 - Dec 17th, 2014 at 3:01pm
 
Okay I'm confused but pleased that it is working  Smiley
  
Back to top
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #26 - Dec 17th, 2014 at 3:04pm
 
C:\Program Files\Arduino; MUST be in first position of enviroment path (i think because i have winavr installed);


  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Issue after upgrade arduino ide
Reply #27 - Dec 17th, 2014 at 3:07pm
 
Yes that is true and it was one change between the previous Visual Micro version and the current version because some users with winavr installed had this problem with the previous version.

So I have to investigate why the environment variables that visual micro configured automatically did not work for you. It is simple c# to set the environment variables so I am intrigued to find out why this happened to you.

Thanks for all the help
  
Back to top
IP Logged
 
montecchi
Junior Member
**
Offline


Posts: 18
Joined: Oct 19th, 2012
Re: Issue after upgrade arduino ide
Reply #28 - Dec 17th, 2014 at 3:11pm
 
Thanks
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: [1] 
Send TopicPrint