Created attachment 421570 [details] emerge --info emerged arduino successfully including crossdev. setup a local overlay for crossdev to use. ran crossdev -s4 avr (successfully) When I tried to compile an arduino script I got this error: cannot open linker script file ldscripts/avr5.x which I solved by: ln -s /usr/x86_64-pc-linux-gnu/avr/lib/ldscripts /usr/avr/lib/ldscripts (thanks to gentoo bug report: https://bugs.gentoo.org/show_bug.cgi?id=147155 ) Now I have this error: /usr/libexec/gcc/avr/ld: cannot find crtatmega328p.o: No such file or directory /usr/libexec/gcc/avr/ld: cannot find -latmega328p collect2: error: ld returned 1 exit status * dev-embedded/arduino Latest version available: 1.0.5-r1 Latest version installed: 1.0.5-r1 Size of files: 39,634 KiB Homepage: http://arduino.cc/ https://arduino.googlecode.com/ Description: An open-source AVR electronics prototyping platform License: GPL-2 GPL-2+ LGPL-2 CC-BY-SA-3.0 * sys-devel/crossdev Latest version available: 20150602 Latest version installed: 20150602 Size of files: 22 KiB Homepage: https://www.gentoo.org/ Description: Gentoo Cross-toolchain generator License: GPL-2
maybe this can help http://newtips.co/st/questions/31740435/cannot-compile-and-link-avr-program-in-os-x.html I was just hit by this issue on GNU/Linux last week. Actually, the compiler works fine. The cause of the issue is a failed linking attempt against avr-libc. avr-libc-1.8.1 is simply too old to work with GCC 5. Although 1.8.1 is the latest version of avr-libc, but it was released one year ago... The developing version of avr-libc has updated to catch up GCC 5, you could clone the subversion repository:
Created attachment 428562 [details] avr-libc-2.0.0.ebuild avr-libc-2.0.0 was released a few weeks ago. Ebuild attached. It is also in my arduino overlay. https://github.com/maurerpe/arduino-overlay
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=971cd7ef97dd3035583b89f63a5fa24d68c021fc