Ciao.

I have built GMP 5.0.4 and MPFR 3.1.0 from source under MinGW with no problem at all. I'm really baffled about this problem! I can send you the libraries if you stuck!


From: stargate7thsymbol@live.co.uk
To: sfhacker@hotmail.com; gcc-help@gcc.gnu.org; java@gcc.gnu.org; mingw-users@lists.sourceforge.net
Subject: Compiling and building vital libraries.
Date: Sun, 26 Feb 2012 13:06:15 +1100

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="/home/User/nano":$PATH;
export PATH="/home/User/":$PATH;
export PATH="/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  is failing a sanity check." when I attempt to compile MPFR, with the aforementioned binary GMP.

Are there any mingw32 people who know what I need to do to my /lib/cpp to get it behaving better?


From: sfhacker@hotmail.com
To: eliz@gnu.org; stargate7thsymbol@live.co.uk
CC: mingw-users@lists.sourceforge.net
Subject: RE: [Mingw-users] compiling and building GMP library
Date: Sat, 25 Feb 2012 08:56:39 +0000

Ciao.

I've just built GMP 5.0.4 under MinGW without any problems. I'm using GCC 4.5.2. I can upload the libraries onto SourceForge if required. FYI, you can find GMP 5.0.2 for MinGW here: http://sourceforge.net/projects/gmpmingw/

Cheers.

Sergio.

> Date: Sat, 25 Feb 2012 10:31:07 +0200
> From: eliz@gnu.org
> To: stargate7thsymbol@live.co.uk
> CC: mingw-users@lists.sourceforge.net
> Subject: Re: [Mingw-users] compiling and building GMP library
>
> > From: Me Myself and I <stargate7thsymbol@live.co.uk>
> > Date: Sat, 25 Feb 2012 18:57:02 +1100
> >
> > I havn't changed anything else except a few export statements in my
> > .etc/profile file.
>
> What exactly did you change?
>
> > configure:9244: gcc -std=gnu99 -E conftest.c
> > configure:9244: $? = 1
> > configure: failed program was:
> > | /* confdefs.h */
> > | #define PACKAGE_NAME "GNU MP"
> > | #define PACKAGE_TARNAME "gmp"
> > | #define PACKAGE_VERSION "5.0.4"
> > | #define PACKAGE_STRING "GNU MP 5.0.4"
> > | #define PACKAGE_BUGREPORT "gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html"
> > | #define PACKAGE_URL "http://www.gnu.org/software/gmp/"
> > | #define PACKAGE "gmp"
> > | #define VERSION "5.0.4"
> > | #define WANT_FFT 1
> > | #define HAVE_HOST_CPU_i686 1
> > | #define HAVE_SPEED_CYCLECOUNTER 2
> > | #define HAVE_CALLING_CONVENTIONS 1
> > | /* end confdefs.h. */
> > | #ifdef __STDC__
> > | # include <limits.h>
> > | #else
> > | # include <assert.h>
> > | #endif
> > | Syntax error
>
> I see now that the "Syntax error" part is not a sign of anything: it
> comes from the configure script itself, and is there for a good
> reason (read the comments in the script if you want to know more).
>
> So I can only repeat my previous suggestion: copy the above to a file
> named conftest.c and run GCC from the shell prompt, exactly as the
> script claims to have run it:
>
> gcc -std=gnu99 -E conftest.c
>
> Then look at the output and any error messages you get.
>
> For your reference, when I try this here, I get this output:
>
> # 1 "conftest.c"
> # 1 "<built-in>"
> # 1 "<command line>"
> # 1 "conftest.c"
> # 16 "conftest.c"
> # 1 "D:/usr/bin/../lib/gcc/mingw32/3.4.2/../../../../include/limits.h" 1 3
> # 21 "D:/usr/bin/../lib/gcc/mingw32/3.4.2/../../../../include/limits.h" 3
> # 1 "D:/usr/bin/../lib/gcc/mingw32/3.4.2/../../../../include/_mingw.h" 1 3
> # 31 "D:/usr/bin/../lib/gcc/mingw32/3.4.2/../../../../include/_mingw.h" 3
>
> # 32 "D:/usr/bin/../lib/gcc/mingw32/3.4.2/../../../../include/_mingw.h" 3
> # 22 "D:/usr/bin/../lib/gcc/mingw32/3.4.2/../../../../include/limits.h" 2 3
> # 17 "conftest.c" 2
>
>
>
> Syntax error
>
> and the exit code is zero.
>
> (Obviously, the "D:/usr/bin" part depends on where GCC is installed,
> and will probably be different on your machine.)
>
> ------------------------------------------------------------------------------
> Virtualization & Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> MinGW-users mailing list
> MinGW-users@lists.sourceforge.net
>
> This list observes the Etiquette found at
> http://www.mingw.org/Mailing_Lists.
> We ask that you be polite and do the same. Disregard for the list etiquette may cause your account to be moderated.
>
> _______________________________________________
> You may change your MinGW Account Options or unsubscribe at:
> https://lists.sourceforge.net/lists/listinfo/mingw-users
> Also: mailto:mingw-users-request@lists.sourceforge.net?subject=unsubscribe