automake
[Top][All Lists]
Advanced

[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

Ciao,

  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  Makefile.am,  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 
`/home/marco/src/devel/C/libraries/atlapack/=build.upgrade-to-3.5.0'
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 
`/home/marco/src/devel/C/libraries/atlapack/=build.upgrade-to-3.5.0'
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  Makefile.am into multiple
Makefile.ams?

TIA

[1] <https://github.com/marcomaggi/atlapack/tree/upgrade-to-3.5.0>
[2] <http://lists.gnu.org/archive/html/automake/2010-11/msg00044.html>
-- 
"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]