From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 27556 invoked from network); 10 Jan 2000 11:44:00 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 10 Jan 2000 11:44:00 -0000 Received: from neptune.phys.ufl.edu (neptune-gw.phys.ufl.edu [128.227.64.7]) by mail.redhat.com (8.8.7/8.8.7) with ESMTP id GAA02928 for ; Mon, 10 Jan 2000 06:43:58 -0500 Received: from bohr.phys.ufl.edu (bohr.phys.ufl.edu [128.227.64.6]) by neptune.phys.ufl.edu (8.9.3/8.9.3) with ESMTP id GAA01912 for ; Mon, 10 Jan 2000 06:43:57 -0500 (EST) Message-Id: <200001101143.GAA01912@neptune.phys.ufl.edu> To: axp-list@redhat.com Subject: Re: upgraded to gcc-2.95.2 --> gcc: cannot specify -o with -c or -S and multiple compilations In-Reply-To: Your message of "Sun, 09 Jan 2000 22:10:46 +0100." <3878F956.D99B9540@chello.nl> Date: Mon, 10 Jan 2000 06:43:57 -0500 From: Craig P Prescott Stefan van der Eijk wrote: >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 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. BTW - the same thing happens on Intel. It is not just Alpha. 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