LowPowerLab Forum

Hardware support => Moteino => Topic started by: [email protected] on November 28, 2022, 09:42:29 PM

Title: Linker Plugin Error [solved]
Post by: [email protected] on November 28, 2022, 09:42:29 PM
I have a montenio with an RFM69HCW transciever. When I try to compile the example code for testing the send/receive capabilities it gives an error:
https://pastebin.com/Sx37sJUh
short: "cc1.exe: error: -fno-fat-lto-objects are supported only with linker plugin."

Here is my code:
https://pastebin.com/mDji7bvc
Title: Re: Linker Plugin Error
Post by: Felix on November 29, 2022, 08:56:27 AM
Can you compile the examples in the RFM69 library?
Title: Re: Linker Plugin Error
Post by: [email protected] on November 29, 2022, 06:51:53 PM
The code I used was the gateway example in the library
Title: Re: Linker Plugin Error
Post by: Uncle Buzz on November 30, 2022, 03:20:54 AM
Hi, I did a fresh reinstall on my computer and had the same error after reinstalling all the development stuff (Arduino, Visualmicro,... etc)

Since it was a fresh reinstall, I used the most recent board definition (1.6.1) and I encountered the same error with sketches that were successfully compiled before reinstall.

I remarked that the name of the boards has changed (MoteinoMega become MoteinoMega-USB). So I tried some oldest boards' definitions (1.6.0, 1.5.0) unsuccessfully, I finally go back to the 1.3.0 version which is the latest one with the "MoteinoMega" name (not because the name mattered but because I know that I didn't use the newer ones before I reinstall, maybe I was using some oldest) and the compilation is now working again.

I didn't try all the versions so I don't know if it's the latest one that works on my system, but I have solved this issue by reverting to the old boards' definition in my case.

Maybe you could try some different versions of the board definition to check if it solves your issue.
Title: Re: Linker Plugin Error
Post by: [email protected] on December 02, 2022, 06:19:34 AM
This worked, Thank you!