From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,688184d04cc30b79 X-Google-Attributes: gid111c93,public From: Robert Harley Subject: Re: Porting to Alpha Date: 1998/11/10 Message-ID: #1/1 X-Deja-AN: 410278928 Content-Transfer-Encoding: 8bit References: <3647BF02.49CC0921@msa.dec.com> Content-Type: text/plain; charset=iso-8859-1 Organization: I.N.R.I.A Rocquencourt Mime-Version: 1.0 Newsgroups: comp.os.linux.alpha Wai-Sun Chia writes: > Apparently EGCS craps out when a variable is defined as the arch name: > i.e. alpha, i386, arm, m68k, mips, ppc, sparc, sparc64 > > I've confirmed it with i386 and alpha. To test yourself, try to compile > the following simple program: > [...] Well I had no such problem, but I can guess what the cause is. Try compiling with the "-v" flag and you'll probably see that your spec file causes a "-Dalpha" to be put on the command-line. In my case it has "-D__alpha -D__alpha__" which is fine because identifiers starting with __ are reserved for such uses. On the other hand it does have "-Dlinux -Dunix" which is very naughty! Also, send a report to egcs-bugs@cygnus.com. Rob.