Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


So digging deeper.

make clean in starmath for instance fails...
because of an assert in xargs...
I strongly suspect that xargs is utterly confused by the fact that our
make is running as a dos native app
since the same xargs coomand that assert, run just fine inside a
cygwin bash session

So I downloaded the sources of findutils (where xargs lives)
and patched it slightly, built and put the new xargs.exe to
$LODE_HOME/opt/bin (which in an LODE env is the top of the PATH food
chain :-) )
and make clean in starmath now works

That does not solve the initial head corruption in make.. but I
strongly suspect that it is related
iow a mismatch between what make think his command line max is, vs
what it really is...
where the cygwin command line is likely in the 128K vs the dos command
line that is at 8K

Norbert

--
Only in findutils-4.4.1.new/lib: .deps
diff -ur findutils-4.4.1/lib/buildcmd.c findutils-4.4.1.new/lib/buildcmd.c
--- findutils-4.4.1/lib/buildcmd.c      2009-04-21 20:18:14.000000000 +0000
+++ findutils-4.4.1.new/lib/buildcmd.c  2015-08-09 01:20:29.084155900 +0000
@@ -493,7 +493,7 @@
   /* Set the initial value of arg_max to the largest value we can
    * tolerate.
    */
-  ctl->arg_max = ctl->posix_arg_size_max;
+  ctl->arg_max = 8192;

   return BC_INIT_OK;
 }
diff -ur findutils-4.4.1/xargs/xargs.c findutils-4.4.1.new/xargs/xargs.c
--- findutils-4.4.1/xargs/xargs.c       2009-04-21 20:18:14.000000000 +0000
+++ findutils-4.4.1.new/xargs/xargs.c   2015-08-09 01:20:31.284114400 +0000
@@ -490,7 +490,7 @@
        * conforms to the POSIX requirement that the default command
        * line length shall be at least LINE_MAX.
        */
-      assert (bc_ctl.arg_max >= LINE_MAX);
+      //      assert (bc_ctl.arg_max >= LINE_MAX);
 #endif

       bc_ctl.exec_callback = xargs_do_exec;

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.