/usr/libexec/gcc/avr/ld: skipping incompatible /usr/lib/gcc/avr/4.5.3/libgcc.a when searching for -lgcc
/usr/libexec/gcc/avr/ld: cannot find -lgcc
collect2: ld returned 1 exit status
But this is the onyl avr-libgcc I've got. Has somebody any idea what's going on there?
The proposed solution does not work at all. Yes, the sketches compiles without errors, the upload is also done without problems, but when I tried the Examples AnalogReadSerial, DigitalReadSerial, BareMinimum and ASCIITable it wouldn't work.
Does anyone have an idea how to solve this problem? My Linux is Gentoo amd64.
I tried the proposed solution with the Uno, Mega2560 and with the Mega1280.
Excuse my ignorance of Gentoo, but do they have this Arduino/AVR code in their repository? If they do, maybe you should contact them about getting that fixed.
Yes, it works with the gcc-4.62.
Thanks guys, you are the greatest.
I never tried it with the gcc-4.6.2, but what matters is that works.
But, I still do not have the Serial working with Uno and Mega2560.
I upload the sketch but I never see anything in Serial monitor. The Blink example work fine.
With Mega1280 and Duemilanove everything works now including the Serial communication.
hdias:
But, I still do not have the Serial working with Uno and Mega2560.
Is your problem that you don't see the /dev/ttyACM0 in the arduino IDE?
I read somewhere in Gentoo forums or bugs, that the arduino-1.0 from portage has this problem for some people - So I decided to keep the old, "blue arduino" from the overlay for now.
But I can't find this thread again, sorry.
Actually (2013-03-16) following combination seems to work fine:
sys-devel/crossdev-20120721 (patched with patch from bug report 378387), cross-avr/gcc-4.6.3, avr-libc-1.8.0, cross-avr/binutils-2.21.1, (normally using cross-avr/binutils-2.22-r1 --> but segmentation fault occurred for Mega 2560)
Following code force the using of other binutils package than latest stable: