Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Michal Jaegermann <michal@ellpspace.math.ualberta.ca>
To: axp-list@redhat.com
Subject: Re: upgraded to gcc-2.95.2 --> gcc: cannot specify -o with -c or -S and
Date: Tue, 11 Jan 2000 00:17:34 -0700 (MST)	[thread overview]
Message-ID: <200001110717.AAA20900@ellpspace.math.ualberta.ca> (raw)
In-Reply-To: <387ACF03.16DC97FF@chello.nl> from "Stefan van der Eijk" at Jan 11, 2000 07:34:43 AM

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


  reply	other threads:[~2000-01-11  7:17 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-09 21:10 upgraded to gcc-2.95.2 --> gcc: cannot specify -o with -c or -S and multiple compilations Stefan van der Eijk
2000-01-10  8:33 ` Christian Iseli
2000-01-10 11:43 ` Craig P Prescott
2000-01-10 17:38   ` Stefan van der Eijk
2000-01-11  6:34     ` Stefan van der Eijk
2000-01-11  7:17       ` Michal Jaegermann [this message]
2000-01-11 12:42   ` Ivan Kokshaysky
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox