This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

passing -o filename with multiple compile


Hi Folks -

I use egcs-1.1b on a RedHat Linux box with kernel 2.0.35 and I have some
problems when I try to compile software.  Here is an output of the errors I get
on a recent compile:

gcc -O6 -ffast-math    -I/usr/local/include -I/usr/X11R6/include -I/include 
-Dlinux LinuxMachineDefines -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
-D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE   -DFUNCPROTO=15
-DNARROWPROTO     -c ../lib/sound.c -o ../lib/sound.o
gcc: cannot specify -o with -c or -S and multiple compilations
make[1]: *** [../lib/sound.o] Error 1
make[1]: Leaving directory `/usr/home/tmp/wmsound-0.7.6/src'
making all in ./utils...
make[1]: Entering directory `/usr/home/tmp/wmsound-0.7.6/utils'
gcc -O6 -ffast-math    -I/usr/local/include -I/usr/X11R6/include -I/include 
-Dlinux LinuxMachineDefines -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
-D_XOPEN_SOURCE=500L -D_BSD_SOURCE -D_SVID_SOURCE   -DFUNCPROTO=15
-DNARROWPROTO     -c nmaker.c -o nmaker.o
gcc: cannot specify -o with -c or -S and multiple compilations


Apparently egcs does not like it when the -o switch is passed to the compiler
under certain circumstances.  Unfortunately much of the software I want to
compile does this kind of thing.  In particular the XFree86 X server won't
compile because of these errors.  Is there a way to get around this problem?

Thanks.......



Juan Casero
email:  casero@bellsouth.net
   __   _
  / /  (_)__  __ ____  __
 / /__/ / _ \/ // /\ \/ /  . . .  t h e   c h o i c e   o f   a
/____/_/_//_/\_,_/ /_/\_\              G N U   g e n e r a t i o n . . .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]