Date: Sun, 3 Nov 2019 18:32:14 +0100 From: Thierry Thomas <thierry@freebsd.org> To: freebsd-hackers@freebsd.org Subject: [ARG_MAX] execv: Argument list too long Message-ID: <20191103173214.GG90515@graf.pompo.net>
next in thread | raw e-mail | index | archive | help
--uAKRQypu60I7Lcqm Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, [Repost from FreeBSD-questions] 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. --uAKRQypu60I7Lcqm Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJ8BAEBCgBmBQJdvw8eXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFNTM2QkU4NTM4NTM5OUQwMEI2RkFBNzZG MUM1MTZCM0M4MzU5NzUzAAoJEPHFFrPINZdTzV8P/3Z+SlXZpGaCj+81wyeFj8+Z jXuTLB+o5KaB8V6bHABUbrZCWjUvTmLUq45U7dooReXMdZ9fO/34wyDmTbpSWKJ9 gfNJep+StYTn5Q0FBccwXGoQVCMZpG2wj3UkW3mfumpv8rnBOzPXC1MTRSRbE7lO kQwI4ShBNWGuMGk96zTrwebRm3oMbbLnZbFVBqHJOj4oBs7veexbUgdDlHUQJBJf zg+MpVllX2tQcSQPGRoLmsLXDXffYkJ2qtjRbLarMTqIws8O6CpAynHMko70H0Xw 0wkss1B1byy0psZVbu1ORcNCuEHvoEt/w7KhiErvUf24UcyfhUgretjwDIhBJFUV 1hgKNIdAzTsIn+X1lmKduQlT5EMG2w4K5AaWLhlLdkRVla133g9vdvZfWPsBva4o 3OH0jcpOhstehBKtUMjv9ecfK5EjTp6xCuv3zUOsu0V1jUuZzY4jDOhpQK+ai+et 4rvSf8NgCz0M8TYQXocnj5n3JRHxWtYsqT2/GRsvY7DZQVJ0kh69HP2DC7PbTCYR ZHGs5aFHgX3+emTtyBjsqq7a3BDPuxluDN8XFtpt/A1jYKtQGJf4SWUTc39MCCTD OCe31ynYBbP1DYLYD+0eJ87keUaAzZoAS3Md2BDTZMi3w9C7zYzjSin0ThNe83vr +hj8tXNaBq+VlqYmf+ZU =ZIZT -----END PGP SIGNATURE----- --uAKRQypu60I7Lcqm--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20191103173214.GG90515>