Trying to compile a sketch in the Arduino IDE for the atmega2560 results in the following error: /usr/libexec/gcc/avr/ld: crtm2560.o: No such file: No such file or directory I've tried a few different versions and I can't seem to get a version that works Reproducible: Always Steps to Reproduce: 1. Open the example sketch (blink), but any sketch will do 2. Attempt to 'verify', this attempts to compile (no need to have a board connected) Actual Results: The linking fails unable to find crtm2560.o Expected Results: Compilation and linking succeeds Using sys-devel/crossdev-20110705. I cannot use my Arduino board at all until this is resolved. Portage 2.2.2 (default/linux/amd64/2008.0, gcc-4.4.5, libc-0-r0, 2.6.38-gentoo-r6 x86_64) ================================================================= System uname: Linux-2.6.38-gentoo-r6-x86_64-Intel-R-_Core-TM-_i7_CPU_Q_720_@_1.60GHz-with-gentoo-2.1.8 Portage Tree: /usr/portage Portage HEAD: 9a25322c5d28d17c8adc0945573f1595c2063c6f /usr/portage/.git/refs/heads/funtoo.org app-shells/bash: 4.1_p10 dev-java/java-config: 2.1.11-r3 dev-lang/python: 2.6.5-r3 dev-util/cmake: 2.8.4 dev-util/pkgconfig: 0.25-r2::funtoo sys-apps/baselayout: 2.1.8-r2::funtoo sys-apps/openrc: 0.6.8 sys-apps/sandbox: 2.5 sys-devel/autoconf: 2.13::funtoo, 2.68 sys-devel/automake: 1.8.5-r4::funtoo, 1.9.6-r3::funtoo, 1.10.3::funtoo, 1.11.1::funtoo sys-devel/binutils: 2.20.1::funtoo sys-devel/gcc: 4.3.3-r2::funtoo, 4.4.5::funtoo sys-devel/gcc-config: 1.4.1::funtoo sys-devel/libtool: 2.4-r3 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.32::funtoo sys-libs/glibc: 2.11.2-r2 virtual/os-headers: 0 Repositories: gentoo QsOverlay bio-overlay doom-overlay arduino QsOverlay-test cross-avr ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="* -@EULA skype-eula IBM-J1.6 dlj-1.1 AdobeFlash-10.1 googleearth BCS PUEL cadsoft google-talkplugin" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-march=native -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks fixlafiles fixpackages mini-manifest news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch" FFLAGS="" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_US.UTF-8" LC_ALL="en_CA.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed" LINGUAS="en en_GB" MAKEOPTS="" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/qsoverlay /var/lib/layman/bios /var/lib/layman/doom-overlay /var/lib/layman/luksans-arduino /home/qbasicer/Documents/programming/git/Qs-Overlay-test /usr/local/portage" SYNC="git://github.com/funtoo/portage-mini-2010.git" SYNC_USER="root" USE="X a52 aac aalib acl acpi alac alsa amd64 amr apache2 aspell avahi avi bash-completion berkdb bluetooth bonjour bzip2 cairo cddai cdr cleartype cli consolekit cracklib crypt cups curl cxx dbus device-mapper dri dts dvd dvdr dvdread encode esd exif extras faac faad fbcondecor ffmpeg flac fluidsynth fontconfig foomaticdb fortran fuse gd gdbm gif gimp git glut gnutls gpg gphoto2 gpm gstreamer gtk gui hfs iconv icu imap ios iphone ipod ipv6 java jpeg jpeg2k kde kdrive lame laptop latex lcdfilter libnotify lightning lm_sensors mad matroska mdnsresponder-compat melt mime mmap mmx mng modules mp2 mp3 mpeg mplayer msn mudflap multilib ncurses nls nptl nptlonly nsplugin ntfs nvidia ogg openal opencl opengl openmp pam pcre pdf pdo perl php png policykit pppd pulseaudio python qt3support qt4 quicktime rdesktop readline samba sdl session spell sql sqlite sqlite3 sse sse2 ssh ssl subversion svg sysfs taglib tcpd threads tiff tools truetype unicode usb v4l v4l2 vim-syntax vnc vorbis wavpack webkit wifi x264 xcomposite xdmcp xml xmp xorg xpm xv zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK
Looks like you are mixing funtoo with gentoo as I can see in emerge --info, this is not supported, please drop funtoo components
This happens for me in vanilla gentoo, sys-devel/crossdev-20110705, cross-avr/avr-libc-1.7.0, cross-avr/binutils-2.21.1, cross-avr/gcc-4.5.2. see Bug 377039
This happens to me too on gentoo. Consider it as a bug. Portage 2.1.10.3 (default/linux/x86/10.0, gcc-4.4.5, glibc-2.12.2-r0, 2.6.38-gentoo-r6 i686) ================================================================= System uname: Linux-2.6.38-gentoo-r6-i686-Intel-R-_Core-TM-2_Duo_CPU_T7250_@_2.00GHz-with-gentoo-2.0.3 Timestamp of tree: Sun, 07 Aug 2011 16:00:01 +0000 app-shells/bash: 4.1_p9 dev-java/java-config: 2.1.11-r1 dev-lang/python: 2.6.6-r1, 3.1.2-r4 dev-util/cmake: 2.8.1-r2 dev-util/pkgconfig: 0.25-r2 sys-apps/baselayout: 2.0.3 sys-apps/openrc: 0.8.2-r1 sys-apps/sandbox: 2.4 sys-devel/autoconf: 2.13, 2.65-r1 sys-devel/automake: 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1 sys-devel/binutils: 2.20.1-r1 sys-devel/gcc: 4.4.5 sys-devel/gcc-config: 1.4.1-r1 sys-devel/libtool: 2.2.10 sys-devel/make: 3.82 sys-kernel/linux-headers: 2.6.36.1 (virtual/os-headers) sys-libs/glibc: 2.12.2 Repositories: gentoo sunrise aidecoe mozilla ardunio jensp zugaina luman x11 x-portage x-theebuilds-read-only ACCEPT_KEYWORDS="x86" ACCEPT_LICENSE="* -@EULA" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c" CXXFLAGS="-O2 -march=native -pipe -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv" FFLAGS="" GENTOO_MIRRORS="http://ftp.jaist.ac.jp/pub/Linux/Gentoo/" LANG="en_US.UTF-8" LC_ALL="en_US.UTF-8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" PORTAGE_CONFIGROOT="/" PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/aidecoe /var/lib/layman/mozilla /var/lib/layman/arduino /var/lib/layman/jensp /var/lib/layman/zugaina /var/lib/layman/luman /var/lib/layman/x11 /usr/local/portage /usr/local/theebuilds-read-only" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aac aalib acl alsa anthy avahi avi bash-completion berkdb bitmap-fonts bzip2 caps cdrom cjk cli cracklib crypt cups cxx dbus directfb divx divx4linux dri dvd dvdr dvdread ebook fbcon ffmpeg flac fortran freetype gdbm gif gimpprint glib gphoto2 gpm iconv imlib immqt-bc intel ipv6 jabber jack java jingle jpeg kakasi kde kipi lcdfilter matroska midi mmx mmx2 mmxext mng modules mp3 mpeg mpeg4 msn mudflap mysql ncurses nls nptl nptlonly nsplugin opengl openmp pam pcre pdf perl png pppd private-headers python qt qt3 qt3support qt4 quicktime readline samba sdl semantic-desktop session sse sse2 sse3 ssl svg sysfs tcpd theora truetype udev unicode upnp v4l v4l2 vcd wifi win32codecs x86 xanim xcomposite xorg xulrunner xv xvid yahoo zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="synaptics keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa intel" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS