From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id F1F303858D39; Wed, 4 Jan 2023 18:08:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F1F303858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1672855681; bh=TdGVsOPH8NPa4xMdaPZg50z41jdERd1R/ZSUsvOOjis=; h=From:To:Subject:Date:In-Reply-To:References:From; b=noQA27C2TKgheNmXFGfGVbGw35Pe0zDtmXABA/CR5l4sbnBvFTh6TyZl5CjxwZF97 9fAlcCaYkhMWsFGU0kFI9WGuw3x8Y++Etx4sFTJMMMfe3ReaO/bCR8nAinBXzscccp WUq3Dc8vsqZ0+d4eUYEMmi0Bk7jQETRKPoCt4iy0= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/108287] AVR build: gcc/config/avr/t-avr tries to edit the source tree Date: Wed, 04 Jan 2023 18:08:01 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.2.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108287 --- Comment #1 from Andrew Pinski --- The best fix is do something similar to aarch64 in config/aarch64/t-aarch64: $(srcdir)/config/aarch64/aarch64-tune.md: s-aarch64-tune-md; @true s-aarch64-tune-md: $(srcdir)/config/aarch64/gentune.sh \ $(srcdir)/config/aarch64/aarch64-cores.def $(SHELL) $(srcdir)/config/aarch64/gentune.sh \ $(srcdir)/config/aarch64/aarch64-cores.def > \ tmp-aarch64-tune.md ifneq ($(strip $(ENABLE_MAINTAINER_RULES)),) $(SHELL) $(srcdir)/../move-if-change tmp-aarch64-tune.md \ $(srcdir)/config/aarch64/aarch64-tune.md else @if ! cmp -s tmp-aarch64-tune.md \ $(srcdir)/config/aarch64/aarch64-tune.md; then \ echo "aarch64-tune.md has changed; either"; \ echo "configure with --enable-maintainer-mode"; \ echo "or copy tmp-aarch64-tune.md to $(srcdir)/config/aarch64/aarch64-tune.md"; \ exit 1; \ fi endif $(STAMP) s-aarch64-tune-md I suspect the issue is rather the timestamp on the files is incorrect causi= ng the trying of generating of the file.=