pico:
WizenedEE:
Be a man! rm -r that thing! rm -rf it if you're hardcore.Note to self: Next time I see WizenedEE say "Be a man!", take the wimpola option.
Well it's what I do. Spending an extra fifteen seconds rebuilding Arduino isn't worth moving and re-moving the directory.
On systems like ubuntu at least, someone should probably put rm in a wrapper to at least catch any invocation of
rm [flags] /
I mean, there is no valid reason you'd ever want to do this anyway. If an ubuntu user is trying to do this, it is almost 100% certainly a mistake.
With my version of rm that's true. You have to use --no-preserve-root if you want to
$ rm -r /
rm: it is dangerous to operate recursively on ‘/’
rm: use --no-preserve-root to override this failsafe
is because later versions broke something somewhere (with avr libc? or something) - and at any rate, it won't compile things properly, and it hasn't been patched (after all this time - no idea why) to fix it.
I think it is only the 4.7.x versions where some things are definitely broken for AVR. Atmel are using a version of of 4.6.something for their gnu-based toolchain distribution, so there are definitely patched libs for later versions gcc that will work with AVR. My impression is Arduino have not been keeping up just because they don't see updating the toolchain as any kind of priority issue.
I'm currently compiling with avr-gcc 4.7.2. It's unpatched and pretty much works out of the box
distro is archlinux; I installed avr-gcc with pacman.