Estou tentando construir o GMP no Windows, usando o Cygwin64. Eu executo ./configure
sem problemas, mas make
imprime algumas bobagens:
C:/cygwin64/bin/sh.exe ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4" gcc -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo invert_limb_table | sed 's/_$//'` -O2 -pedantic -fomit-frame-pointer -m64 -mtune=k8 -march=k8 `test -f 'invert_limb_table.asm' || echo './'`invert_limb_table.asm
libtool: compile: ../mpn/m4-ccas "--m4=m4 gcc" -c -DHAVE_CONFIG_H -I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_invert_limb_table -O2 -pedantic -fomit-frame-pointer -m64 -mtune=k8 -march=k8 invert_limb_table.asm -o invert_limb_table.o
m4 gcc -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_invert_limb_table invert_limb_table.asm >tmp-invert_limb_table.s
antes de imprimir m4: cannot open `gcc': No such file or directory
e dar erro. Isso é estranho, pois eu definitivamente tenho o GCC instalado, o que é confirmado por eu conseguir executar gcc
. O que está acontecendo aqui e como posso consertar?
Aparentemente, eu estava usando
gcc
o meu sistema principal, quando precisei instalargcc
separadamente no Cygwin através do executável de configuração e usá-lo.