[petsc-dev] ARG_MAX and linking

Pierre Jolivet pierre.jolivet at enseeiht.fr
Tue Feb 6 03:18:14 CST 2018


Hello,
I’m trying to compile PETSc with msys2 and MS MPI.
Everything works out almost flawlessly, except when linking. Indeed, you generate a nice line of 
$ wc /tmp/cl
    2  1234 69041 /tmp/cl
69041 characters, but 
$ getconf.exe ARG_MAX
32000

Thus, sadly, the make fails with the following error
/usr/bin/sh: /mingw64/bin/gcc: Argument list too long

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?)?

Thanks,
Pierre


More information about the petsc-dev mailing list