From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 4380 invoked from network); 11 Jan 2000 07:17:38 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 11 Jan 2000 07:17:38 -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 CAA12809 for ; Tue, 11 Jan 2000 02:17:38 -0500 Received: (from michal@localhost) by ellpspace.math.ualberta.ca (8.8.8/8.8.8) id AAA20900 for axp-list@redhat.com; Tue, 11 Jan 2000 00:17:34 -0700 From: Michal Jaegermann Message-Id: <200001110717.AAA20900@ellpspace.math.ualberta.ca> Subject: Re: upgraded to gcc-2.95.2 --> gcc: cannot specify -o with -c or -S and To: axp-list@redhat.com Date: Tue, 11 Jan 2000 00:17:34 -0700 (MST) In-Reply-To: <387ACF03.16DC97FF@chello.nl> from "Stefan van der Eijk" at Jan 11, 2000 07:34:43 AM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Stefan van der Eijk wrote: > > I solved the problem by switching bak from gcc to egcs. I took the ones > from the redhat 6.1 CD, and they work fine... GCC is off-limits for me > for a while ;-) I had a quick peek into files in /usr/X11R6/lib/X11/config/ and it looks like that these 'LinuxMachineDefines' will be expanded if __alpha__ is defined. Well, my gcc-2.95.2, compiled from sources, has this define included. > > > /lib/cpp -dM /dev/null > > Well... this is _very_ amusing... This command won't work for me on > > _both_ of my machine (Redhat 6.0 alpha with tonnes of new packages, and > > my intel Mandrake 7.0b2 box). Try 'gcc -dM -E - < /dev/null' instead. Should work. :-) On my Alpha it shows: #define __LANGUAGE_C 1 #define __linux__ 1 #define linux 1 #define __alpha_ev4__ 1 #define _LONGLONG 1 #define __GNUC_MINOR__ 95 #define __LANGUAGE_C__ 1 #define __alpha__ 1 #define __unix 1 #define __unix__ 1 #define __GNUC__ 2 #define __linux 1 #define LANGUAGE_C 1 #define __ELF__ 1 #define __alpha 1 #define unix 1 '/lib/ccp -dM - < /dev/null' also should be ok. If you have a few versions of a compiler floating around watch out which version of 'cpp' and which specs you are really using ('gcc -dumpspecs' to examine the later). Michal