From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22042 invoked by alias); 11 Jan 2011 10:13:48 -0000 Received: (qmail 22034 invoked by uid 22791); 11 Jan 2011 10:13:47 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST X-Spam-Check-By: sourceware.org Received: from mail-ww0-f51.google.com (HELO mail-ww0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 11 Jan 2011 10:13:43 +0000 Received: by wwe15 with SMTP id 15so20109710wwe.8 for ; Tue, 11 Jan 2011 02:13:40 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.184.66 with SMTP id r44mr2750003wem.51.1294740820775; Tue, 11 Jan 2011 02:13:40 -0800 (PST) Received: by 10.216.160.131 with HTTP; Tue, 11 Jan 2011 02:13:40 -0800 (PST) In-Reply-To: References: Date: Tue, 11 Jan 2011 10:13:00 -0000 Message-ID: Subject: Re: Using automake to change gcc build From: Jonathan Wakely To: Amittai Aviram Cc: gcc-help@gcc.gnu.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2011-01/txt/msg00122.txt.bz2 On 11 January 2011 07:17, Amittai Aviram wrote: > I want to add a few files to the gcc source tree and build and test the r= esulting gcc, but I am having trouble finding my way around the Automake sy= stem. > > For example, one of the files I want to add is a local (altered) version = of malloc.c. =A0So I added "malloc.c" here: > > libgomp_la_SOURCES =3D alloc.c barrier.c critical.c env.c error.c iter.c \ > =A0 =A0 =A0 =A0iter_ull.c loop.c loop_ull.c malloc.c ordered.c parallel.c= sections.c \ > =A0 =A0 =A0 =A0single.c task.c team.c work.c lock.c mutex.c proc.c sem.c = bar.c \ > =A0 =A0 =A0 =A0ptrlock.c time.c fortran.c affinity.c > > Then I ran automake in order to produce (I thought) the corresponding Mak= efile.in, and got this error: > > $ automake > aclocal.m4:16: warning: this file was generated for autoconf 2.64. > You have another version of autoconf. =A0It may work, but is not guarante= ed to. > If you have problems, you may need to regenerate the build system entirel= y. > To do so, use the procedure documented by the package, typically `autorec= onf'. > configure.ac:5: error: Please use exactly Autoconf 2.64 instead of 2.65. > ../config/override.m4:34: _GCC_AUTOCONF_VERSION_CHECK is expanded from... > configure.ac:5: the top level > autom4te: /usr/bin/m4 failed with exit status: 1 > automake: autoconf failed with exit status: 1 > > Now, if query the version of autoconf on my system, here is what I get: > > $ autoconf --version > autoconf (GNU Autoconf) 2.65 > > It seems to me that a version 2.65 autoconf should be sufficiently backwa= rd compatible to deal with input for the previous minor version. =A0So why = am I running into this problem and what can I do about it? =A0Thank you! As the message says: configure.ac:5: error: Please use exactly Autoconf 2.64 instead of 2.65. You need to install autoconf 2.64 somewhere (e.g. under your home dir) and make sure it is first in your $PATH.