This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Hi,

On Tue, Feb 15, 2011 at 3:18 AM, Hilariousity  wrote:
>
> 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

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]