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) Compiler Error in MSVC 15.6.5 (Read 5064 times)
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Compiler Error in MSVC 15.6.5
Apr 9th, 2018 at 6:27pm
Print Post  
Hallo,
I'm not sure about the problem but I updated MSVS to V 15.6.5.
Now I get following error when compiling project. It was ok before. 
Arduino IDE is compiling working w/o problems.
Any help?

xtensa-lx106-elf-gcc*: error: ls\sdk\ld\eagle.app.v6.common.ld.h: No such file or directory
 
xtensa-lx106-elf-gcc*: fatal error: no input files
   compilation terminated
  
Back to top
 
IP Logged
 
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Re: Compiler Error in MSVC 15.6.5
Reply #1 - Apr 10th, 2018 at 3:18pm
Print Post  
Thats interesting:
I have 2 different versions of esp8266 toolchain installed:
1. official release 2.4.1 under
C:\Users\drs\AppData\Local\arduino15\packages\esp8266\hardware\esp8266\2.4.1\
2. daily git under 
...\ArduinoIDE\projects\hardware\esp8266com\esp8266

It seems that Visual Studio & vMicro mixing both tool chain??
When I remove the second one and make "Rescan Toolchain and Libraries" it compiles fine.
If I add the second one again and make "Rescan Toolchain and Libraries" I get above error (1st post).

It seems to be a bug in combination of new Visual Studio 15.6.5 and vMicro.
Or its something new in esp8266 toolchain because I also updated GIT recently.
What you think?


How can I revert back to Visual Studio 15.6.4 to verify the problem?

Thanks
« Last Edit: Apr 10th, 2018 at 3:20pm by drs »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler Error in MSVC 15.6.5
Reply #2 - Apr 10th, 2018 at 5:19pm
Print Post  
Thanks for the info.

I don't think you report is related to a visual studio version so ignore the 15.x discussion.

This is probably related to the fact that both tool chains install a board with the same ID.

Visual Micro needs a unique board id.
  
Back to top
IP Logged
 
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Re: Compiler Error in MSVC 15.6.5
Reply #3 - Apr 10th, 2018 at 6:15pm
Print Post  
Thanks for the help.
Further research found the problem:
The "platform.txt" of toolchain 2.4.1 is different to "platform.txt" of 2.5.0-dev ... which is git version.
Developers changed the way the files are compiled, especially "## Build the app.ld linker file" is new in platform.txt of 2.5.0-dev.
I did not recognize any problems before because platform.txt was same until I did git update of version in directory 2.

So, vMicro seems to read platform.txt from directory 2 (see above) but using toolchain from directory 1. Thats definitely wrong and causes the problems!

Can you fix to allow two versions of toolchain & libs ... and read correct platform.txt. ArduinoIDE is doing so. I can seamlessly switch between the toolchains be selecting the same board under "ESP8266 Modules v2.4.1" or under "ESP8266 Modules /esp8266com/esp8266" shown in board selection menu. BTW. vMicro has same structure and also shows me both board directories.

Thanks

Edit:
I can compile with v2.4.1 if I rename/remove platform.txt of V2.5.0-dev. BUT, its not working vice versa Sad
« Last Edit: Apr 10th, 2018 at 6:22pm by drs »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler Error in MSVC 15.6.5
Reply #4 - Apr 10th, 2018 at 6:22pm
Print Post  
There are some fixes planned in this area in the next version however I am sorry to say that duplicate board ids won't be supported for a while.


  
Back to top
IP Logged
 
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Re: Compiler Error in MSVC 15.6.5
Reply #5 - Apr 10th, 2018 at 6:41pm
Print Post  
Thanks,
hope for fix soon...

I tested if board renaming maybe a solution:

I renamed the "nodemcuv2.name=NodeMCU 1.0 (ESP-12E Module)" into "nodemcuv2.name=NodeMCU 1.0 (ESP-12E Module) 2.5.0-dev" in boards.txt of v2.5.0-dev and it successfully compiling with correct tool chain of v2.5.0-dev. Smiley
However, if I select the other board "NodeMCU 1.0 (ESP-12E Module)" of the other toolchain 2.4.1 it still used wrong platform.txt Sad

Can you probably use the hook with renaming and automate this?

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler Error in MSVC 15.6.5
Reply #6 - Apr 10th, 2018 at 8:05pm
Print Post  
Thanks

I will look at the package index json files to see what tool version is stated.

Can you please provide the .json package index urls to make sure we are on the same page.
  
Back to top
IP Logged
 
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Re: Compiler Error in MSVC 15.6.5
Reply #7 - Apr 16th, 2018 at 8:22am
Print Post  
Oops, sorry for late reply....I did not see your answer...
I'm not sure what you require but I have attached what I have found...
Rgds
« Last Edit: Apr 16th, 2018 at 8:25am by drs »  

Please Register or Login to the Forum to see File Attachments
Back to top
 
IP Logged
 
drs
Junior Member
**
Offline


Posts: 26
Joined: Mar 20th, 2018
Re: Compiler Error in MSVC 15.6.5
Reply #8 - Aug 12th, 2018 at 3:39pm
Print Post  
>> There are some fixes planned in this area in the next version however I am sorry to say that duplicate board ids won't be supported for a while.

Is there any progress on this? I still have problems bcs I'm using multiple versions of same toolchain. e.g. esp8266 v2.4.2 and esp8266 v2.5.0-dev

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


Posts: 12187
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compiler Error in MSVC 15.6.5
Reply #9 - Aug 13th, 2018 at 5:19pm
Print Post  
Not yet

You might be able to sort this yourself by changing the id of the boards you are using in boards.txt of one of the packages.

You will see the boards.txt and platform.txt in the root of each package. Use the visual micro explorer > source link when hovering over a package in board manager so see the folder.

In the boards.txt the id of the board is at the start of each line and should not be referenced in any code so can safely change or duplicate.

For example you will see a group of lines in the boards.txt that describe the Generic Esp8266 module. It has a .name and a lot of other properties. All properties start with "generic.". So "generic" is the id of the generic 8266.

You can copy/clone the generic. board or you can replace the id of the current one.

Original ID

Code
Select All
generic.name=Generic ESP8266 Module 



New ID + name change adding DEV to the name

Code
Select All
dev_generic.name=DEV Generic ESP8266 Module 




It's a 2min job with search and replace "generic." for "dev_generic.". Does this make sense?

One of my esp boards.txt is here
C:\Users\[your 

You can add new boards.txt with slightly different name and location that gets appended to the list but the above is easier for now.
« Last Edit: Aug 13th, 2018 at 5:21pm by Tim@Visual Micro »  
Back to top
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint