Re: [Mingw-users] help to compile gmp-4.2.2
- Date: Mon, 04 Feb 2008 23:13:00 +0800
- From: JonY <10walls@xxxxxxxxx>
- Subject: Re: [Mingw-users] help to compile gmp-4.2.2
Eduardo Mendes wrote:
>
>
> Done but
>
>
> :/msys/1.0/bin/sh.exe ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I.
> -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo add_1 | sed
> 's/_$//'` -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8
> -mno-cygwin -c -o add_1.lo add_1.c
> gcc -DHAVE_CONFIG_H -I. -I. -I.. -D__GMP_WITHIN_GMP -I..
> -DOPERATION_add_1 -m32 -O2 -fomit-frame-pointer -mtune=k8 -march=k8
> -mno-cygwin -c add_1.c -o add_1.o
> 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
> m4: gcc: No such file or directory
> make[2]: *** [add_n.lo] Error 1
> make[2]: Leaving directory `C:/msys/1.0/home/eduardo/gmp-4.2.2/mpn'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `C:/msys/1.0/home/eduardo/gmp-4.2.2'
> make: *** [all] Error 2
>
>
> Do you think I need to update libtool?
>
> Many thanks
>
> Ed
>
It has nothing to do with the installed libtool. Try rerunning
configure. I am unable to duplicate your problem. Having '../mpn/m4-ccas
"--m4=m4 gcc"' is strange, mine emits '../mpn/m4-ccas --m4=m4 gcc -c',
there are no double quotes in mine.
What does "cat mpn/Makefile|grep M4" say?
If it has "M4 = m4 gcc", you may need to edit your Makefile manually.
I'm not very good at sed, but here goes:
cat Makefile|sed -e 's/^M4\ \=\ m4\ gcc/M4\ \=\ m4/g' >Make2
mv Makefile{.bak}
mv Make{2,file}
This will change instances of "M4 = m4 gcc" to "M4 = m4" and backup the
original Makefile.
Another note for building gcc 4.2.1, remember to set
CFLAGS=-D__USE_MINGW_ACCESS to fix the access() problem.
-------------------------------------------------------------------------
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