From owner-freebsd-hackers@freebsd.org Mon Nov 4 09:04:18 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 6C83217868A for ; Mon, 4 Nov 2019 09:04:18 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4766LB2Jmxz48fD; Mon, 4 Nov 2019 09:04:18 +0000 (UTC) (envelope-from gljennjohn@gmail.com) Received: by mail-wr1-x443.google.com with SMTP id l10so16057351wrb.2; Mon, 04 Nov 2019 01:04:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-transfer-encoding; bh=JEoJvAyMoQ64GNIQmADPMIAZwzaNCBVWQwUCpO5Bz7U=; b=VSmbgLxg5NGQDyzzNf84a+7OGANl3zIzUMfy9r87Jjz84njbemm//XyMnGaKKbXw7o mWilJ0EAzXELTCIMsIzbvNlJGw16fv7xoj5JlL2Zh87rGnCbANLsjg+rbrxdTsaaqffu 7zxAC+mumGJq36/d3GZ2pN+9mKnnHty2aAeFJ6N1XIINrhoZvpV64aH76xJxi/9M9nxa eWtf/Ui6+6rmnaJkFe2dRxpzk7vFDY8YFLCJGVGcwgZH3vkE8/ErVy/sJd+vkS6BYVAz cw3YWAWAFMBHKeDAMtHLJNEKf4u+u5DmeRgSLnViJYBHGFQV+j9TwW/ikxefUCw4yARC k8GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:reply-to:mime-version:content-transfer-encoding; bh=JEoJvAyMoQ64GNIQmADPMIAZwzaNCBVWQwUCpO5Bz7U=; b=MDFzo/V5CSnVFshpGZC9XeZDHebsajE7m+9BRhe3yhpELGu/sFPZmSfZUFHCsZNH8O Td2f3jpmTsAMpZBYjqHs9adBbr9mvnKYwniQZbtFp5PBea1BL0rRVYZNv0vKcNVIRob2 0PJglLNg7skCvTFkjj/UmZlCYmtuhsr4PYzl7e+kYWQ1lMLzJXWbAq/R40ScZM2aNNRT pLW8z6WhnXSiNwXSpdO1CNtOpl/yQIGUI72B5zgi5X/Qxw7Fe092A+2taTGh0QkG/nvn D6syVciQc7RxfesjKhncuUifkuoy+NymerDDxSVnHGhnZ4ZuTPQ3D5cxHWK0EYRkf8Ip CPlA== X-Gm-Message-State: APjAAAViMPiftTCx2tHqiERXmTIViKrwuWO5r1ZK/6zskwGCInRGMTRv U5P7hVqpWSiGVuUKonVCMoOpSKVU X-Google-Smtp-Source: APXvYqxovhIB4V4auEvBbh7QYWl9b9LjzDvxL1w7aDfcCSsTWbnYedAeXHRzD43WfTdDqUP5f1GDWQ== X-Received: by 2002:a5d:54cb:: with SMTP id x11mr22490515wrv.161.1572858256158; Mon, 04 Nov 2019 01:04:16 -0800 (PST) Received: from ernst.home (pD9E23786.dip0.t-ipconnect.de. [217.226.55.134]) by smtp.gmail.com with ESMTPSA id t10sm17393181wrw.23.2019.11.04.01.04.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Nov 2019 01:04:15 -0800 (PST) Date: Mon, 4 Nov 2019 10:04:14 +0100 From: Gary Jennejohn To: Thierry Thomas Cc: freebsd-hackers@freebsd.org Subject: Re: [ARG_MAX] execv: Argument list too long Message-ID: <20191104100414.2bd2ca12@ernst.home> In-Reply-To: <20191103173214.GG90515@graf.pompo.net> References: <20191103173214.GG90515@graf.pompo.net> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4766LB2Jmxz48fD X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-6.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-0.997,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; REPLY(-4.00)[] 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 09:04:18 -0000 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 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? > Doesn't look like it. Thre's a sysctl kern.argmax, but it's read-only and initialized to ARG_MAX. > Thanks for reading! > -- > Th. Thomas. -- Gary Jennejohn