From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2326 invoked by alias); 22 Dec 2012 11:14:16 -0000 Received: (qmail 2316 invoked by uid 22791); 22 Dec 2012 11:14:15 -0000 X-SWARE-Spam-Status: No, hits=-3.1 required=5.0 tests=AWL,BAYES_00,DKIM_ADSP_CUSTOM_MED,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,KHOP_RCVD_TRUST,NML_ADSP_CUSTOM_MED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,TW_CP,TW_TR,TW_TW X-Spam-Check-By: sourceware.org Received: from mail-we0-f169.google.com (HELO mail-we0-f169.google.com) (74.125.82.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 22 Dec 2012 11:13:43 +0000 Received: by mail-we0-f169.google.com with SMTP id t49so2669120wey.0 for ; Sat, 22 Dec 2012 03:13:42 -0800 (PST) X-Received: by 10.194.85.234 with SMTP id k10mr27834370wjz.53.1356174822022; Sat, 22 Dec 2012 03:13:42 -0800 (PST) Received: from localhost ([2.28.234.219]) by mx.google.com with ESMTPS id p3sm33708773wic.8.2012.12.22.03.13.39 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 22 Dec 2012 03:13:40 -0800 (PST) From: Richard Sandiford To: dominiq@lps.ens.fr (Dominique Dhumieres) Mail-Followup-To: dominiq@lps.ens.fr (Dominique Dhumieres),schwab@linux-m68k.org, richard.guenther@gmail.com, rguenther@suse.de, jakub@redhat.com, gerald@pfeifer.com, gcc-patches@gcc.gnu.org, rdsandiford@googlemail.com Cc: schwab@linux-m68k.org, richard.guenther@gmail.com, rguenther@suse.de, jakub@redhat.com, gerald@pfeifer.com, gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Fix PR54659, include gmp.h from system.h References: <20121221162631.46F3A3BE1B@mailhost.lps.ens.fr> <20121222105157.3AB523BC70@mailhost.lps.ens.fr> Date: Sat, 22 Dec 2012 11:14:00 -0000 In-Reply-To: <20121222105157.3AB523BC70@mailhost.lps.ens.fr> (Dominique Dhumieres's message of "Sat, 22 Dec 2012 11:51:57 +0100") Message-ID: <874njewd9d.fsf@talisman.default> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg01359.txt.bz2 dominiq@lps.ens.fr (Dominique Dhumieres) writes: > The following patch allowed me to proceed for c,c++,lto,fortran,ada,objc,obj-c++ > up to libada which has the same problem: > > --- ../_clean/gcc/configure 2012-12-20 17:19:54.000000000 +0100 > +++ ../p_work/gcc/configure 2012-12-21 23:44:46.000000000 +0100 > @@ -10321,9 +10321,9 @@ $as_echo "#define HAVE_LANGINFO_CODESET > > # We will need to find libiberty.h and ansidecl.h > saved_CFLAGS="$CFLAGS" > -CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include" > +CFLAGS="$CFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" > saved_CXXFLAGS="$CXXFLAGS" > -CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include" > +CXXFLAGS="$CXXFLAGS -I${srcdir} -I${srcdir}/../include $GMPINC" > for ac_func in getenv atol asprintf sbrk abort atof getcwd getwd \ > strsignal strstr stpcpy strverscmp \ > errno snprintf vsnprintf vasprintf malloc realloc calloc \ Yeah, just came up with the same fix here (plain x86_64-linux-gnu, but I don't have a gmp dev package installed and rely on --with-gmp). Worked for me too. Richard