* Problem with LinuxPPC Kernel 2.4.2 build
@ 2001-02-27 16:36 Ken Offer
2001-02-27 16:52 ` Takashi Oe
0 siblings, 1 reply; 3+ messages in thread
From: Ken Offer @ 2001-02-27 16:36 UTC (permalink / raw)
To: linuxppc-dev
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with LinuxPPC Kernel 2.4.2 build
2001-02-27 16:36 Problem with LinuxPPC Kernel 2.4.2 build Ken Offer
@ 2001-02-27 16:52 ` Takashi Oe
[not found] ` <3A9C0793.2AEBE8B0@arlut.utexas.edu>
0 siblings, 1 reply; 3+ messages in thread
From: Takashi Oe @ 2001-02-27 16:52 UTC (permalink / raw)
To: Ken Offer; +Cc: linuxppc-dev
On Tue, 27 Feb 2001, Ken Offer wrote:
> 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?
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: LinuxPPC Kernel 2.4.2 build (multiple compilations error)
[not found] ` <3A9C0793.2AEBE8B0@arlut.utexas.edu>
@ 2001-02-27 22:16 ` Ken Offer
0 siblings, 0 replies; 3+ messages in thread
From: Ken Offer @ 2001-02-27 22:16 UTC (permalink / raw)
To: linuxppc-dev
Ken Offer wrote:
>
> Takashi Oe wrote:
> > 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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2001-02-27 22:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-02-27 16:36 Problem with LinuxPPC Kernel 2.4.2 build Ken Offer
2001-02-27 16:52 ` Takashi Oe
[not found] ` <3A9C0793.2AEBE8B0@arlut.utexas.edu>
2001-02-27 22:16 ` LinuxPPC Kernel 2.4.2 build (multiple compilations error) Ken Offer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).