Date: Fri, 1 Nov 2019 15:28:53 +0100 From: Thierry Thomas <thierry@freebsd.org> To: freebsd-questions@freebsd.org Subject: [ARG_MAX] execv: Argument list too long Message-ID: <20191101142853.GC3072@graf.pompo.net>
next in thread | raw e-mail | index | archive | help
--bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, I'm trying to upgrade the port french/aster to the latest stable release. This is a complex port: it has no Makefile (in the upstream tarball, but of course there is a Makefile for the port), and it uses a combination of setup.py (Python) and a bundled waf. At this point, it builds, but the latest step (linkage) fails with the following message: gfortran9: fatal error: cannot execute '/usr/local/libexec/gcc9/gcc/x86_64-= portbld-freebsd12.0/9.2.0/collect2': execv: Argument list too long Yes, linkage is done by gfortran, in a classical way: gfortran9 (some -Wl parameters) (a very long list of object files .o) (a list of several libraies with their paths) but the problem is not caused neither by gfortran nor by the final linker: if I execute the same command line manually from my shell, it succeeds and the aster program is built. So I guess that the problem is caused partly by the arguments list, but also by the environment variables brought by the build system. On my machine, `getconf ARG_MAX' returns 262144. Is there a way to increase this value dynamically? Any idea? Thanks for reading! --=20 Th. Thomas. --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJdvEElXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFNTM2QkU4NTM4NTM5OUQwMEI2RkFBNzZG MUM1MTZCM0M4MzU5NzUzAAoJEPHFFrPINZdTaZUP/1wNrO5/XE232PW/9jShd48/ UzxtByhspM8GkYsXWGmd1a0vcndfv5Z+ujYaM1bNnWzxr7Um65rJIN6P2ofEUZJL ZTc1tfMi/BYmQ1H/mdPcVeHunP+aGv/9lhLIvg3ptVg7o7T1kAZfjFvIpr0sZLw9 rF+pNRpvFBr6om1LRTNQehCrjpHGxQkJ+4mIDnKLBaWQytwsSilMabgaWxivKZ1P XHjbRK+wBm2l6z+0XsIz1aB+UYWrY3jCKxNJRHXqoPoJ96FEWGUEHThmMMQ+IJOi RA0tcLETGXJ4r24qeSqBClRRB8zphXRn5DjQUQKGfhnQ74T3gTBtCA+Jx95IIpMf Blcj8eCY3x4LmB66WhC1hKH27CtE9BYtP5IEs9f6aet9o5LaIfJEjx2yB1nNYyTW 8u4/FfKUjWZ5//lT82Gc0msN8tDTX7AF+PY3X7CvRE959hK/OXPgxjoCF9MFV9Ff y9Ozjv6eAf5X6jTtKw+Qfg/+L5VoLIlcUcgs/IAVaVCZNUKvfza9zUHyo0+2XWF/ v8B+Tqj9BUJ+wFmuJZo9EGCk1G5y15H+AT97+09tvfB6gyjlZH7E+Zv3tdQ3V0fE C/mg2S6+6R/SnyJKCsMXCEb+bBk0yO9fFR5wytY2GcZyW8jta09FE5iKtoO34Rb+ sadn9/VCRqJMxP2jYprw =nUh2 -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191101142853.GC3072>