From patchwork Wed Apr 24 11:36:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Max Filippov X-Patchwork-Id: 1927123 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=uclibc.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=uclibc-bounces@uclibc.org; receiver=patchwork.ozlabs.org) X-Greylist: delayed 445 seconds by postgrey-1.37 at legolas; Wed, 24 Apr 2024 21:44:21 AEST Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (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 4VPcb94V7pz1yZr for ; Wed, 24 Apr 2024 21:44:21 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id F15A441556; Wed, 24 Apr 2024 11:37:24 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id lO4R66tjVV7n; Wed, 24 Apr 2024 11:37:24 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.166.34; helo=ash.osuosl.org; envelope-from=uclibc-bounces@uclibc.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 01EF7402E8 Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id 01EF7402E8; Wed, 24 Apr 2024 11:37:24 +0000 (UTC) X-Original-To: uclibc@lists.busybox.net Delivered-To: uclibc@osuosl.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 6CDBE1BF983 for ; Wed, 24 Apr 2024 11:37:22 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 5986F40338 for ; Wed, 24 Apr 2024 11:37:22 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id BF7myrA4SZge for ; Wed, 24 Apr 2024 11:37:21 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=2a00:1450:4864:20::62e; helo=mail-ej1-x62e.google.com; envelope-from=jcmvbkbc@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org D22FD401DF DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org D22FD401DF Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by smtp4.osuosl.org (Postfix) with ESMTPS id D22FD401DF for ; Wed, 24 Apr 2024 11:37:20 +0000 (UTC) Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a5878caeb9eso247595766b.1 for ; Wed, 24 Apr 2024 04:37:20 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713958638; x=1714563438; 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=UMAImEIOijTaEOX42Q72GwerOrLdBrtmehvQHcsokmK3rwJBnqyVolTak5E9Ws12NC 8cVJmV8vFzKzgzujbsu4nGMwjBbAROLOG+fOXAm8hmXLBXXC3Wvm84x+TbDoqTbTJqKH I+gSoanw6vrCI7o+WUr9AHmqN7OgchPamRfww5xAZ61MdfmZXZScC/gL07NYPGdHdx3R wCCk/QezLi826a76e7x2+on1WDCl+Zyb2C3F47f8iiIH2bmXnHvYYuDvGuu5HM/LScwS /SRKAVJaV5ZrqD5gr13YCNhW8uj3JcN233mAJj0LdkT53Z8NXVYxRMoDadeioRs1O+Zp GjwA== X-Gm-Message-State: AOJu0YxfwzbNU1pZj4afbmSFTsIwSrHv3e1MsTcIhinPWV7s+G/TYy+3 2yYx9EPpyd+C0sWeygK1+EAjy/Dsk2tam5cNzrmlXw0yAbkKouQp/yReow== X-Google-Smtp-Source: AGHT+IGPwdlD7UZfKN2/CJKEl8kRTR0uHmacBH5AwIQrekcs5MX3d5ja4HhWaOAPF6ey+r5J7hz3gQ== X-Received: by 2002:a17:906:f5aa:b0:a58:8d22:91c8 with SMTP id cm42-20020a170906f5aa00b00a588d2291c8mr1868282ejd.45.1713958637694; Wed, 24 Apr 2024 04:37:17 -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 le23-20020a170906ae1700b00a4e4c944e77sm8235547ejb.40.2024.04.24.04.37.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 24 Apr 2024 04:37:17 -0700 (PDT) From: Max Filippov To: uclibc@uclibc.org Subject: [PATCH] Makerules: fix out-of-tree build error "Argument list too long" Date: Wed, 24 Apr 2024 04:36:55 -0700 Message-Id: <20240424113655.2382993-1-jcmvbkbc@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1713958638; x=1714563438; darn=uclibc.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=BYWFkV48eIr3NDvjEVhlWhDkTRuH+R6O26sngDyGU6R7PVDmoxYy44wCoqoQGIE9ek Eml3dGrPDQkOETFfGeAJVp715ydrMhQUs2X1MPdNWdG9cxedAttNKM6Q+aJcYDQb4juL zzgccnTf2+ammmtcG9hMAjeDQOpbU5qnJ2i8YqLxfPWeDFpua1iULh/5lL6X5OR+0Hfg 1a4Ey8PkDYzS628m7zUWurwAN/CA8cfiDyIWtrxE23ikYOuaRWyuMDbPxRmecS39TWdi +Rmyc3dbUXBxpedZRuIxtlW6h5WXN8mQ0TDqdr6mZ342oaOl8aORvkzdVuEMGmtpGtNQ SJuA== X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=gmail.com X-Mailman-Original-Authentication-Results: smtp4.osuosl.org; dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=BYWFkV48 X-BeenThere: uclibc@uclibc.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Discussion and development of uClibc \(the embedded C library\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: uclibc-bounces@uclibc.org Sender: "uClibc" 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