From owner-freebsd-hackers@freebsd.org Mon Nov 4 14:23:44 2019 Return-Path: Delivered-To: freebsd-hackers@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 925AB1A4248 for ; Mon, 4 Nov 2019 14:23:44 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 476FQm3MZ3z3JK7; Mon, 4 Nov 2019 14:23:44 +0000 (UTC) (envelope-from pfg@FreeBSD.org) Received: from [192.168.0.6] (unknown [181.52.72.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) (Authenticated sender: pfg) by smtp.freebsd.org (Postfix) with ESMTPSA id 11DB61D86F; Mon, 4 Nov 2019 14:23:43 +0000 (UTC) (envelope-from pfg@FreeBSD.org) To: Thierry Thomas From: Pedro Giffuni Subject: Re: [ARG_MAX] execv: Argument list too long Autocrypt: addr=pfg@FreeBSD.org; keydata= mQENBFU6tr0BCAC/MABNSg8O9sLZZ1cCl8GczwjnyF6WEvtfLpIkAWEo49H3TuG3cMNwuavi xnwASLS73ppj6ziWK1QsfdAaA8Mkvk25UtenfsCTiA38q0RwvHPn8W6eorJ6rYHRReNnncA+ oPLrLmL6IOUK9dlcLJP5i45PGwpx9YNI+D/BFcji7enpnsGjunhRE3NJ1YBXiKMormfnPvpV yVWpKnnB03nFIQphW108G5U9wytZqsiGkshn0ar0FBGsdJ19d/ePBuMceaWRtf0nJrNkC9sB D8ISmFp6/DAoQBhyJxvemC83/QNV5u9kGdwemaKOJ6SdA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ZxlUEKzQd0Vq1ci8PTI1krvda9x+FdGvKxY9Iz4T+SW NZsvBaCXo9hjJZ7U1VaCdWxgHhy5tuTuMAGGS9lCGbdvdKuAbSQDtcvx0jcY5s7Q2t2udCyV mRDbQYrl8PEyJa3Cz3NoBD9g9EEr9PlX05hOWMVf3M5pS4j/XKbzUbKqiBy1VPw= Organization: FreeBSD Cc: FreeBSD Hackers Message-ID: <27d5e66b-a9bd-6037-29cd-77cb529bab9e@FreeBSD.org> Date: Mon, 4 Nov 2019 09:23:44 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-Language: en-US X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Nov 2019 14:23:44 -0000 Hi Thierry; On Sun, 3 Nov 2019 18:32:14 +0100 Thierry Thomas wrote: > 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 libraries 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! > -- > Th. Thomas. This is basically the same issue seen long ago with libreoffice: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208154 Please open a PR and add me. Code Aster is sufficiently important (at least for me) that I think we should revise the limit. Pedro.