From owner-freebsd-questions@freebsd.org Fri Nov 1 14:28:58 2019 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 349EE167184 for ; Fri, 1 Nov 2019 14:28:58 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from edna.lautre.net (edna.lautre.net [80.67.160.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "lautre.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 474Ph90C0rz4JS8 for ; Fri, 1 Nov 2019 14:28:56 +0000 (UTC) (envelope-from thierry@pompo.net) Received: from graf.pompo.net (graf.pompo.net [78.225.128.39]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by edna.lautre.net (Postfix) with ESMTPSA id C55E11086F9 for ; Fri, 1 Nov 2019 15:28:54 +0100 (CET) Received: by graf.pompo.net (Postfix, from userid 1001) id 0333E32CB91; Fri, 1 Nov 2019 15:28:53 +0100 (CET) Date: Fri, 1 Nov 2019 15:28:53 +0100 From: Thierry Thomas To: freebsd-questions@freebsd.org Subject: [ARG_MAX] execv: Argument list too long Message-ID: <20191101142853.GC3072@graf.pompo.net> Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bp/iNruPH9dso1Pn" Content-Disposition: inline X-Operating-System: FreeBSD 12.0-STABLE amd64 Organization: Kabbale Eros X-Face: (hRbQnK~Pt7$ct`!fupO(`y_WL4^-Iwn4@ly-.,[4xC4xc; y=\ipKMNm<1J>lv@PP~7Z<.t KjAnXLs: X-PGP: 0xF1C516B3C8359753 User-Agent: Mutt/1.12.2 (2019-09-21) X-Rspamd-Queue-Id: 474Ph90C0rz4JS8 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of thierry@pompo.net has no SPF policy when checking 80.67.160.88) smtp.mailfrom=thierry@pompo.net X-Spamd-Result: default: False [-5.43 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_NONE(0.00)[]; HAS_ORG_HEADER(0.00)[]; SIGNED_PGP(-2.00)[]; FORGED_SENDER(0.30)[thierry@freebsd.org,thierry@pompo.net]; IP_SCORE(-2.55)[ip: (-9.29), ipnet: 80.67.160.0/19(-1.91), asn: 20766(-1.53), country: FR(-0.00)]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:20766, ipnet:80.67.160.0/19, country:FR]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FROM_NEQ_ENVFROM(0.00)[thierry@freebsd.org,thierry@pompo.net]; TO_DOM_EQ_FROM_DOM(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.98)[-0.983,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[freebsd.org]; RCVD_IN_DNSWL_NONE(0.00)[88.160.67.80.list.dnswl.org : 127.0.10.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[88.160.67.80.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Nov 2019 14:28:58 -0000 --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--