Build Error -1073740940

Norbert Thiebaud nthiebaud at gmail.com
Sat Aug 8 18:59:14 PDT 2015


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;


More information about the LibreOffice mailing list