Arduino Gentoo Install

September 14, 2009

[Warning: This post is a backup recovery from my previous Wordpress blog. All content was automatically converted accessing a MySQL database using a Python script (details). Mostly are in Portuguese but if you are interest I can translate to English. If you found any problem dont’t hesitate to contact me in comments.]

If you are reading this post it's probably that you already checked other resources and had some problem to build avr-g++ using crossdev utility.

crossdev -t avr -s4

Note that cpp compiler wasn’t created.

# qlist cross-avr/gcc | grep bin
/usr/i686-pc-linux-gnu/avr/gcc-bin/4.4.1/avr-gccbug
/usr/i686-pc-linux-gnu/avr/gcc-bin/4.4.1/avr-gcov
/usr/i686-pc-linux-gnu/avr/gcc-bin/4.4.1/avr-cpp
/usr/i686-pc-linux-gnu/avr/gcc-bin/4.4.1/avr-gcc
/usr/i686-pc-linux-gnu/avr/gcc-bin/4.4.1/avr-gcc-4.4.1

The problem is easy to fix. Simple edit /etc/portage/package.use/cross-avr changing 'nocxx' to '-nocxx' and run emerge again.

emerge cross-avr/gcc cross-avr/avr-libc dev-embedded/avrdude

I’m using AVR toolchain with Arduino 0017 flashing by USB.