Posts: 11
Joined: Sun Sep 23, 2012 9:50 am

Arduino compile error

Sun Sep 23, 2012 10:00 am

I've installed Arduino 1.0.1 on my pi. The IDE loads but I get a compile error when trying to verify or upload a sketch.

I get the following output:
/home/pi/arduino-1.0.1/hardware/tools/avr/bin/avr-gcc: line 3: /home/pi/arduino-1.0.1/hardware/tools/avr/bin/../bin.gcc/avr-gcc: cannot execute binary file
/home/pi/arduino-1.0.1/hardware/tools/avr/bin/avr-gcc: line 3: /home/pi/arduino-1.0.1/hardware/tools/avr/bin/../bin.gcc/avr-gcc: Success
/home/pi/arduino-1.0.1/hardware/tools/avr/bin/avr-gcc returned 126

I installed using the instructions here: http://www.quilix.com/node/103

Does anyone know what the problem is?

Posts: 11
Joined: Sun Sep 23, 2012 9:50 am

Re: Arduino compile error

Mon Sep 24, 2012 9:44 am

ok well I seem to have solved the problem by renaming

Apparently this forces Arduino to compile using the system avr routines instead of the ones installed with Arduino.

Hopefully this helps someone else with the same problem.

Posts: 1
Joined: Thu Jan 17, 2013 8:49 pm

Re: Arduino compile error

Thu Jan 17, 2013 9:09 pm

Thank You 8ctopus!!!

That's the way to a working Arduino IDE .

Posts: 1
Joined: Wed Jun 26, 2013 10:18 pm

Re: Arduino compile error

Fri Jan 02, 2015 7:07 am

I know this is kind of a stale thread, but this was helpful for me too. Thanx 8ctopus!! :-) I run arduino IDE on my Pi and needed to be running 1.0.6 rather than the latest automatically installed 1.0.1. (Downloading and replacing files/folders) The posted solution eliminated these compile errors and allowed me to move on to other unrelated errors. :-) Thanx again for helping me dig just a bit deeper while troubleshooting.

User avatar
Posts: 42889
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK

Re: Arduino compile error

Fri Jan 02, 2015 11:30 am

You will need to build the Arduino IDE from source code. You can't run x86 or x86_64 packages on your ARM6 processor.

If I were doing that I'd build the beta 1.5 IDE from http://github.com/arduino/Arduino/tree/ide-1.5.x
Languages using left-hand whitespace for syntax are ridiculous

DMs sent on https://twitter.com/DougieLawson or LinkedIn will be answered next month.
Fake doctors - are all on my foes list.

The use of crystal balls and mind reading is prohibited.

Return to “Automation, sensing and robotics”