Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Argument list too long #251

Open
TC218 opened this issue May 16, 2015 · 9 comments
Open

Argument list too long #251

TC218 opened this issue May 16, 2015 · 9 comments

Comments

@TC218
Copy link

TC218 commented May 16, 2015

  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
Copy link

Same here, with 1.6.4.

@bao3
Copy link

bao3 commented Jun 5, 2015

same error .

Arduino IDE 1.6.4

@dimascrocco
Copy link

arghhhhh... same thing with 1.5.6 =/

@bremby
Copy link

bremby commented Jul 4, 2015

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
Copy link

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

@allonhadaya
Copy link

I would guess that this line is problematic:

flags.extend('-I' + subd for subd in list_subdirs(d, recursive=True, exclude=['examples']))

@josh-kaplan
Copy link

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
Copy link

@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 #260.

@limikael
Copy link

Getting this error... :(

Arduino version: 1.8.5
Os version: Ubuntu 16.10

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants