Yeah. However, I can only find that version of gcc in the AUR, not avr-gcc.[...]
Quote from: MaTachi on Jun 19, 2011, 01:03 amYeah. However, I can only find that version of gcc in the AUR, not avr-gcc.[...]Sorry, my bad. I thought I had read avr-gcc 4.3.4.You can use Bingo's build script. I've used it too. It will get you avr-gcc 4.4.3 + avr-libc 1.7.1 + avr-binutils 2.20, which runs well on my system (mostly). I can't speak for the 'Arduino Mega' though. There are some issues with delay.h, which may or may not affect you. It should be mentioned in the thread on avrfreaks.net as well.Just make sure you have a backup of your important stuff, as Bingo's script is intended to be run as root. So it may wreck havoc on your system. It worked on mine, but better be safe.
/usr/lib/libbfd.a(plugin.o): In function `try_load_plugin':(.text+0x3c8): undefined reference to `dlopen'/usr/lib/libbfd.a(plugin.o): In function `try_load_plugin':(.text+0x3eb): undefined reference to `dlsym'/usr/lib/libbfd.a(plugin.o): In function `try_load_plugin':(.text+0x47b): undefined reference to `dlerror'collect2: ld returned 1 exit statusmake: *** [avarice] Error 1make: Leaving directory `/usr/local/avr/build/avarice-2.10/src'make: *** [all] Error 2make: Leaving directory `/usr/local/avr/build/avarice-2.10/src'make: *** [all-recursive] Error 1(./buildavr-no-insight.sh) avarice build failed
In the last pages there is the most actual scripts and also .deb files and patches for the avr-gcc to correct the delay.h problems and other.
[17:47] daniel@arch ~ $ avr-gccbash: avr-gcc: command not found
...>avr-gcc --versionavr-gcc (GCC) 4.4.3Copyright (C) 2010 Free Software Foundation, Inc.This is free software; see the source for copying conditions. There is NOwarranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[19:11] daniel@arch /etc $ ls -la | grep profile.local-rw-r--r-- 1 root root 42 Jun 19 17:39 profile.local
[19:12] daniel@arch /etc $ echo $PATH/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:/opt/java/bin:/opt/java/db/bin:/opt/java/jre/bin:/usr/bin/vendor_perl:/usr/bin/core_perl
# /etc/profile#Set our umaskumask 022# Set our default pathPATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin"export PATH# Load profiles from /etc/profile.dif test -d /etc/profile.d/; then for profile in /etc/profile.d/*.sh; do test -r "$profile" && . "$profile" done unset profilefi# Source global bash configif test "$PS1" && test "$BASH" && test -r /etc/bash.bashrc; then . /etc/bash.bashrcfi# Termcap is outdated, old, and crusty, kill it.unset TERMCAP# Man is much better than us at figuring this outunset MANPATH# dircolors /etc/DIR_COLORS
Please enter a valid email to subscribe
We need to confirm your email address.
To complete the subscription, please click the link in the
email we just sent you.
Thank you for subscribing!
via Egeo 16