From patchwork Wed Apr 27 14:35:42 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 93066 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id A505E1007D7 for ; Thu, 28 Apr 2011 00:36:12 +1000 (EST) Received: (qmail 21424 invoked by alias); 27 Apr 2011 14:36:09 -0000 Received: (qmail 21293 invoked by uid 22791); 27 Apr 2011 14:36:08 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from fencepost.gnu.org (HELO fencepost.gnu.org) (140.186.70.10) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 27 Apr 2011 14:35:50 +0000 Received: from eggs.gnu.org ([140.186.70.92]:52722) by fencepost.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1QF5qH-00081D-Q8 for gcc-patches@gnu.org; Wed, 27 Apr 2011 10:35:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QF5qD-0007r2-NZ for gcc-patches@gnu.org; Wed, 27 Apr 2011 10:35:49 -0400 Received: from qmta01.emeryville.ca.mail.comcast.net ([76.96.30.16]:45442) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QF5qD-0007qq-Fc for gcc-patches@gnu.org; Wed, 27 Apr 2011 10:35:45 -0400 Received: from omta20.emeryville.ca.mail.comcast.net ([76.96.30.87]) by qmta01.emeryville.ca.mail.comcast.net with comcast id ceTR1g0021smiN4A1ebkK3; Wed, 27 Apr 2011 14:35:44 +0000 Received: from up.mrs.kithrup.com ([24.4.193.8]) by omta20.emeryville.ca.mail.comcast.net with comcast id cebi1g00Q0BKwT48gebiqi; Wed, 27 Apr 2011 14:35:43 +0000 Subject: Re: (build) Patch to fix cp/cfns.gperf building issues Mime-Version: 1.0 (Apple Message framework v1084) From: Mike Stump In-Reply-To: <514AA7B6-0B41-42BD-B39B-71E9434E152D@comcast.net> Date: Wed, 27 Apr 2011 07:35:42 -0700 Cc: Nicola Pero , gcc-patches@gnu.org Message-Id: <71975F68-DA7A-43EF-9525-922784A470F4@comcast.net> References: <1303485121.088925951@www2.webmail.us> <514AA7B6-0B41-42BD-B39B-71E9434E152D@comcast.net> To: "Joseph S. Myers" X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 76.96.30.16 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org On Apr 22, 2011, at 3:54 PM, Mike Stump wrote: > On Apr 22, 2011, at 8:12 AM, Nicola Pero wrote: >> This patch fixes a building annoyance that I had when building on a new >> machine (an x86_64 gnu/linux box). >> >> The building failed. It was down to two problems: >> >> * due to how I got a copy of the GCC source code on the machine, the timestamp >> of each source file was the timestamp of when it was copied to the machine (ie, >> a random timestamp from the point of view of the building system). This caused >> the build system to decide that $(srcdir)/cp/cfns.h needed to be rebuilt from >> $(srcdir)/cp/cfns.gperf (it didn't, obviously; the source code was trunk with >> no changes). > Ok? Ping? 2011-04-22 Mike Stump * Make-lang.in: Only run gperf in maintainer mode. Index: cp/Make-lang.in =================================================================== --- cp/Make-lang.in (revision 172670) +++ cp/Make-lang.in (working copy) @@ -105,7 +105,10 @@ cc1plus$(exeext): $(CXX_OBJS) cc1plus-ch $(CXX_OBJS) cc1plus-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS) # Special build rules. +ifneq ($(MAINT),) $(srcdir)/cp/cfns.h: $(srcdir)/cp/cfns.gperf +endif +$(srcdir)/cp/cfns.h: gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L ANSI-C \ $(srcdir)/cp/cfns.gperf > $(srcdir)/cp/cfns.h