Hello
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' Any ideas of what could be wrong? Many thanks Ed Express yourself instantly with MSN Messenger! MSN Messenger ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
Eduardo Mendes wrote:
> Hello > > 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' > > > Any ideas of what could be wrong? > > Many thanks > > Ed > How did you configure it? More strangely, why is m4 called? Your libtool message is very odd indeed. Try doing ./libtool --config|grep CC= It should give you the following. LTCC="gcc" CC="gcc" 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? 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. ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
JonY wrote:
> Eduardo Mendes wrote: >> Hello >> >> 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' >> >> >> Any ideas of what could be wrong? >> >> Many thanks >> >> Ed >> > > How did you configure it? More strangely, why is m4 called? Your libtool > message is very odd indeed. Try doing > > ./libtool --config|grep CC= > > It should give you the following. > LTCC="gcc" > CC="gcc" > > 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? > > 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. > Sorry, I missed your previous message, you are running Vista. You need an updated GCC-3.4.5, rebuilt for vista. Sorry... http://dessent.net/tmp/gcc-vista-3.4.5-20060117-1.tar.gz ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
In reply to this post by JonY-3
> > 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 Express yourself instantly with MSN Messenger! MSN Messenger ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
In reply to this post by JonY-3
> Sorry, I missed your previous message, you are running Vista. You need > an updated GCC-3.4.5, rebuilt for vista. Sorry... > > http://dessent.net/tmp/gcc-vista-3.4.5-20060117-1.tar.gz Done. I returned mingw to old settings. gcc-3.4.5 works now but make stops at the same error. libtool returns gcc an gcc. Ed Express yourself instantly with MSN Messenger! MSN Messenger ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
Eduardo Mendes wrote:
> > > > Sorry, I missed your previous message, you are running Vista. You need > > an updated GCC-3.4.5, rebuilt for vista. Sorry... > > > > http://dessent.net/tmp/gcc-vista-3.4.5-20060117-1.tar.gz > > > Done. I returned mingw to old settings. gcc-3.4.5 works now but make > stops at the same error. > > libtool returns gcc an gcc. > > Ed > > 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
> Date: Mon, 4 Feb 2008 21:12:54 +0800 > From: [hidden email] > To: [hidden email] > Subject: Re: [Mingw-users] help to compile gmp-4.2.2 > > Eduardo Mendes wrote: > > > > > > > Sorry, I missed your previous message, you are running Vista. You need > > > an updated GCC-3.4.5, rebuilt for vista. Sorry... > > > > > > http://dessent.net/tmp/gcc-vista-3.4.5-20060117-1.tar.gz > > > > > > Done. I returned mingw to old settings. gcc-3.4.5 works now but make > > stops at the same error. > > > > libtool returns gcc an gcc. > > > > Ed > > > > > > Try updating m4. > > http://downloads.sourceforge.net/mingw/m4-1.4.7-MSYS.tar.bz2 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 Express yourself instantly with MSN Messenger! MSN Messenger ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
> > > Sorry, I missed your previous message, you are running Vista. You need Express yourself instantly with MSN Messenger! MSN Messenger ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
In reply to this post by Eduardo Mendes-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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
> Date: Mon, 4 Feb 2008 23:13:00 +0800 > From: [hidden email] > To: [hidden email] > 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. Bfore every attempt, I issue make distclean and then retype the configure command. > 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? It says: CLOCAL_M4 = $(top_srcdir)/aclocal.m4 $(ACLOCAL_M4) M4 = m4 $(ACLOCAL_M4): # $(am__aclocal_m4_deps) $(M4) -DOPERATION_$* `test -f '$<' || echo '$(srcdir)/'`$< >tmp-$*.s $(M4) -DOPERATION_$* `if test -f '$<'; then $(CYGPATH_W) '$<'; else $(CYGPATH_W) '$(srcdir)/$<'; fi` >tmp-$*.s $(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/m4-ccas --m4="$(M4)" $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$< I have removed gmp-4.2.2 dir and done everything from scratch. Unfortunately the error msg is the same. Thanks Ed Express yourself instantly with MSN Messenger! MSN Messenger ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
Eduardo Mendes wrote:
> > > > Date: Mon, 4 Feb 2008 23:13:00 +0800 > > From: [hidden email] > > To: [hidden email] > > 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. > > Bfore every attempt, I issue make distclean and then retype the > configure command. > > > 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? > > It says: > > CLOCAL_M4 = $(top_srcdir)/aclocal.m4 > $(ACLOCAL_M4) > M4 = m4 > $(ACLOCAL_M4): # $(am__aclocal_m4_deps) > $(M4) -DOPERATION_$* `test -f '$<' || echo '$(srcdir)/'`$< >tmp-$*.s > $(M4) -DOPERATION_$* `if test -f '$<'; then $(CYGPATH_W) '$<'; > else $(CYGPATH_W) '$(srcdir)/$<'; fi` >tmp-$*.s > $(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/m4-ccas > --m4="$(M4)" $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$< > > > I have removed gmp-4.2.2 dir and done everything from scratch. > Unfortunately the error msg is the same. > I'll admit I have no idea what went wrong. Where is "m4 gcc" expanded from? Something is very wrong... OK, since m4 is contains no spaces, try removing quotation marks from --m4="$(M4)". "cat mpn/Makefile|grep '\-\-m4\=' -n" will tell you which line it is on. Edit mpn/Makefile manually or use the sed expression 's/\-\-m4\=\"\$(M4)"/\-\-m4\=\$(M4)/g' on it. If it still fails, post your config.log and mpn\Makefile. Maybe MinGW-users list has makefile gurus. ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
> Date: Tue, 5 Feb 2008 01:17:38 +0800 > From: [hidden email] > To: [hidden email] > Subject: Re: [Mingw-users] help to compile gmp-4.2.2 > > Eduardo Mendes wrote: > > > > > > > Date: Mon, 4 Feb 2008 23:13:00 +0800 > > > From: [hidden email] > > > To: [hidden email] > > > 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. > > > > Bfore every attempt, I issue make distclean and then retype the > > configure command. > > > > > 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? > > > > It says: > > > > CLOCAL_M4 = $(top_srcdir)/aclocal.m4 > > $(ACLOCAL_M4) > > M4 = m4 > > $(ACLOCAL_M4): # $(am__aclocal_m4_deps) > > $(M4) -DOPERATION_$* `test -f '$<' || echo '$(srcdir)/'`$< >tmp-$*.s > > $(M4) -DOPERATION_$* `if test -f '$<'; then $(CYGPATH_W) '$<'; > > else $(CYGPATH_W) '$(srcdir)/$<'; fi` >tmp-$*.s > > $(LIBTOOL) --mode=compile --tag=CC $(top_srcdir)/mpn/m4-ccas > > --m4="$(M4)" $(CCAS) $(COMPILE_FLAGS) `test -f '$<' || echo '$(srcdir)/'`$< > > > > > > I have removed gmp-4.2.2 dir and done everything from scratch. > > Unfortunately the error msg is the same. > > > > I'll admit I have no idea what went wrong. Where is "m4 gcc" expanded > from? Something is very wrong... > > OK, since m4 is contains no spaces, try removing quotation marks from > --m4="$(M4)". "cat mpn/Makefile|grep '\-\-m4\=' -n" will tell you which > line it is on. > > Edit mpn/Makefile manually or use the sed expression > 's/\-\-m4\=\"\$(M4)"/\-\-m4\=\$(M4)/g' on it. > > If it still fails, post your config.log and mpn\Makefile. Maybe > MinGW-users list has makefile gurus. > It worked - make finished without an error. I tried make install and gives an error (maybe you can help me here too). :/msys/1.0/bin/sh.exe ./libtool --mode=install /bin/install -c 'libgmp.la' '/mingw/lib/libgmp.la' /bin/install -c .libs/libgmp.lai /mingw/lib/libgmp.la ./libtool: line 6426: /bin/install: Permission denied make[3]: *** [install-libLTLIBRARIES] Error 126 make[3]: Leaving directory `C:/msys/1.0/home/eduardo/gmp-4.2.2' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `C:/msys/1.0/home/eduardo/gmp-4.2.2' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `C:/msys/1.0/home/eduardo/gmp-4.2.2' make: *** [install] Error 2 Many many thanks Ed > ------------------------------------------------------------------------- > 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 > [hidden email] > > You may change your MinGW Account Options or unsubscribe at: > https://lists.sourceforge.net/lists/listinfo/mingw-users Express yourself instantly with MSN Messenger! MSN Messenger ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
Eduardo Mendes wrote:
> ./libtool: line 6426: /bin/install: Permission denied This is another Vista feature. UAC special-cases programs by name. Yes, it's that dumb. It thinks programs named like 'install' or 'setup' or 'update' are special because they are likely to be the name of an exe that you might run to install a new program, and these generally need to be run with elevated privileges since they tend to want to write into the Program Files or the system hive, which are typically off limits to the restricted/regular user. Anyway, to make a long story short you need to create some manifests that tell Vista that it doesn't need to elevate for these binaries, but to run as the invoker. In Cygwin we have had to do this for /bin/install-info, /bin/install, and /bin/patch. You can read about it in this thread: <http://www.cygwin.com/ml/cygwin/2006-12/threads.html#00518> Brian ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
Quoting Brian Dessent <[hidden email]>: > > Anyway, to make a long story short you need to create some manifests > that tell Vista that it doesn't need to elevate for these binaries, but > to run as the invoker. In Cygwin we have had to do this for > /bin/install-info, /bin/install, and /bin/patch. You can read about it > in this thread: > <http://www.cygwin.com/ml/cygwin/2006-12/threads.html#00518> > An example of what to do is at: http://www.cygwin.com/ml/cygwin/2006-12/msg00580.html Earnie ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
In reply to this post by Brian Dessent
> Eduardo Mendes wrote:
> > > ./libtool: line 6426: /bin/install: Permission denied > > This is another Vista feature. UAC special-cases programs by name. > Yes, it's that dumb. It thinks programs named like 'install' or 'setup' > or 'update' are special because they are likely to be the name of an exe > that you might run to install a new program, and these generally need to > be run with elevated privileges since they tend to want to write into > the Program Files or the system hive, which are typically off limits to > the restricted/regular user. > > Anyway, to make a long story short you need to create some manifests > that tell Vista that it doesn't need to elevate for these binaries, but > to run as the invoker. In Cygwin we have had to do this for > /bin/install-info, /bin/install, and /bin/patch. You can read about it > in this thread: > <http://www.cygwin.com/ml/cygwin/2006-12/threads.html#00518> > > Brian > In case, it was easy - I run msys using "Run as administrator". That took care of the problem. Many thanks Ed. PS. As for installing cygwin, that is another story - The installation process hangs at some post-install file. Express yourself instantly with MSN Messenger! MSN Messenger ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
Good news - gmp-4.2.2 was compiled and installed as it should be in the first. Updating msys, mingw and changing two makefiles - mnp/Makefile and tests/Makefile ("$(M4)" issue) did the job. Many thanks to JonY for all the patience and help. Now to mpfr .... Ed Express yourself instantly with MSN Messenger! MSN Messenger ------------------------------------------------------------------------- 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 [hidden email] You may change your MinGW Account Options or unsubscribe at: https://lists.sourceforge.net/lists/listinfo/mingw-users |
Free forum by Nabble | Edit this page |