admin管理员组

文章数量:1353245

I am trying to build GMP on Windows, using Cygwin64. I run ./configure with no troubles, but make prints some nonsense:

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

before printing m4: cannot open `gcc': No such file or directory and erroring. This is odd, as I definitely have GCC installed, which is confirmed by me being able to run gcc. What is happening here, and how can I fix it?

I am trying to build GMP on Windows, using Cygwin64. I run ./configure with no troubles, but make prints some nonsense:

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

before printing m4: cannot open `gcc': No such file or directory and erroring. This is odd, as I definitely have GCC installed, which is confirmed by me being able to run gcc. What is happening here, and how can I fix it?

Share Improve this question asked Apr 1 at 23:02 Coarse RosinflowerCoarse Rosinflower 1361 silver badge9 bronze badges 2
  • No idea how --m4="m4" gcc turned into "--m4=m4 gcc" on the next line, but that's the problem. – Marc Glisse Commented Apr 2 at 6:23
  • How would I fix that? – Coarse Rosinflower Commented Apr 2 at 9:35
Add a comment  | 

1 Answer 1

Reset to default 0

Apparently, I was using gcc from my main system, when I needed to install gcc seperately in cygwin via the setup executable and use that.

本文标签: cygwinm4 cannot open gcc39 No such file or directoryStack Overflow