Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Stefan van der Eijk <s.vandereijk@chello.nl>
To: axp-list@redhat.com,
	"cooker@linux-mandrake.com" <cooker@linux-mandrake.com>
Subject: Re: upgraded to gcc-2.95.2 --> gcc: cannot specify -o with -c or -S and  multiple compilations
Date: Mon, 10 Jan 2000 18:38:40 +0100	[thread overview]
Message-ID: <387A1920.FAC64E28@chello.nl> (raw)
In-Reply-To: 200001101143.GAA01912@neptune.phys.ufl.edu

> >on my alpha system (running linux), and now I get the following error
> >when compiling a lot of packages:
> >...
> >gcc -O   -I./lib/Xt -I.  -I/usr/X11R6/include   -Dlinux
> >LinuxMachineDefines -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
> >...
> >gcc: cannot specify -o with -c or -S and multiple compilations
 
> Designer Seven replied:
> >You need to track down where LinuxMachineDefines is
> >suppose to get defined and find out why it isn't.
> >Usually it was something the preprocessor was suppose
> >to define but for whatever reason, didn't. Check:
> >
> >/lib/cpp -dM /dev/null
 
> I ran into the same problem when I grabbed the gcc-2.95.2-3 source rpm
> from RedHat's Rawhide, built, and installed the binary rpms.  gcc
> built perfectly it seemed, but after installation of the binary rpms
 
> /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). On my friend's intel Mandrake 6.1 box it 
gives the right output:

[stefan@c18793233 stefan]$ /lib/cpp -dM /dev/null
#define linux 1
#define __i386__ 1
#define i386 1
#define __ELF__ 1
#define unix 1

So... I don't know what conclusion I should make (this is _way_ over
my head)... but to get things working again I think I'm going to
bail-out
to redhat 6.1's gcc...

> gave me nothing, and I was unable to build stuff.  It would seem that
> cpp cannot find the /usr/lib/gcc-lib/alpha-redhat-linux/2.95.2/specs
> (or wherever you've got it) which has all the predefines and such.
/usr/lib/gcc-lib/alpha-mandrake-linux/2.95.2/specs
 
> BTW - the same thing happens on Intel.  It is not just Alpha.
very true...

> You can solve this problem by building gcc-2.95.2 from the tarball.
> When you build gcc-2.95 from the tarball, it puts cpp in
> "--prefix"/bin and everything just works.  And you can make a link
> from /usr/local/bin/cpp (or wherever) to /lib/cpp if you want, and it
> will be fine (indeed, some packages will probably expect it to be
> there).  On 164LX:
> 
> bash$ /lib/cpp -dM /dev/null
> #define __LANGUAGE_C 1
> #define __linux__ 1
> #define linux 1
> #define __alpha_ev5__ 1
> #define _LONGLONG 1
> #define __alpha_bwx__ 1
> #define __LANGUAGE_C__ 1
> #define __alpha__ 1
> #define __unix 1
> #define __unix__ 1
> #define __linux 1
> #define LANGUAGE_C 1
> #define __ELF__ 1
> #define __alpha 1
> #define unix 1
> 
> For additional reading, have a peek the thread beginning with:
> 
> http://www.lib.uaa.alaska.edu/axp-list/archive/1999-07/0235.html
> 
> Hope that helps...
> 
> Cheers,
> Craig
> ---
> Craig P Prescott                              (352) 846-3145 (Phone)
> 2011 New Physics Building                     (352) 392-8863 (Fax)
> University of Florida, Gainesville, FL 32611  prescott@phys.ufl.edu
> 
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


  reply	other threads:[~2000-01-10 17:38 UTC|newest]

Thread overview: 9+ 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 [this message]
2000-01-11  6:34     ` Stefan van der Eijk
2000-01-11  7:17       ` upgraded to gcc-2.95.2 --> gcc: cannot specify -o with -c or -S and Michal Jaegermann
2000-01-11 12:42   ` upgraded to gcc-2.95.2 --> gcc: cannot specify -o with -c or -S and multiple compilations Ivan Kokshaysky
  -- strict thread matches above, loose matches on Subject: below --
2000-01-09 21:30 Designer Seven
2000-01-09 23:41 ` Michal Jaegermann
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