On Fri, Sep 10, 2010 at 12:18:46AM +0200, Ladislav Michl wrote:
> I tried build OSELAS.Toolchain under Cygwin and PTXdist fails at:
> 
> -----------------------------------
> target: cross-binutils.install.pack
> -----------------------------------
> 
> xargs: environment is too large for exec
> 
> and indeed, on my system environment is 67623 bytes, most space is occupied
> with bash functions. Can we do something with this?

Cygwin inherits windows limitation of having only 32k environment.
Our environment is more than twice this size. The culprit here are functions
in ${SCRIPTSDIR}/lib/ptxd_make_*.sh sourced from scripts/libptxdist.sh:
ptxd_make() {
for lib in "${SCRIPTSDIR}/lib/ptxd_make_"*.sh; do
   source "${lib}" || ptxd_bailout "failed to source lib: ${lib}"
done
...

Most of bash functions are used only in relevant makefiles
(rules/post/ptxd_make_*.make), so what if we call them from
there directly? Any pitfalls?

        ladis


-- 
ptxdist mailing list
ptxdist@pengutronix.de

Reply via email to