From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JtSP6-0003wM-82 for garchives@archives.gentoo.org; Tue, 06 May 2008 19:00:44 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4DEC8E00D2; Tue, 6 May 2008 19:00:39 +0000 (UTC) Received: from ebox1b.ebox.com (ebox1.ebox.com [64.7.141.6]) by pigeon.gentoo.org (Postfix) with ESMTP id 3B867E00D2 for ; Tue, 6 May 2008 19:00:39 +0000 (UTC) Received: from [192.168.1.2] (modemcable166.225-21-96.mc.videotron.ca [96.21.225.166]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by ebox1b.ebox.com (Postfix) with ESMTP id B4806179F32 for ; Tue, 6 May 2008 15:00:38 -0400 (EDT) Message-ID: <4820AB20.3040208@visible-assets.com> Date: Tue, 06 May 2008 15:01:52 -0400 From: Christopher Friedt User-Agent: Thunderbird 2.0.0.12 (X11/20080504) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-embedded@lists.gentoo.org Reply-to: gentoo-embedded@lists.gentoo.org MIME-Version: 1.0 To: gentoo-embedded@lists.gentoo.org Subject: Re: [gentoo-embedded] GCC 4.3 fails on mpfr References: <78DE440C4156CC45A35FDBCBF9B830D702DD44D9@sohm.kpit.com> In-Reply-To: <78DE440C4156CC45A35FDBCBF9B830D702DD44D9@sohm.kpit.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: ea9d5797-2719-4bf5-b49f-5a4de7570daf X-Archives-Hash: 7b9c124e51f07449278453e308592a7a This is a 'chicken / egg' problem. In order to build a cross compiler for arch X you need mpfr compiled for arch X. In order to build mpfr for arch X you need a toolchain for arch X. Try building the cross-compiler without mpfr first, then build libmpfr, and then rebuild the cross compiler. I can't say whether or not that will work with crossdev, but that's the way things Should(TM) work. Chris Dilip Malinur Ramesh wrote: > Hi, > I am trying to build a cross compiler toolchain using 'crossdev 'and the > gcc source version is gcc-4.3.0 > > I am getting following errors while configuring gcc-stage1, > {{ > checking for correct version of gmp.h... yes > checking for correct version of mpfr.h... no > configure: error: Building GCC requires GMP 4.1+ and MPFR 2.3.0+. > Try the --with-gmp and/or --with-mpfr options to specify their > locations. > Copies of these libraries' source code can be found at their respective > hosting sites as well as at ftp://gcc.gnu.org/pub/gcc/infrastructure/. > See also http://gcc.gnu.org/install/prerequisites.html for additional > info. > If you obtained GMP and/or MPFR from a vendor distribution package, make > sure that you have installed both the libraries and the header files. > They may be located in separate packages. > > !!! ERROR: cross-sh4-unknown-linux-gnu/gcc-4.3.0 failed. > Call stack: > }} > > I understand the pre-requisite for gcc-4.3 is mpfr 4.1+ but I am not > sure how to pass '--with-mpfr' configure options to gcc. > > Any help will be highly appreciated > > With kind regards, > Dilip -- gentoo-embedded@lists.gentoo.org mailing list