Now everything works, including the Serial with Uno and Mega2560.
My Gentoo is multilib
I check the /etc/make.conf file:
USE="multilib unicode gtk ..."
First I cleaned all packages:
emerge -C sys-devel/crossdev cross-avr/gcc cross-avr/binutils cross-avr/avr-libc
Then I added these entries in /etc/portage/package.unmask file.
=cross-avr/binutils-2.21.1-r1
=cross-avr/avr-libc-1.7.1
=cross-avr/gcc-4.6.2
and this entry in /etc/portage/package.keywords file
=sys-devel/crossdev-20111221 ~amd64
I checked the versions of packages:
emerge -vp cross-avr/gcc cross-avr/binutils cross-avr/avr-libc
Then I have installed the crossdev package:
emerge sys-devel/crossdev
I applied the proposed patch from:
https://378387.bugs.gentoo.org/attachment.cgi?id=285901cp /usr/bin/crossdev /usr/bin/crossdev.bak
nano -w /usr/bin/crossdev
Then I run this line:
USE="-openmp" crossdev --target avr --gcc 4.6.2 --binutils 2.21.1 --libc 1.7.1 -s4 --without-headers
Finally I checked the version of the avr-gcc:
avr-gcc --v
Thank you for everything :-))))