Web lists-archives.org

Re: [Mingw-users] help to compile gmp-4.2.2




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
MinGW-users@xxxxxxxxxxxxxxxxxxxxx

You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users