[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

argument list too long in project with many files

From: Marco Maggi
Subject: argument list too long in project with many files
Date: Fri, 30 May 2014 07:50:30 +0200


  on a x86_64-unknown-linux-gnu running  Automake 1.14.1, I am packaging
a project with ``many'' files as sources for C and Fortran libraries[1];
I  am  using a  single,  so the  files  are  listed with  a
non-empty directory  part.  When  running some  makefile rules  with GNU
Make and Bash, like "make dist", I get this:

$ make dist
make  dist-xz am__post_remove_distdir='@:'
make[1]: Entering directory 
if test -d "atlapack-3.5.0"; then find "atlapack-3.5.0" -type d ! -perm -200 
-exec chmod u+w {} ';' && rm -rf "atlapack-3.5.0" || { sleep 5 && rm
 -rf "atlapack-3.5.0"; }; else :; fi                                            
test -d "atlapack-3.5.0" || mkdir "atlapack-3.5.0"
make[1]: execvp: /bin/sh: Argument list too long
make[1]: *** [distdir] Error 127
make[1]: Leaving directory 
make: *** [dist] Error 2

  I  have read  the manual  section "Length  Limitations" and  an oldish
mailing list thread[2].  By inspection of the output of "make dist -n" I
see  only a  single big  list of  files, so  I do  not think  that using
convenience libraries can solve anything.   Is there a way to circumvent
this problem other  than splitting the single into multiple


[1] <>
[2] <>
"Now feel the funk blast!"
Rage Against the Machine - "Calm like a bomb"

reply via email to

[Prev in Thread] Current Thread [Next in Thread]