From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 16190 invoked from network); 30 Mar 1999 17:40:29 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 30 Mar 1999 17:40:29 -0000 Received: from ellpspace.math.ualberta.ca (michal@ellpspace.math.ualberta.ca [129.128.88.19]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id MAA20793 for ; Tue, 30 Mar 1999 12:24:24 -0500 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id KAA17390 for axp-list@redhat.com; Tue, 30 Mar 1999 10:24:18 -0700 From: Michal Jaegermann Message-Id: <199903301724.KAA17390@ellpspace.math.ualberta.ca> Subject: Re: Problems with egcs & xmkmf To: axp-list@redhat.com Date: Tue, 30 Mar 1999 10:24:18 -0700 (MST) In-Reply-To: <19990330071535.1456.rocketmail@web601.yahoomail.com> from "designer seven" at Mar 29, 99 11:15:35 pm Content-Type: text designer seven wrote: > > the problem is that the egcs doesn't know about > > __alpha and only knows about __alpha__ .... > > the the LinuxMachineDefines that you removed should > really have been replaced with something more sensible. > > > The way I got around it was grep thru all the files in > the source tree for __alpha and replaced them with > __alpha__ ...once I did that, everything was fine. Much simpler, saner and faster is to load a spec file for a compiler you are using (**that** one, in case you have few different variants of gcc installed on your system) into any text editor and to add this missing define in question. Once you look there it will be obvious what to do. Do not replace but add. To find a precise location of your spec file try 'gcc -v Override builtin specs with the contents of Last, but not least, you can always add a define to a compiler invocation with a help of -D flag. BTW - my compiler with 'gcc -v < /dev/null' shows, among other things: gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release) and presented with this input: #ifdef __alpha #error defined #else #error undefined #endif prints "#error defined" so "egcs doesn't know about __alpha" statement seems to be a tad too general. :-) Michal