From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8764 invoked by alias); 26 Feb 2012 12:19:29 -0000 Received: (qmail 8737 invoked by uid 22791); 26 Feb 2012 12:19:25 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW X-Spam-Check-By: sourceware.org Received: from mail-lpp01m010-f47.google.com (HELO mail-lpp01m010-f47.google.com) (209.85.215.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 26 Feb 2012 12:19:12 +0000 Received: by lahc1 with SMTP id c1so4809066lah.20 for ; Sun, 26 Feb 2012 04:19:10 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.43.230 with SMTP id z6mr3182783lbl.104.1330258750407; Sun, 26 Feb 2012 04:19:10 -0800 (PST) Received: by 10.112.52.40 with HTTP; Sun, 26 Feb 2012 04:19:10 -0800 (PST) In-Reply-To: References: <418BF7963F914614B0CC31F6DF41CB6C@desktop2> <83mx87s98f.fsf@gnu.org> <94A2B27145A446C7ADFE1650F3742448@desktop2> <83d393s68h.fsf@gnu.org> <83boons4ac.fsf@gnu.org> Date: Sun, 26 Feb 2012 12:19:00 -0000 Message-ID: Subject: Re: Compiling and building vital libraries. From: Jonathan Wakely To: Me Myself and I Cc: gcc-help@gcc.gnu.org, java@gcc.gnu.org, mingw-users@lists.sourceforge.net Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org X-SW-Source: 2012-02/txt/msg00041.txt.bz2 On 26 February 2012 04:54, Me Myself and I wrote: > > I have installed mingw32 on 64 bit Windows 7 using > > mingw-get-inst-20110530.exe > > I have been referred to http://sourceforge.net/projects/gmpmingw/ > for a mingw32 binary version of GMP. > > I have the following in my etc/profile file: > > export PATH=3D"/home/User/nano":$PATH; > export PATH=3D"/home/User/":$PATH; > export PATH=3D"/home/User/gmp-5.0.2":$PATH; > > I need to get the following working: > > GMP > MPFR > MPC > > I am finding now that > > "C preprocessor /lib/cpp=A0 is failing a sanity check." when I attempt to= compile MPFR, with the aforementioned binary GMP. No, you were clearly told by Sisyphus /lib/cpp is NOT the problem, that file doesn't exist. The first attempt to use the C preprocessor is this: configure:9213: checking how to run the C preprocessor configure:9244: gcc -std=3Dgnu99 -E conftest.c configure:9244: $? =3D 1 That should work. Because it doesn't work, /lib/cpp is tried instead, but the first test should work. Your GCC installation is broken. > Are there any mingw32 people who know what I need to do to my /lib/cpp to= get it behaving better? > > The advice I have so far doesn't help, and I have also installed the defa= ult C++ which comes with the exe installer I have. Have you *only* installed the C++ part? Have you also installed the C comp= iler? > I'm about to try the cpp from source, but apart from that, is there anyon= e out there with advice to solve the problem? You can't build cpp from source, it's part of GCC. Your GCC installation is broken. You should be able to run "gcc -E foo.c" on a file called foo.c and have it succeed - if that doesn't work, fix it.