Re: [Mingw-users] help to compile gmp-4.2.2
- Date: Mon, 04 Feb 2008 20:34:35 +0800
- From: JonY <10walls@xxxxxxxxx>
- Subject: Re: [Mingw-users] help to compile gmp-4.2.2
Eduardo Mendes wrote:
> > > I am trying to get gmp-4.2.2 compiled so I downloaded the source,
> > > updated msys and binutils.
> > >
> > > First I try gcc-3.4.5 but it seems that gmp-4.2.2 needs gcc >= 4. So I
> > > got gcc-4.2.1-sjlj and added to mingw. gcc-4.2.1 seems to work but
> > >
> > > make[2]: Entering directory `C:/msys/1.0/home/eduardo/gmp-4.2.2/mpn'
> > > C:/msys/1.0/bin/sh.exe ../libtool --mode=compile --tag=CC
> ../mpn/m4-ccas
> > > --m4="m4" gcc -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
> > > -DOPERATION_`echo add_n | sed 's/_$//'` -m32 -O2 -fomit-frame-pointer
> > > -mtune=k8 -march=k8 -mno-cygwin `test -f 'add_n.asm' || echo
> './'`add_n.asm
> > > ../mpn/m4-ccas "--m4=m4 gcc" -c -DHAVE_CONFIG_H -I. -I. -I..
> > > -D__GMP_WITHIN_GMP -I.. -DOPERATION_add_n -m32 -O2
> -fomit-frame-pointer
> > > -mtune=k8 -march=k8 -mno-cygwin add_n.asm -o add_n.o
> > > m4 gcc -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_add_n add_n.asm
> > > >tmp-add_n.s
> > > -c -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
> > > -DOPERATION_add_n -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8
> > > -mno-cygwin tmp-add_n.s -o add_n.o
> > > m4: ggc : no such file or directory
> > > ../mpn/m4-ccas: line 93 : -c - command not found
> > > make[2]: Leaving directory `C:/msys/1.0/home/eduardo/gmp-4.2.2/mpn'
> > > make[1]: Leaving directory `C:/msys/1.0/home/eduardo/gmp-4.2.2'
>
> >
> > How did you configure it? More strangely, why is m4 called? Your libtool
> > message is very odd indeed. Try doing
>
> I have issued (on msys) ./configure --prefix=/mingw --enable-static
>
> I have no idea why m4 called.
>
> On msys /bin/libtool is dated 2003.
>
> >
> > ./libtool --config|grep CC=
> >
> > It should give you the following.
> > LTCC="gcc"
> > CC="gcc"
> >
>
> That is exactly the output I get when I issue ./libtool under gmp dir.
>
> > I have seen your off the mailing list message, it is not a problem, but
> > I do prefer it on the mailing list. I remember compiling GMP using
> > gcc-3.4.5. By any chance are you using Vista?
>
> I agree with you. Perhaps other list members can benefit from the
> discussion.
>
> Yes, I am running Vista.
>
> >
> > Another note, GMP does not allow both shared and static libraries to be
> > built due to the difference in installed headers. I suggest using
> > static, otherwise, gfortran.exe will depend on the GMP dll.
>
> Ok. Thanks.
>
>
> Many many thanks
>
> Ed
>
>
>
Ok, I checked GMP, it indeed does call m4 to preprocess some assembly
text. My m4 seems to run fine though. Regardless, try updating m4.
http://downloads.sourceforge.net/mingw/m4-1.4.7-MSYS.tar.bz2
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users