From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 887 invoked by alias); 10 Dec 2012 20:41:38 -0000 Received: (qmail 32600 invoked by uid 48); 10 Dec 2012 20:41:16 -0000 From: "gjl at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/55243] STAMP variable is not defined in t-avr Date: Mon, 10 Dec 2012 20:41:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: gjl at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg01039.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55243 --- Comment #18 from Georg-Johann Lay 2012-12-10 20:41:15 UTC --- (In reply to comment #16) >>> So t-multilib is autogenerated in the source tree during the build??? >> >> Jepp. Top $(srcdir)/gcc/config/avr/t-multilib reads: >> >> >> # Auto-generated Makefile Snip >> # Generated by : ./gcc/config/avr/genmultilib.awk >> # Generated from : ./gcc/config/avr/avr-mcus.def >> # Used by : tmake_file from Makefile and genmultilib > > But this is a no-no, the compiler should be buildable with read-only sources > once it is packaged in the release tarballs. It works with read-only sources, provided everything is consistent. Or are you saying that a t-snip must not use $(STAMP)? Actually, the PR boils down to the fact the STAMP is not defined, I am nut sure if the compiler is supposed to build without STAMP. >> Rationale is that avr-gcc supports an, IMHO, insane number of -mmcu=. >> In order to keep various parts of the compiler in sync, some bits are >> auto-generated, amongst them documentation, t-multilib and .opt parts. >> >> Procedure is a move-if-change scheme, i.e. the auto-generated files are in the >> repository and the procedure to build them is similar to building configure >> from configure.ac and then putting both configure.ac /and/ configure into the >> repo. > > Building configure from configure.c isn't done at build time. > > Either you generate t-multilib like configure and you can put it in $(srcdir) > or you generate it at build time and you must put it in $(builddir). Is basically follows an idea introduced with genopt.sh in http://gcc.gnu.org/viewcvs?view=revision&revision=175248 Notice how t-avr builds avr-tables.opt, and that the latter is added to the repo.