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
Hot Topic (More than 8 Replies) Compile error (Read 16733 times)
anatom74
Junior Member
**
Offline


Posts: 31
Joined: Aug 8th, 2015
Compile error
Aug 8th, 2015 at 11:42am
Print Post  
I've tryed by reinstall Studio, VisualMicro, read forum for possible solution but no luck. (Atmel Studio 6.2 sp2, latest VisualMicro, Arduino 1.6.5)


At compile, it says:

Compiling 'Debounce' for 'Arduino Nano w/ ATmega328'
Build folder: a328
Summary: Header=1 Prototypes=3 Imports=0
Additional Defines: 
Architecture Tools: {runtime.tools.avr-gcc.path}/bin/
Sketchbook: file:///C:/Users/Tomaž/Documents/Arduino
Core Include Paths
Include Path 'c:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino'
Include Path 'c:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs'
"{runtime.tools.avr-gcc.path}/bin/avr-g++" -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=165 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"c:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"c:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" bounce.cpp" -o bounce.cpp.o"
The system cannot find the file specified
     Process: "{runtime.tools.avr-gcc.path}\bin\avr-g++" -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=165 -DARDUINO_AVR_NANO -DARDUINO_ARCH_AVR -I"c:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino" -I"c:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs" bounce.cpp" -o bounce.cpp.o"
Error compiling


ANy Idea what could be wrong?
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #1 - Aug 8th, 2015 at 1:24pm
Print Post  
Hi,

What is the name of the app in visual micro you have used to configure the arduino ide location?

Arduino 1.6
or
Arduino 1.5

?

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


Posts: 31
Joined: Aug 8th, 2015
Re: Compile error
Reply #2 - Aug 8th, 2015 at 1:39pm
Print Post  
Arduino 1.6
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #3 - Aug 8th, 2015 at 1:48pm
Print Post  
1)
Can you also confirm that you can see Tools>Visual Micro (Arduino 1.6)?

2)
All I can think is that the installer isn't overwriting some visual micro files.

The error shows the new format arduino 1.6.2+ build commands which Visual Micro has supported since may/june.

Can you please open control panel and uninstall visual micro from add or remove programs

Then ensure that program files (x86)\visual micro does not exist

Then run the visual micro installer and install. Your settings will be preserved to should be painless.

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


Posts: 31
Joined: Aug 8th, 2015
Re: Compile error
Reply #4 - Aug 8th, 2015 at 3:15pm
Print Post  
1) yes

2) uninstalled /deleted / reinstalled

still the same compiler error...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #5 - Aug 8th, 2015 at 3:20pm
Print Post  
Thanks

1)
What is in this file?

'c:\Program Files (x86)\Arduino\libs\versions.txt

2)
What if you switch to the Uno. Do you get same error?

3)
What is contained in tools>options>visual micro>version
Is there only one Visual Micro>General entry in the Tools>Options List?
  
Back to top
IP Logged
 
anatom74
Junior Member
**
Offline


Posts: 31
Joined: Aug 8th, 2015
Re: Compile error
Reply #6 - Aug 8th, 2015 at 4:28pm
Print Post  
1) 1.6.5-r2
2) yes
3) version: 1.1507.05
    yes, only one entry


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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #7 - Aug 8th, 2015 at 4:38pm
Print Post  
It's strange, like an older version of visual micro kicking in. You confirmed there were no more Visual Micro for Arduino entries in add or remove programs so it can't be.

+ There has been a problem without server cache which seemed to be giving out older versions so we did a rebuild yesterday and also changed the name of the download file. So please re-download visual micro from the visualmicro.com downloads page.

If still a problem then

Can you please use the zip from the arduino downloads site to setup arduino in an alternative location to the default. Then point visual micro that that clean install.

I need to do some testing but I can only assume that you upgraded from an older version of arduino which has left behind some config which is confusing visual micro. Does this ring true?

thanks

« Last Edit: Aug 8th, 2015 at 4:43pm by Tim@Visual Micro »  
Back to top
IP Logged
 
anatom74
Junior Member
**
Offline


Posts: 31
Joined: Aug 8th, 2015
Re: Compile error
Reply #8 - Aug 8th, 2015 at 7:05pm
Print Post  
Tryed everything you suggested but no difference... really strange..
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #9 - Aug 8th, 2015 at 8:19pm
Print Post  
Sorry it's such a pain.

1)
There is a new visual micro Sp1 beta on the downloads page, with a relaxing of an arduino version check. I don't think it will help but a version refresh might.

2)
Please confirm there is only one path to visual micro in "tools>options>environment>add-in security>locations"

3)
Tell me if you "do or do not" have a sketch book folder entered in the visual micro location dialog. If you do what is it set to?

4)
Please provide a screen shot with sketch open and arduino 1.6

5)
Switch on "tools>options>visual micro>compiler>show build properties". Then click "Build>Clean Solution", then build and email the output to info[at]visualmicro.com

6)
Confirm if you see a "Board Manager" tab in the Micro Explorer?

Thanks!
  
Back to top
IP Logged
 
anatom74
Junior Member
**
Offline


Posts: 31
Joined: Aug 8th, 2015
Re: Compile error
Reply #10 - Aug 9th, 2015 at 7:58am
Print Post  
1) no change
2) confirmed
3) no sketchbook path
4)in attachment
5)sent
  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #11 - Aug 9th, 2015 at 3:11pm
Print Post  
Thanks

According to the output your arduino install either has an invalid version number or is Arduino 1.6.0

Please download this https://www.arduino.cc/download_handler.php

Unpack the zip to d:\arduino\arduinoide or something similar. Then set visual micro to use that ide instead.

Thanks

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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #12 - Aug 9th, 2015 at 3:41pm
Print Post  
Just to confirm?? Did you send me two emails, one with build folder and one with build output (dropbox)?

You used two different email addresses?

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


Posts: 31
Joined: Aug 8th, 2015
Re: Compile error
Reply #13 - Aug 9th, 2015 at 4:12pm
Print Post  
Hmm strange - I sent only oner mail. Can you please forward me those two mails you got?

Rearding Arduino build, I was using 1.6.5 all the time (also did reinstalls of Arduino several times).
I downloaded zp as you suggested, but result is the same.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #14 - Aug 9th, 2015 at 4:27pm
Print Post  
It was just a question about the email. Hopefully the email you sent was to your drop box?

Please email the build output using the downloaded unzipped version and include a link to this post with your email

Thanks very much
« Last Edit: Aug 9th, 2015 at 4:27pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #15 - Aug 9th, 2015 at 6:14pm
Print Post  
Ok you can ignore my earlier post. 

I have the output you have sent and now I know you are the user who sends the temp build folder with no builds files just the .cpp.This is not what I needed sorry for misleading.

Some build out is shown in your screen shot. It is the "Output" window that appears in Visual Studio after clicking build. You need to highlight all the text in the output and copy/paste into an email.

Thanks

Reminder of what is required:

Switch on "tools>options>visual micro>compiler>show build properties". Then click "Build>Clean Solution", then click build

Then email the output to info[at]visualmicro.com
« Last Edit: Aug 9th, 2015 at 6:27pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #16 - Aug 9th, 2015 at 9:15pm
Print Post  
Thanks for the trace and sorry for the hassle

I can see in the trace that the compiler paths are not being prepared. This is a new thing for arduino 1.6.2+ and is related to the boards manager download system.

There is a new beta on our downloads page that makes the calculated to prepare compiler paths more robust. Previously if there was a problem initializing the arduino downloads temp folder then these paths were not prepared.

At a guess this suggests some sort of access or permissions problem related to your "users\[yourname]\appdata\roaming\arduino15" folder but I can't be sure because I would also expect it to affect the arduino ide in some way.

Please try the new version. If you have a problem there is also some additional trace information available via the new beta. 

The trace is enabled via "Tools>Options>Visual Micro\User Interface\Trace"=True. After ide restart the trace appears in an output window called "Micro System Trace"

Thanks again, hope the beta sorts the issue
  
Back to top
IP Logged
 
anatom74
Junior Member
**
Offline


Posts: 31
Joined: Aug 8th, 2015
Re: Compile error
Reply #17 - Aug 10th, 2015 at 5:20am
Print Post  
Still no luck  Sad

I've sent you trace output. 
  
Back to top
 
IP Logged
 
anatom74
Junior Member
**
Offline


Posts: 31
Joined: Aug 8th, 2015
Re: Compile error
Reply #18 - Aug 10th, 2015 at 7:28am
Print Post  
I think it's Arduino related problem. When I was investigating a little bit, I found that arduino creates a new user folder with different name with preferences and other stuff:
current user folder:
C:\Users\Tomaž\
arduino created folder:
C:\Users\Toma§





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


Posts: 12186
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compile error
Reply #19 - Aug 10th, 2015 at 11:27am
Print Post  
Yes that would explain some things. I will look at how we can avoid using the appdata folder.

I think in future you should keep your user name simple when setting up windows Smiley No spaces, no non-ascii etc.

It's not Arduino that is confused but windows. The base path is created by windows.

« Last Edit: Aug 10th, 2015 at 11:42am by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint