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 Compilation issue with Moteino Board (Read 1426 times)
BaRtEr
Newbies
*
Offline


Posts: 3
Joined: Jun 3rd, 2020
Compilation issue with Moteino Board
Jun 5th, 2020 at 6:36pm
Print Post  
Hi,

I have compilation issue with Moteino Boards from LowPowerLab.

Using ARduino IDE and Moteino board definition, it works well.
If using VSNET 2019 Community Edition + VS Micro Extension, i got compilation issue with the same Moteino Board definition:

cc1.exe*: error: -fno-fat-lto-objects are supported only with linker plugin
Error compiling core
Build failed for project 'GatewayController'

In attachment. I added the build output from VSNET 2019.

The board manager for Moteino boards is :
https://lowpowerlab.github.io/MoteinoCore/package_LowPowerLab_index.json

Would be very appreciated if you could make this work for me Smiley.

FranK.
  

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


Posts: 12191
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Compilation issue with Moteino Board
Reply #1 - Jun 5th, 2020 at 9:04pm
Print Post  
Thanks for the output but you missed enabaling the verbose output. 

From what is in the output file it is possible this issue is resolved in the last release here. (The gallery updates are less fequent, point releases are often here)

https://www.visualmicro.com/forums/YaBB.pl?board=VS_ARDUINO_EXT_RELEASES
  
Back to top
IP Logged
 
BaRtEr
Newbies
*
Offline


Posts: 3
Joined: Jun 3rd, 2020
Re: Compilation issue with Moteino Board
Reply #2 - Jun 8th, 2020 at 12:59pm
Print Post  
Hi,

I got the latest version from :

https://www.visualmicro.com/forums/YaBB.pl?num=1591371576

which is at the moment : Download Visual Micro 20.05.18.7 for Vs2017/2019

I still have the same issue : 

cc1.exe*: error: -fno-fat-lto-objects are supported only with linker plugin
Error compiling core
Build failed for project 'CompilationIssue'

In attachment i included the build output with Verbose ON.

For test purpose, i created a NEW Arduino project with empty setup / loop functions.  The build output corresponds to that project compilation.

Hope it will help to diagnose further.

Thanks.

FranK.
  

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


Posts: 2710
Joined: Feb 13th, 2019
Re: Compilation issue with Moteino Board
Reply #3 - Jun 8th, 2020 at 1:32pm
Print Post  
Thanks for the additional information, and reviewing and replicating this it appears to be using a different version of the toolchain for compilation, when compared to the Arduino IDE.  Visual Micro is using the toolchain specified in the package.json for this board.

While we investigate this further, the below entry can be added to a Local board.txt file in the project (right click project > add > local board.txt) to work around the issue. This is forcing it to use the same toolchain as seen in the Arduino IDE output when building with verbose.

Code
Select All
duino\tools\avr-gcc\7.3.0-atmel3.6.1-arduino5 

  
Back to top
IP Logged
 
BaRtEr
Newbies
*
Offline


Posts: 3
Joined: Jun 3rd, 2020
Re: Compilation issue with Moteino Board
Reply #4 - Jun 8th, 2020 at 3:31pm
Print Post  
Hi,

I tried your workaround and it fails because the folder doesn't exist in my setup.

From Arduino IDE compile verbose, i changed the folder you gave me for :

Code
Select All
runtime.tools.avr-gcc.path=C:\Program Files (x86)\Arduino\hardware\tools\avr 



It now compiles in VSNET 2019 with Visual Micro extension.

Thanks you very much Smiley.

FranK.
« Last Edit: Jun 9th, 2020 at 2:47pm by BaRtEr »  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint