From patchwork Wed Apr 24 11:51:28 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 1927125 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=XDDidwZj; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=patchwork.ozlabs.org) Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VPclp5cY5z1yZy for ; Wed, 24 Apr 2024 21:51:48 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 2622D35282B5; Wed, 24 Apr 2024 13:51:42 +0200 (CEST) Authentication-Results: helium.openadk.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=XDDidwZj; dkim-atps=neutral Received: from mail-lf1-f48.google.com (mail-lf1-f48.google.com [209.85.167.48]) by helium.openadk.org (Postfix) with ESMTPS id 7630135282AB for ; Wed, 24 Apr 2024 13:51:38 +0200 (CEST) Received: by mail-lf1-f48.google.com with SMTP id 2adb3069b0e04-518a3e0d2ecso10114682e87.3 for ; Wed, 24 Apr 2024 04:51:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713959496; x=1714564296; darn=uclibc-ng.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=3rXyPT9+t6z9n4tn1qF3k+Ws+iWimoRI5+XV2Eotmxc=; b=XDDidwZjbIbHEEefOOIWHgI2xJO3B5XQuOmeslZJsy6ztDak8sCBcclNRJsNrRFO6I gDRcqTFJdp/VcnNTVrME6ZFk85Am81wWl2KJjVH/pwMh856dkI7L/He1JbIS8V8q/pfi gTUx7SoOYvF1r61ZF2XrJLZDdqDPuRugyU/gBh7ejpzo+9zZK0xfLaL/mEpvx+jjFeYD JE/5VAcggjokE4Lz5GcY/ZQ1O5PwicugiVDD+kNFLv5JB1bellmnW7yR1X8kw09csb0Z ODwLea5ddpNNqex0E+VwVK9WtSulAeSAOy9zUtN3ekb0GZWAqUmAf/0dN/NEgM1ZGL3d /TYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713959496; x=1714564296; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=3rXyPT9+t6z9n4tn1qF3k+Ws+iWimoRI5+XV2Eotmxc=; b=s/nyGf8/JtLSzL0dp8cLFF3K4aR1B/N0izsvtp21MiFuArVZn9QDgGrB4QWxNrB96R t91xrBXp3YdzaKN5vbgL9u9IRuXZvbIb1LpHNYeq3b0QkucQjx87rsZMyhQYx5bZpg3F rlqHHAg6KcLQ+SCn21Sg1+UWylXFGfFHju4lRbPm3UECfrkGw1t5JHEVRbfc/7kn7SaY V0N9v1mNnfCfSz5Ut2emlG07SIQXdn3xGVw+c1TfJ9B3jjvRkUpZsW3rUR8oY52Obus9 IhuRJtBNVKEDrPcVVMu72z0XbyAcGXJGEXH9dL/MgYU0U27pJ21y69bX7d9RMboeMBQI dCcg== X-Gm-Message-State: AOJu0YyiIvZN2XGvrx1YZHs56xWRuQb67g0RN9Y6coHqEX1oKLHLhe0G f02fa7c2nBYE1FDXS50P1jffRtz4xAS28aO/pchkPr62X6PTgANNlqTF3w== X-Google-Smtp-Source: AGHT+IFxwuazODzg33NOU3/H0X5aS2dSfFsj+KqGdK7BN0AY4EfTw5RN3eSRl3ob73RKgI7ChKLVFg== X-Received: by 2002:ac2:4daa:0:b0:51a:df97:cc8d with SMTP id h10-20020ac24daa000000b0051adf97cc8dmr2114846lfe.26.1713959496049; Wed, 24 Apr 2024 04:51:36 -0700 (PDT) Received: from octofox.metropolis (77-46-212-180.dynamic.isp.telekom.rs. [77.46.212.180]) by smtp.gmail.com with ESMTPSA id mc11-20020a170906eb4b00b00a5256d8c956sm8214403ejb.61.2024.04.24.04.51.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 04:51:35 -0700 (PDT) From: Max Filippov To: devel@uclibc-ng.org Date: Wed, 24 Apr 2024 04:51:28 -0700 Message-Id: <20240424115128.2417287-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 Message-ID-Hash: YXVXBRGPU53PMZZSO536LV3IABYSULTY X-Message-ID-Hash: YXVXBRGPU53PMZZSO536LV3IABYSULTY X-MailFrom: jcmvbkbc@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH] Makerules: fix out-of-tree build error "Argument list too long" List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Make rule that announces and makes static libc archive can generate command line that is too long when a full path O= option is used. That breaks the build with the following message: make: /bin/sh: Argument list too long Use make $(file) construct to generate file list file and use that file as $(AR) argument instead. Signed-off-by: Max Filippov --- Makerules | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makerules b/Makerules index fe8a7916e657..96f2a71ec49a 100644 --- a/Makerules +++ b/Makerules @@ -276,7 +276,7 @@ cmd_compile.mi= $(cmd_compile.m:-c=-E -dD) $(UCLIBC_EXTRA_CPPFLAGS) cmd_compile-m = $(CC) $^ -c -o $@ $(CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(notdir $(@D))) $(CFLAGS-$(notdir $@)) $(sort $(foreach d,$(^:$(top_srcdir)=),$(collect_multi_flags))) cmd_strip = $(STRIPTOOL) $(STRIP_FLAGS) $^ cmd_t_strip = $(STRIPTOOL) $(STRIP_FLAGS) $@ -cmd_ar = $(AR) $(ARFLAGS) $@ $(call objects_with_syms,,$^) +cmd_ar = $(AR) $(ARFLAGS) $@ @$@.list define do_ln @$(disp_ln) @@ -317,6 +317,7 @@ hcompile.u= @$(disp_hcompile.u); $(cmd_hcompile.u) hcompile.o= @$(disp_hcompile.o); $(cmd_hcompile.o) define do_ar + @$(file >$@.list,$(call objects_with_syms,,$^)) @$(disp_ar) ; $(cmd_ar) @$(do_t_strip) endef