Problem with LinuxPPC Kernel 2.4.2 build
Hi all,
I downloaded the latest kernel and attempted to build it (i.e. ftp://ftp.fsmlabs.com/pub/linuxppc/linuxppc_2_4.snap.tar.bz2 20117 Kb Tue Feb 27 06:07:00 2001). After a while, along comes the curious error:
make[1]: Entering directory `/usr/src/linuxppc_2_4_2/arch/ppc/coffboot' gcc -D__KERNEL__ -I/usr/src/linux/include -D__powerpc__ -c -o coffcrt0.o coffcrt0.S
gcc -D__KERNEL__ -I/usr/src/linux/include -D__powerpc__ -O -fno-builtin -D__KERNEL__ -I/usr/src/linux/include -D__powerpc__ ppc -c -o start.o start.c
gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [start.o] Error 1
make[1]: Leaving directory `/usr/src/linuxppc_2_4_2/arch/ppc/coffboot'
make: *** [zImage] Error 2
I am using gcc 2.95.3. Should I be using another version of the compiler that can handle the "-c" and "-S" options together, or is there a bug in the Makefile?
--
______________________________________________________________
Kenneth Ray Offer, II
Sr. Systems Analyst
Applied Research Laboratories/SDD
University of Texas at Austin
Office (512) 835-3859 FAX (512) 835-3259
Any opinions expressed above are mine and not necessarily those of my employer.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Quoted 18 lines · Ken Offer
Hi all,
I downloaded the latest kernel and attempted to build it (i.e. ftp://ftp.fsmlabs.com/pub/linuxppc/linuxppc_2_4.snap.tar.bz2 20117 Kb Tue Feb 27 06:07:00 2001). After a while, along comes the curious error:
make[1]: Entering directory `/usr/src/linuxppc_2_4_2/arch/ppc/coffboot' gcc -D__KERNEL__ -I/usr/src/linux/include -D__powerpc__ -c -o coffcrt0.o
coffcrt0.S
gcc -D__KERNEL__ -I/usr/src/linux/include -D__powerpc__ -O -fno-builtin -D__KERNEL__ -I/usr/src/linux/include -D__powerpc__ ppc -c -o start.ostart.c
gcc: cannot specify -o with -c or -S and multiple compilations make[1]: *** [start.o] Error 1
make[1]: Leaving directory `/usr/src/linuxppc_2_4_2/arch/ppc/coffboot'
make: *** [zImage] Error 2
Quoted 3 lines
I am using gcc 2.95.3. Should I be using another version of the compiler that can handle the "-c" and "-S" options together, or is there a bug in the
Makefile?
It's not a gcc problem. Maybe, wait a day or two and refetch the archive?
Takashi Oe
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: LinuxPPC Kernel 2.4.2 build (multiple compilations error)
Quoted 5 lines · Ken Offer
Quoted 1 line · Takashi Oe
It's not a gcc problem. Maybe, wait a day or two and refetch the archive?
I guess I'll have to. :)
A Linux guru here found the problem (thanks Mike D.!!!).
And now for those searching the archives desperately for an answer:
If you run into the "gcc: cannot specify -o with -c or -S and multiple compilations" error while building a kernel, the following might help. The environment variable TARGET_ARCH might be set to "ppc" from a previous build. Doing an "unset TARGET_ARCH" cleared up the build problem for me. :)
--
______________________________________________________________
Kenneth Ray Offer, II
Sr. Systems Analyst
Applied Research Laboratories/SDD
University of Texas at Austin
Office (512) 835-3859 FAX (512) 835-3259
Any opinions expressed above are mine and not necessarily those of my employer.
** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/