Discussion:
m4: cannot open `gcc': No such file or directory
Hilariousity
2011-02-15 02:18:23 UTC
Permalink
I'm trying to compile the GNU multiple precision arithmetic library from
source in cygwin and after the command

m4 gcc -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_add_n add_n.asm
tmp-add_n.s
I get an error saying

m4: cannot open `gcc': No such file or directory

However typing the command gcc into bash reveals the output "gcc: no input
files"

How do I get the m4 macro processor to see gcc?
--
View this message in context: http://old.nabble.com/m4%3A-cannot-open-%60gcc%27%3A-No-such-file-or-directory-tp30927631p30927631.html
Sent from the Cygwin list mailing list archive at Nabble.com.
Csaba Raduly
2011-02-15 12:13:05 UTC
Permalink
Hi,
Post by Hilariousity
I'm trying to compile the GNU multiple precision arithmetic library from
source in cygwin and after the command
m4 gcc  -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_add_n add_n.asm
tmp-add_n.s
I get an error saying
m4: cannot open `gcc': No such file or directory
However typing the command gcc into bash reveals the output "gcc: no input
files"
How do I get the m4 macro processor to see gcc?
I think something is wrong with how gmp got configured. What options
did you give to configure? What is the output of

egrep -A1 'M4|CCAS|^\.[a-z]*\.[a-z]*' mpn/Makefile

This is what I get:

/bin/sh ../libtool --mode=compile --tag=CC ../mpn/m4-ccas --m4="m4"
/usr/bin/gcc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_`echo add_n | sed 's/_$//'`
-m32 -O2 -pedantic -fomit-frame-pointer -mtune=core2 -march=core2
`test -f 'add_n.asm' || echo './'`add_n.asm

../mpn/m4-ccas --m4=m4 /usr/bin/gcc -std=gnu99 -c -DHAVE_CONFIG_H -I.
-I. -I.. -D__GMP_WITHIN_GMP -I.. -DOPERATION_add_n -m32 -O2 -pedantic
-fomit-frame-pointer -mtune=core2 -march=core2 add_n.asm -o add_n.o

m4 -DHAVE_CONFIG_H -D__GMP_WITHIN_GMP -DOPERATION_add_n add_n.asm >tmp-add_n.s

/usr/bin/gcc -std=gnu99 -c -DHAVE_CONFIG_H -I. -I. -I..
-D__GMP_WITHIN_GMP -I.. -DOPERATION_add_n -m32 -O2 -pedantic
-fomit-frame-pointer -mtune=core2 -march=core2 tmp-add_n.s -o add_n.o



Csaba
--
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds
Loading...