public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* m4: cannot open `gcc': No such file or directory
@ 2011-02-15  2:18 Hilariousity
  2011-02-15 12:13 ` Csaba Raduly
  0 siblings, 1 reply; 2+ messages in thread
From: Hilariousity @ 2011-02-15  2:18 UTC (permalink / raw)
  To: cygwin


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.


--
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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: m4: cannot open `gcc': No such file or directory
  2011-02-15  2:18 m4: cannot open `gcc': No such file or directory Hilariousity
@ 2011-02-15 12:13 ` Csaba Raduly
  0 siblings, 0 replies; 2+ messages in thread
From: Csaba Raduly @ 2011-02-15 12:13 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-15 12:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-02-15  2:18 m4: cannot open `gcc': No such file or directory Hilariousity
2011-02-15 12:13 ` Csaba Raduly

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).