From unknown Fri Aug 15 15:58:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70410: Fwd: [PATCH] gotools: Workaround non-reproduceability of automake Resent-From: Eric Gallager Original-Sender: "Debbugs-submit" Resent-CC: bug-automake@gnu.org Resent-Date: Tue, 16 Apr 2024 00:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 70410 X-GNU-PR-Package: automake X-GNU-PR-Keywords: patch To: 70410@debbugs.gnu.org X-Debbugs-Original-To: bug-automake@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.17132258577523 (code B ref -1); Tue, 16 Apr 2024 00:05:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Apr 2024 00:04:17 +0000 Received: from localhost ([127.0.0.1]:40410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwWJ6-0001xH-Ms for submit@debbugs.gnu.org; Mon, 15 Apr 2024 20:04:17 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwWJ0-0001vB-TJ for submit@debbugs.gnu.org; Mon, 15 Apr 2024 20:04:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwWIi-0006Js-83 for bug-automake@gnu.org; Mon, 15 Apr 2024 20:03:52 -0400 Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rwWIg-0003JN-9o for bug-automake@gnu.org; Mon, 15 Apr 2024 20:03:51 -0400 Received: by mail-vs1-xe2a.google.com with SMTP id ada2fe7eead31-479d6ab7585so1822593137.1 for ; Mon, 15 Apr 2024 17:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gwmail.gwu.edu; s=google; t=1713225828; x=1713830628; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wY3MTNym7PORGX8yShm3dBvLvcHC8pkv18Uwi2C3KiI=; b=eQ1hzvXDDwLSDSRBd6FJhc6EWuLuukpfz1rA/SLEPkBp+COe6FDWLyBDBAcT+QrnnK ZOVoNsXG0DZxKwPEiGFC90a/Op/LZBQAhuhPw5pG8NexQxDrGJi3VBv1xa2Hl7O7PDmY IYvdBnZLIvFLXI2XH39r/0zH4h4mou/oSSN77qEjyU9/vIb2cF3Tepgp9VZ3SDaFGwTc wbaoV7r/4x+uHcPmVczgs2bVz6MByOrEg7XEcUOQL0lsFR9JaHay3Pz1b9WKdJgGRvck ufoj0kgn4h0HvJ8zb1IqT9HUKG6bNkkNpOiWnTkq/qGbwn5uOWeVbhahOKp9mqmjwheV 8q1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713225828; x=1713830628; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wY3MTNym7PORGX8yShm3dBvLvcHC8pkv18Uwi2C3KiI=; b=Ws0MRtOEcujgTNC3KGAiAcLdqI4hGVoGKQ6PZW9tzlOsVIKD+wvziMTt9zXVQEP0QA fRuPOKi/wkJrRqjirbCV/tLeTvFAFn8b5yqzCkfV8nNBkDnOd2aqXscsKhggfjGPkF9p 2mk8k2lWQGpD8/43gnDeEVeoDOvamFl9qOE6VrvgGgZw7sEqpA2zXA38iiz62I9W7hS7 SjpR0NamtIpV05xQdbRchkUuoMBfCuMLesxASWvJb9Fli+bXFo1LyIoUBensKm/hKXFy 7NBcGOI3PsJB6P1B4+3tOHew0jjIPOuOtcPSIdrFeMS8QrlB1wPJgyGfWb1L3Ab6R4w+ dr5Q== X-Gm-Message-State: AOJu0YweKK2Zh+1vzPc7S9WG1yZmXw79P2VHvP8xRPvQ+I0UcPfTtjJh feI4iXk62WhRwYSMeqGgexXDb6lab7qOgpSG2n7ibD0WIYwD0eBUvKeeznEkpJYceldkWR3AG/1 swrLOzOk2dWJVTEhklzTLjcyIa3ndTR09rlg8X/sVfl9xR9I= X-Google-Smtp-Source: AGHT+IE7RNn8QkQNwM+AYadKuw/7y0Uhw0wHABScox5C4Nqt7Lolx3DAUQlIBxodkwP+GA5k9caUot4l3SOfPm2r338= X-Received: by 2002:a67:f996:0:b0:479:f418:dc7a with SMTP id b22-20020a67f996000000b00479f418dc7amr1078733vsq.3.1713225827797; Mon, 15 Apr 2024 17:03:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Eric Gallager Date: Mon, 15 Apr 2024 20:03:36 -0400 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=egall@gwmail.gwu.edu; helo=mail-vs1-xe2a.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) GCC developers have recently found a source of non-determinism in automake; this is bad for reproducible builds: ---------- Forwarded message --------- From: Jakub Jelinek Date: Mon, Apr 15, 2024 at 8:43=E2=80=AFAM Subject: [PATCH] gotools: Workaround non-reproduceability of automake To: Ian Lance Taylor , Mark Wielaard Cc: Hi! The regen bot recently flagged a difference in gotools/Makefile.in. Trying it locally, it seems pretty random for i in `seq 20`; do PATH=3D~/automake-1.15.1/bin:~/autoconf-2.69/bin:$PATH automake; echo -n `git diff Makefile.in | wc -l`" "; done; echo; for i in `seq 20`; do PATH=3D~/automake-1.15.1/bin:~/autoconf-2.69/bin:$PATH setarch x86_64 -R automake; echo -n `git diff Makefile.in | wc -l`" "; done; echo; 14 14 14 0 0 0 14 0 14 0 14 14 14 14 0 14 14 0 0 0 14 0 14 0 0 14 14 14 0 14 14 0 0 14 14 14 0 0 0 14 The 14 line git diff is diff --git a/gotools/Makefile.in b/gotools/Makefile.in index 36c2ec2abd3..f40883c39be 100644 --- a/gotools/Makefile.in +++ b/gotools/Makefile.in @@ -704,8 +704,8 @@ distclean-generic: maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -@NATIVE_FALSE@install-exec-local: @NATIVE_FALSE@uninstall-local: +@NATIVE_FALSE@install-exec-local: clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \ so whether it is @NATIVE_FALSE@install-exec-local: @NATIVE_FALSE@uninstall-local: or @NATIVE_FALSE@uninstall-local: @NATIVE_FALSE@install-exec-local: depends on some hash table traversal or what. I'm not familiar with automake/m4 enough to debug that, so I'm instead offering a workaround, with this patch the order is deterministic. 2024-04-15 Jakub Jelinek * Makefile.am (install-exec-local, uninstall-local): Add goals on the else branch of if NATIVE to ensure reproducibility. * Makefile.in: Regenerate. --- gotools/Makefile.am.jj 2023-11-04 09:02:35.802995614 +0100 +++ gotools/Makefile.am 2024-04-15 14:30:03.647171636 +0200 @@ -366,5 +366,7 @@ else # only do this if such a compiler is available. We also need to get # the right values for GOARCH and GOOS in the default build context in # the go/build package. Figure this out later. +install-exec-local: +uninstall-local: endif --- gotools/Makefile.in.jj 2023-11-03 17:08:46.000439645 +0100 +++ gotools/Makefile.in 2024-04-15 14:31:32.270040117 +0200 @@ -704,8 +704,6 @@ distclean-generic: maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -@NATIVE_FALSE@install-exec-local: -@NATIVE_FALSE@uninstall-local: clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \ @@ -1035,6 +1033,8 @@ mostlyclean-local: # only do this if such a compiler is available. We also need to get # the right values for GOARCH and GOOS in the default build context in # the go/build package. Figure this out later. +@NATIVE_FALSE@install-exec-local: +@NATIVE_FALSE@uninstall-local: # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. Jakub From unknown Fri Aug 15 15:58:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70410: Fwd: [PATCH] gotools: Workaround non-reproduceability of automake References: Resent-From: Karl Berry Original-Sender: "Debbugs-submit" Resent-CC: bug-automake@gnu.org Resent-Date: Wed, 17 Apr 2024 15:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70410 X-GNU-PR-Package: automake X-GNU-PR-Keywords: patch To: egall@gwmail.gwu.edu Cc: 70410@debbugs.gnu.org Received: via spool by 70410-submit@debbugs.gnu.org id=B70410.171336937322617 (code B ref 70410); Wed, 17 Apr 2024 15:57:02 +0000 Received: (at 70410) by debbugs.gnu.org; 17 Apr 2024 15:56:13 +0000 Received: from localhost ([127.0.0.1]:46659 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx7dr-0005s4-2E for submit@debbugs.gnu.org; Wed, 17 Apr 2024 11:56:12 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:39140 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx7dl-0005qz-G4 for 70410@debbugs.gnu.org; Wed, 17 Apr 2024 11:56:08 -0400 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 43HFtpAH014051 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 17 Apr 2024 09:55:51 -0600 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 43HFtpSD014050; Wed, 17 Apr 2024 09:55:51 -0600 Date: Wed, 17 Apr 2024 09:55:51 -0600 Message-Id: <202404171555.43HFtpSD014050@freefriends.org> From: Karl Berry In-Reply-To: X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) so whether it is @NATIVE_FALSE@install-exec-local: @NATIVE_FALSE@uninstall-local: or @NATIVE_FALSE@uninstall-local: @NATIVE_FALSE@install-exec-local: depends on some hash table traversal or what. Thanks for the report. Any chance of a Makefile.am that can reproduce the problem? I wonder if it's related to the @NATIVE_FALSE@ somehow. Looking at automake.in, it's not obvious to me where a list is failed to be sorted. Those -local targets aren't generated by automake itself, so far as I can see. --thanks, karl. From unknown Fri Aug 15 15:58:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70410: Fwd: [PATCH] gotools: Workaround non-reproduceability of automake Resent-From: Eric Gallager Original-Sender: "Debbugs-submit" Resent-CC: bug-automake@gnu.org Resent-Date: Wed, 17 Apr 2024 17:14:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70410 X-GNU-PR-Package: automake X-GNU-PR-Keywords: patch To: Karl Berry Cc: 70410@debbugs.gnu.org Received: via spool by 70410-submit@debbugs.gnu.org id=B70410.17133740052931 (code B ref 70410); Wed, 17 Apr 2024 17:14:01 +0000 Received: (at 70410) by debbugs.gnu.org; 17 Apr 2024 17:13:25 +0000 Received: from localhost ([127.0.0.1]:47015 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx8qZ-0000l1-53 for submit@debbugs.gnu.org; Wed, 17 Apr 2024 13:13:25 -0400 Received: from mail-vk1-xa2d.google.com ([2607:f8b0:4864:20::a2d]:56474) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx8qW-0000kL-1C for 70410@debbugs.gnu.org; Wed, 17 Apr 2024 13:13:22 -0400 Received: by mail-vk1-xa2d.google.com with SMTP id 71dfb90a1353d-4dae8b2d29bso1866104e0c.0 for <70410@debbugs.gnu.org>; Wed, 17 Apr 2024 10:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gwmail.gwu.edu; s=google; t=1713373981; x=1713978781; darn=debbugs.gnu.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Ysm7Dx9m3p3eJEGvtPMRRHjR7Y8iB6FSfTBPo0mFV7E=; b=RujGQwIC831dr42Do8wCiUn8CEezIHNo6pxARP6+X3hAhzAh9NApDFx+s19E+MOuY4 2YmQKM0xCQD8J+2aTY8gJ8cmwojgdBcs9ps+tuQip+Fzzr88EKVM7Yzsw2/Xq9DfZldB l9yHwisg7eqHDbuLPjsg7rBnZYKtsX7mVm1mmH8Plh5MjemCC2X2SzXyHV2oTTra72av Z1LK/6w1gsr/99fTodJYVqSNun4Z3vl401PzM/hOs96qZazIDQoeyeOEZVLivj/SV96v PaQKZ5WgYQXbN6gcQ+oPmgmAhP54QQ0c8hucY8M5j93pJc3aRQxgwygwYpCAPjvHfJZ1 1iDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713373981; x=1713978781; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ysm7Dx9m3p3eJEGvtPMRRHjR7Y8iB6FSfTBPo0mFV7E=; b=t7khgt7XPLad1AVEHvbZ1AhdNEKKbuMQONefapX05fXflpZuYDQu/8v7C2z84mwpt9 gF1fl2C2qORtOYWLCcsIcjOz7xU0vcpg3CNtCuNXSVbgRy2mc+0uvvoJMk6n3a3hdlne OkRID+wdkrul7wUShtbxphwHguiGTUicdRmDUx296MTjtdh1Yhukddnm71gqIIFfCpNJ RNXYyP80wGHFZnicV48I/eOV/unOYZyVuvgJkzCzPCP5OXjGLB/LwegL1o1ezHlazact OfGDXUCbFBV7MWjMEQYLcwWoG4FIV4YGVvCLutEn9Ox0KH44GfRe0XllLfZMUVUQXGEc ixcQ== X-Gm-Message-State: AOJu0Yw/PhTj3V/f/QWx4dBcvoYx37TyCEvp9IOTQtnrvGXX8XoXz8ed t96YNLqolRjYh5xoemHIO72GqndcSwuArt51zDVO8yOs2mQP/7DisR4GkcW/8wtz5lQDxf6y9va Fhnp7J8uZBSJqH+5T8YWFdqN5PJNzK512A2WseqCARJPCk0Qlyg== X-Google-Smtp-Source: AGHT+IFmzY147k/t84Gf8zdcwovgE1oevSBN8SpaWY7OXwPFwlUTZ5NZHZKdat9eoW0GcmVAUOvbd0swP5Cxzb23l38= X-Received: by 2002:a05:6122:2505:b0:4d3:cff6:79f0 with SMTP id cl5-20020a056122250500b004d3cff679f0mr334582vkb.4.1713373980988; Wed, 17 Apr 2024 10:13:00 -0700 (PDT) MIME-Version: 1.0 References: <202404171555.43HFtpSD014050@freefriends.org> In-Reply-To: <202404171555.43HFtpSD014050@freefriends.org> From: Eric Gallager Date: Wed, 17 Apr 2024 13:12:49 -0400 Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Makefile.am in question is from the gotools subdirectory of GCC: https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dblob;f=3Dgotools/Makefile.am;h=3D8= 0b21847117fb1b685a677725826f4caba4e759e;hb=3DHEAD Note that the original reporter, Jakub Jelinek, has said that this might potentially be due to the use of an old version, so this might not actually be a current bug after all: https://gcc.gnu.org/pipermail/gcc-patches/2024-April/649576.html On Wed, Apr 17, 2024 at 11:56=E2=80=AFAM Karl Berry = wrote: > > so whether it is > @NATIVE_FALSE@install-exec-local: > @NATIVE_FALSE@uninstall-local: > or > @NATIVE_FALSE@uninstall-local: > @NATIVE_FALSE@install-exec-local: > depends on some hash table traversal or what. > > Thanks for the report. Any chance of a Makefile.am that can reproduce > the problem? I wonder if it's related to the @NATIVE_FALSE@ somehow. > > Looking at automake.in, it's not obvious to me where a list is failed to > be sorted. Those -local targets aren't generated by automake itself, so > far as I can see. --thanks, karl. > From unknown Fri Aug 15 15:58:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70410: Fwd: [PATCH] gotools: Workaround non-reproduceability of automake Resent-From: Nick Bowler Original-Sender: "Debbugs-submit" Resent-CC: bug-automake@gnu.org Resent-Date: Wed, 17 Apr 2024 17:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70410 X-GNU-PR-Package: automake X-GNU-PR-Keywords: patch To: Karl Berry Cc: egall@gwmail.gwu.edu, 70410@debbugs.gnu.org Received: via spool by 70410-submit@debbugs.gnu.org id=B70410.17133748458934 (code B ref 70410); Wed, 17 Apr 2024 17:28:02 +0000 Received: (at 70410) by debbugs.gnu.org; 17 Apr 2024 17:27:25 +0000 Received: from localhost ([127.0.0.1]:47070 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx948-0002Jw-5h for submit@debbugs.gnu.org; Wed, 17 Apr 2024 13:27:25 -0400 Received: from mail-oo1-xc36.google.com ([2607:f8b0:4864:20::c36]:47347) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rx944-0002J6-GE for 70410@debbugs.gnu.org; Wed, 17 Apr 2024 13:27:22 -0400 Received: by mail-oo1-xc36.google.com with SMTP id 006d021491bc7-5aa4204bacdso4178485eaf.2 for <70410@debbugs.gnu.org>; Wed, 17 Apr 2024 10:27:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=draconx-ca.20230601.gappssmtp.com; s=20230601; t=1713374821; x=1713979621; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=tyXfKjruQeiIaM+q5RPgyGqaxP41L8XCdC0TE9T54Uo=; b=juRFcib440jOUNXOGG1HidMQ39/0Zglw0TxYfOJWjqXzo45naLuSKtzQ9h7uTnC/hf uOwv/zYvPLEo4Ku85sIs3Z7CqpIcOMxe1llJ5vx5v74/eghNRX36inAn4geX36Y8EVIT ObZsSSEJm7RQuRfz5W7EE7HtghG1R22VAKBreYK0fuHiCXx9Uv8hMf2bXGzzGYqnyuZS DDyTbREh+tIazzVPZdnbolSKRLk6K8HCVls26jCztq9yZcPiFAKk8Xga7NffIazCfD94 FmANDTODciLgj50t8n1hzvFswra8tvuIt3UFxzf5slqHIAqFWX88+ZZAA+YA1VlyaaC2 vWIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713374821; x=1713979621; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=tyXfKjruQeiIaM+q5RPgyGqaxP41L8XCdC0TE9T54Uo=; b=oQ5MBND3K1Fo57g46M1JQ9Gft4YP1DqGQcFbJH3psxiDPMxp4OuLZnc2hoCCGw/1Yv 351g8j0usEBgHsErQN1Ds0tH59LaZXS2c8XQ2UAXKG3HH8QBpdpxBNm1Byp379xpNOh/ bWD42LXEHjX2Tdx+yXkhLvMUxEtfKaM8Ow0Ysu/9wzkArYHv3ZDEqEDrwF1x8sAp9iKF sSoEeSrh2lXkM6xKiJOpO11mjAwuYeiwm2PGITAwmHwtYv0dXb5jwV+UebO+PtmP2aYl qEu5P94v/47SVzDk+lzix9NM3GNMSuOvVwUn9sXKYw38FW5TEJo+K8HT7JYnd4Bl4KEt S6YQ== X-Gm-Message-State: AOJu0Yzmd513AMqKnMW5rFy8qnh7/L6LVP4MkUkcuogbRorOMOwukP0g svNf2Ec6XNqtvU9v6RiVHs0xm90hcJuT5IkKXajWEPK23yYeiHoFrOz87YxmolY= X-Google-Smtp-Source: AGHT+IHJy0G50OOR39ugc+Bs4NaHF8NQIUzafPJO7Yfr79lyK5jlD7hlINbDSw4PSjG4M0vnWYo0Qg== X-Received: by 2002:a05:6358:9814:b0:183:f7cb:af75 with SMTP id y20-20020a056358981400b00183f7cbaf75mr18323076rwa.32.1713374821211; Wed, 17 Apr 2024 10:27:01 -0700 (PDT) Received: from [192.168.0.50] (dhcp-24-53-241-2.cable.user.start.ca. [24.53.241.2]) by smtp.gmail.com with ESMTPSA id e15-20020ac8490f000000b00434d86fb403sm8257267qtq.86.2024.04.17.10.27.00 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 17 Apr 2024 10:27:00 -0700 (PDT) Message-ID: Date: Wed, 17 Apr 2024 13:26:59 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US References: <202404171555.43HFtpSD014050@freefriends.org> From: Nick Bowler In-Reply-To: <202404171555.43HFtpSD014050@freefriends.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) On 2024-04-17 11:55, Karl Berry wrote: > so whether it is > @NATIVE_FALSE@install-exec-local: > @NATIVE_FALSE@uninstall-local: > or > @NATIVE_FALSE@uninstall-local: > @NATIVE_FALSE@install-exec-local: > depends on some hash table traversal or what. > > Thanks for the report. Any chance of a Makefile.am that can reproduce > the problem? I wonder if it's related to the @NATIVE_FALSE@ somehow. > > Looking at automake.in, it's not obvious to me where a list is failed to > be sorted. Those -local targets aren't generated by automake itself, so > far as I can see. --thanks, karl. Code like the above is generated by Automake when -hook or -local targets are defined within the "true" side of an Automake conditional, but not in the "false" side, for example: % cat >configure.ac <<'EOF' AC_INIT([test], [0]) AM_INIT_AUTOMAKE([foreign]) AM_CONDITIONAL([NATIVE], [:]) AC_CONFIG_FILES([Makefile]) AC_OUTPUT EOF % cat >Makefile.am <<'EOF' if NATIVE install-data-local: ; install-exec-local: ; uninstall-local: ; dist-hook: ; all-local: ; endif EOF % autoreconf -is % grep NATIVE_FALSE Makefile.in @NATIVE_FALSE@dist-hook: @NATIVE_FALSE@all-local: @NATIVE_FALSE@install-data-local: @NATIVE_FALSE@install-exec-local: @NATIVE_FALSE@uninstall-local: With an older Automake (1.12.6), the order of these generated targets is easily seen to be inconsistent. But with a current version of Automake (1.16.5) the order seems to be always the same. So I wonder if this is reporting an issue that was long ago already fixed in Automake... Cheers, Nick From unknown Fri Aug 15 15:58:53 2025 X-Loop: help-debbugs@gnu.org Subject: bug#70410: Fwd: [PATCH] gotools: Workaround non-reproduceability of automake References: Resent-From: Karl Berry Original-Sender: "Debbugs-submit" Resent-CC: bug-automake@gnu.org Resent-Date: Thu, 18 Apr 2024 21:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 70410 X-GNU-PR-Package: automake X-GNU-PR-Keywords: patch To: nbowler@draconx.ca Cc: egall@gwmail.gwu.edu, 70410@debbugs.gnu.org Received: via spool by 70410-submit@debbugs.gnu.org id=B70410.171347431911405 (code B ref 70410); Thu, 18 Apr 2024 21:06:02 +0000 Received: (at 70410) by debbugs.gnu.org; 18 Apr 2024 21:05:19 +0000 Received: from localhost ([127.0.0.1]:54678 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rxYwZ-0002xt-2F for submit@debbugs.gnu.org; Thu, 18 Apr 2024 17:05:19 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:46336 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rxYwO-0002wV-M7; Thu, 18 Apr 2024 17:05:09 -0400 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 43IL4rdd006995 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Apr 2024 15:04:53 -0600 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 43IL4qs4006994; Thu, 18 Apr 2024 15:04:52 -0600 Date: Thu, 18 Apr 2024 15:04:52 -0600 Message-Id: <202404182104.43IL4qs4006994@freefriends.org> From: Karl Berry In-Reply-To: X-Spam-Score: -0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Per https://gcc.gnu.org/pipermail/gcc-patches/2024-April/649576.html this was fixed in https://bugs.gnu.org/46744. As I understand it. Closing. From unknown Fri Aug 15 15:58:53 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Eric Gallager Subject: bug#70410: closed (Re: bug#70410: Fwd: [PATCH] gotools: Workaround non-reproduceability of automake) Message-ID: References: <202404182104.43IL4qs4006994@freefriends.org> X-Gnu-PR-Message: they-closed 70410 X-Gnu-PR-Package: automake X-Gnu-PR-Keywords: patch Reply-To: 70410@debbugs.gnu.org Date: Thu, 18 Apr 2024 21:06:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1713474363-11705-1" This is a multi-part message in MIME format... ------------=_1713474363-11705-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #70410: Fwd: [PATCH] gotools: Workaround non-reproduceability of automake which was filed against the automake package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 70410@debbugs.gnu.org. --=20 70410: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D70410 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1713474363-11705-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 70410-done) by debbugs.gnu.org; 18 Apr 2024 21:05:12 +0000 Received: from localhost ([127.0.0.1]:54676 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rxYwR-0002x6-6g for submit@debbugs.gnu.org; Thu, 18 Apr 2024 17:05:12 -0400 Received: from frenzy.freefriends.org ([198.99.81.75]:46336 helo=freefriends.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rxYwO-0002wV-M7; Thu, 18 Apr 2024 17:05:09 -0400 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (localhost [127.0.0.1]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 43IL4rdd006995 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 18 Apr 2024 15:04:53 -0600 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 43IL4qs4006994; Thu, 18 Apr 2024 15:04:52 -0600 Date: Thu, 18 Apr 2024 15:04:52 -0600 Message-Id: <202404182104.43IL4qs4006994@freefriends.org> From: Karl Berry To: nbowler@draconx.ca Subject: Re: bug#70410: Fwd: [PATCH] gotools: Workaround non-reproduceability of automake In-Reply-To: X-Spam-Score: -0.0 (/) X-Debbugs-Envelope-To: 70410-done Cc: egall@gwmail.gwu.edu, 70410@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Per https://gcc.gnu.org/pipermail/gcc-patches/2024-April/649576.html this was fixed in https://bugs.gnu.org/46744. As I understand it. Closing. ------------=_1713474363-11705-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Apr 2024 00:04:17 +0000 Received: from localhost ([127.0.0.1]:40410 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwWJ6-0001xH-Ms for submit@debbugs.gnu.org; Mon, 15 Apr 2024 20:04:17 -0400 Received: from lists.gnu.org ([2001:470:142::17]:37864) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rwWJ0-0001vB-TJ for submit@debbugs.gnu.org; Mon, 15 Apr 2024 20:04:14 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rwWIi-0006Js-83 for bug-automake@gnu.org; Mon, 15 Apr 2024 20:03:52 -0400 Received: from mail-vs1-xe2a.google.com ([2607:f8b0:4864:20::e2a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rwWIg-0003JN-9o for bug-automake@gnu.org; Mon, 15 Apr 2024 20:03:51 -0400 Received: by mail-vs1-xe2a.google.com with SMTP id ada2fe7eead31-479d6ab7585so1822593137.1 for ; Mon, 15 Apr 2024 17:03:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gwmail.gwu.edu; s=google; t=1713225828; x=1713830628; darn=gnu.org; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=wY3MTNym7PORGX8yShm3dBvLvcHC8pkv18Uwi2C3KiI=; b=eQ1hzvXDDwLSDSRBd6FJhc6EWuLuukpfz1rA/SLEPkBp+COe6FDWLyBDBAcT+QrnnK ZOVoNsXG0DZxKwPEiGFC90a/Op/LZBQAhuhPw5pG8NexQxDrGJi3VBv1xa2Hl7O7PDmY IYvdBnZLIvFLXI2XH39r/0zH4h4mou/oSSN77qEjyU9/vIb2cF3Tepgp9VZ3SDaFGwTc wbaoV7r/4x+uHcPmVczgs2bVz6MByOrEg7XEcUOQL0lsFR9JaHay3Pz1b9WKdJgGRvck ufoj0kgn4h0HvJ8zb1IqT9HUKG6bNkkNpOiWnTkq/qGbwn5uOWeVbhahOKp9mqmjwheV 8q1A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713225828; x=1713830628; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wY3MTNym7PORGX8yShm3dBvLvcHC8pkv18Uwi2C3KiI=; b=Ws0MRtOEcujgTNC3KGAiAcLdqI4hGVoGKQ6PZW9tzlOsVIKD+wvziMTt9zXVQEP0QA fRuPOKi/wkJrRqjirbCV/tLeTvFAFn8b5yqzCkfV8nNBkDnOd2aqXscsKhggfjGPkF9p 2mk8k2lWQGpD8/43gnDeEVeoDOvamFl9qOE6VrvgGgZw7sEqpA2zXA38iiz62I9W7hS7 SjpR0NamtIpV05xQdbRchkUuoMBfCuMLesxASWvJb9Fli+bXFo1LyIoUBensKm/hKXFy 7NBcGOI3PsJB6P1B4+3tOHew0jjIPOuOtcPSIdrFeMS8QrlB1wPJgyGfWb1L3Ab6R4w+ dr5Q== X-Gm-Message-State: AOJu0YweKK2Zh+1vzPc7S9WG1yZmXw79P2VHvP8xRPvQ+I0UcPfTtjJh feI4iXk62WhRwYSMeqGgexXDb6lab7qOgpSG2n7ibD0WIYwD0eBUvKeeznEkpJYceldkWR3AG/1 swrLOzOk2dWJVTEhklzTLjcyIa3ndTR09rlg8X/sVfl9xR9I= X-Google-Smtp-Source: AGHT+IE7RNn8QkQNwM+AYadKuw/7y0Uhw0wHABScox5C4Nqt7Lolx3DAUQlIBxodkwP+GA5k9caUot4l3SOfPm2r338= X-Received: by 2002:a67:f996:0:b0:479:f418:dc7a with SMTP id b22-20020a67f996000000b00479f418dc7amr1078733vsq.3.1713225827797; Mon, 15 Apr 2024 17:03:47 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Eric Gallager Date: Mon, 15 Apr 2024 20:03:36 -0400 Message-ID: Subject: Fwd: [PATCH] gotools: Workaround non-reproduceability of automake To: bug-automake@gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::e2a; envelope-from=egall@gwmail.gwu.edu; helo=mail-vs1-xe2a.google.com X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.7 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.3 (/) GCC developers have recently found a source of non-determinism in automake; this is bad for reproducible builds: ---------- Forwarded message --------- From: Jakub Jelinek Date: Mon, Apr 15, 2024 at 8:43=E2=80=AFAM Subject: [PATCH] gotools: Workaround non-reproduceability of automake To: Ian Lance Taylor , Mark Wielaard Cc: Hi! The regen bot recently flagged a difference in gotools/Makefile.in. Trying it locally, it seems pretty random for i in `seq 20`; do PATH=3D~/automake-1.15.1/bin:~/autoconf-2.69/bin:$PATH automake; echo -n `git diff Makefile.in | wc -l`" "; done; echo; for i in `seq 20`; do PATH=3D~/automake-1.15.1/bin:~/autoconf-2.69/bin:$PATH setarch x86_64 -R automake; echo -n `git diff Makefile.in | wc -l`" "; done; echo; 14 14 14 0 0 0 14 0 14 0 14 14 14 14 0 14 14 0 0 0 14 0 14 0 0 14 14 14 0 14 14 0 0 14 14 14 0 0 0 14 The 14 line git diff is diff --git a/gotools/Makefile.in b/gotools/Makefile.in index 36c2ec2abd3..f40883c39be 100644 --- a/gotools/Makefile.in +++ b/gotools/Makefile.in @@ -704,8 +704,8 @@ distclean-generic: maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -@NATIVE_FALSE@install-exec-local: @NATIVE_FALSE@uninstall-local: +@NATIVE_FALSE@install-exec-local: clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \ so whether it is @NATIVE_FALSE@install-exec-local: @NATIVE_FALSE@uninstall-local: or @NATIVE_FALSE@uninstall-local: @NATIVE_FALSE@install-exec-local: depends on some hash table traversal or what. I'm not familiar with automake/m4 enough to debug that, so I'm instead offering a workaround, with this patch the order is deterministic. 2024-04-15 Jakub Jelinek * Makefile.am (install-exec-local, uninstall-local): Add goals on the else branch of if NATIVE to ensure reproducibility. * Makefile.in: Regenerate. --- gotools/Makefile.am.jj 2023-11-04 09:02:35.802995614 +0100 +++ gotools/Makefile.am 2024-04-15 14:30:03.647171636 +0200 @@ -366,5 +366,7 @@ else # only do this if such a compiler is available. We also need to get # the right values for GOARCH and GOOS in the default build context in # the go/build package. Figure this out later. +install-exec-local: +uninstall-local: endif --- gotools/Makefile.in.jj 2023-11-03 17:08:46.000439645 +0100 +++ gotools/Makefile.in 2024-04-15 14:31:32.270040117 +0200 @@ -704,8 +704,6 @@ distclean-generic: maintainer-clean-generic: @echo "This command is intended for maintainers to use" @echo "it deletes files that may require special tools to rebuild." -@NATIVE_FALSE@install-exec-local: -@NATIVE_FALSE@uninstall-local: clean: clean-am clean-am: clean-binPROGRAMS clean-generic clean-noinstPROGRAMS \ @@ -1035,6 +1033,8 @@ mostlyclean-local: # only do this if such a compiler is available. We also need to get # the right values for GOARCH and GOOS in the default build context in # the go/build package. Figure this out later. +@NATIVE_FALSE@install-exec-local: +@NATIVE_FALSE@uninstall-local: # Tell versions [3.59,3.63) of GNU make to not export all variables. # Otherwise a system limit (for SysV at least) may be exceeded. Jakub ------------=_1713474363-11705-1--