<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">I’m on master.<div class="">Thanks, I think this is the way to go, though I’m now seeing a lot of undefined references, like there <a href="http://mingw-users.1079350.n2.nabble.com/imp-prefixes-when-linking-td7386007.html" class="">http://mingw-users.1079350.n2.nabble.com/imp-prefixes-when-linking-td7386007.html</a><br class=""><div class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 6 Feb 2018, at 2:05 PM, Jed Brown <<a href="mailto:jed@jedbrown.org" class="">jed@jedbrown.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="">What branch are you on? I wonder if this is exacerbated by Scott's<br class="">"absolute path". You can configure --with-single-library=0 which will<br class="">link a separate libpetscsys, libpetscvec, etc.<br class=""><br class="">There are Cygwin recipes in gmakefile that create argument files that<br class="">the linker reads as @args. We could use $(file > args, $^) to write<br class="">them with arbitrarily long command lines.<br class=""><br class="">Pierre Jolivet <<a href="mailto:pierre.jolivet@enseeiht.fr" class="">pierre.jolivet@enseeiht.fr</a>> writes:<br class=""><br class=""><blockquote type="cite" class="">Hello,<br class="">I’m trying to compile PETSc with msys2 and MS MPI.<br class="">Everything works out almost flawlessly, except when linking. Indeed, you generate a nice line of <br class="">$ wc /tmp/cl<br class=""> 2 1234 69041 /tmp/cl<br class="">69041 characters, but <br class="">$ getconf.exe ARG_MAX<br class="">32000<br class=""><br class="">Thus, sadly, the make fails with the following error<br class="">/usr/bin/sh: /mingw64/bin/gcc: Argument list too long<br class=""><br class="">Do you know of a work around? Anyway to link the full library as multiple smaller libraries (I think you did that for some version X.Y with X << 3, didn’t you?)?<br class=""><br class="">Thanks,<br class="">Pierre<br class=""></blockquote></div></div></blockquote></div><br class=""></div></div></body></html>