amperka / ino

Command line toolkit for working with Arduino hardware
http://inotool.org
MIT License
1.08k stars 232 forks source link

Argument list too long #251

Open TC218 opened 9 years ago

TC218 commented 9 years ago
  1. I have just installed ino through "git clone / make install".
  2. created empty project using "ino init"
  3. and, by executing "ino build", I get error:

Searching for Arduino lib version file (version.txt) ... /usr/share/arduino/lib/version.txt Detecting Arduino software version ... 1.6.3 (1.6.3) avr-gcc: error trying to exec '/home/user1/apps/arduino/hardware/tools/avr/bin/../libexec/gcc/avr/4.8.1/cc1plus': execv: Argument list too long make: *** [.build/uno/src/sketch.d] Error 1 Make failed with code 2

OS: Ubuntu-based Linux Mint

lucciano commented 9 years ago

Same here, with 1.6.4.

bao3 commented 9 years ago

same error .

Arduino IDE 1.6.4

dimascrocco commented 9 years ago

arghhhhh... same thing with 1.5.6 =/

bremby commented 9 years ago

Just tried running it with the verbose option. The problem really is what the error describes. It lists all possible include paths to the compiler, and it won't even fit to my terminal buffer to display all of it.

allonhadaya commented 9 years ago

I can confirm this issue as well. Ino: f23ee5cb14edc30ec087d3eab7b301736da42362, Ubuntu: 14.04, Arduino: 1.6.5

allonhadaya commented 9 years ago

I would guess that this line is problematic: https://github.com/amperka/ino/blob/f23ee5cb14edc30ec087d3eab7b301736da42362/ino/commands/build.py#L224

josh-kaplan commented 9 years ago

Apparently it creates a 15MB Makefile.deps. I changed line #224 to recursive=False and got it to build on OS X. Haven't tried to upload it to a board yet.

chrisspen commented 9 years ago

@josh-kaplan, That fixed it for me on Ubuntu 14.04! Thanks. I now have 1.6.6 installed. See my list of other necessary fixes in https://github.com/amperka/ino/issues/260.

limikael commented 7 years ago

Getting this error... :(

Arduino version: 1.8.5 Os version: Ubuntu 16.10