/usr/local/lib/gcc/avr/5.4.0/../../../../avr/bin/ld: /usr/local/libexec/gcc/avr/5.4.0/liblto_plugin.so: error loading plugin: Service unavailable collect2: error: ld returned 1 exit status libto_plugin.so shits the bed with arduino, arduino16, arduino18. Sketch compilations fail. This report would have more information with "Show verbose output during compilation" enabled in File > Preferences. Arduino: 1.0.6 (FreeBSD), Board: "Arduino Uno" /usr/local/lib/gcc/avr/5.4.0/../../../../avr/bin/ld: /usr/local/libexec/gcc/avr/5.4.0/liblto_plugin.so: error loading plugin: Service unavailable collect2: error: ld returned 1 exit status
Created attachment 200732 [details] the irrelevant AVR CPP code
Cannot reproduce that myself. However, just got a hint from someone having a similar problem with the ARM toolchain. He updated and rebuilt the binutils port, and the problem was gone. The issue was that apparently, at some point in time, various binutils ports had been built with static linking, so the linker was then unable to dlopen() the LTO shared lib. Bottom line, please see whether this problem vanishes after refreshing the avr-binutils installation.
Joerg, I guess this can be closed by now and reopened if it's still an issue?
(In reply to Daniel Engberg from comment #3) Yes, I think so. Never heard anything back from the reporter, and doesn't appear to be an issue for anyone else.