* BUG: compile failure on ps3-head.S
@ 2007-07-19 19:49 Grant Likely
2007-07-19 21:45 ` Segher Boessenkool
2007-07-19 21:47 ` PS3: Fix build with 32-bit toolchains Geoff Levand
0 siblings, 2 replies; 7+ messages in thread
From: Grant Likely @ 2007-07-19 19:49 UTC (permalink / raw)
To: Geoff Levand, linuxppc-dev, Arnd Bergmann, Scott Wood
commit id bafdb645779c63300763acb383f7b9dd2d427228 (on Linus' tree)
causes breakage on my mpc8349 build (see below). I've worked around
it by removing ps3* from arch/powerpc/boot/Makefile, but I have not
dug into what the 'proper' solution should be.
Cheers,
g.
Toolchain: gcc version 4.0.0 (DENX ELDK 4.0 4.0.0)
Build command: make mpc834x_itxgp_defconfig; make zImage
make ARCH=ppc64 -f scripts/Makefile.build obj=arch/powerpc/boot
arch/powerpc/boot/zImage
ppc_6xx-gcc -m32 -Wp,-MD,arch/powerpc/boot/.ps3-head.o.d
-D__ASSEMBLY__ -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs
-fno-strict-aliasing -Os -msoft-float -pipe -fomit-frame-pointer
-fno-builtin -fPIC -nostdinc -isystem
/home/opt/eldk-4.0/usr/bin/../lib/gcc/powerpc-linux/4.0.0/include
-traditional -nostdinc -c -o arch/powerpc/boot/ps3-head.o
arch/powerpc/boot/ps3-head.S
arch/powerpc/boot/ps3-head.S: Assembler messages:
arch/powerpc/boot/ps3-head.S:40: Error: Unrecognized opcode: `clrldi'
arch/powerpc/boot/ps3-head.S:41: Error: Unrecognized opcode: `mtmsrd'
make[1]: *** [arch/powerpc/boot/ps3-head.o] Error 1
make: *** [zImage] Error 2
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: BUG: compile failure on ps3-head.S
2007-07-19 19:49 BUG: compile failure on ps3-head.S Grant Likely
@ 2007-07-19 21:45 ` Segher Boessenkool
2007-07-19 21:47 ` PS3: Fix build with 32-bit toolchains Geoff Levand
1 sibling, 0 replies; 7+ messages in thread
From: Segher Boessenkool @ 2007-07-19 21:45 UTC (permalink / raw)
To: Grant Likely; +Cc: linuxppc-dev, Arnd Bergmann
> commit id bafdb645779c63300763acb383f7b9dd2d427228 (on Linus' tree)
> causes breakage on my mpc8349 build (see below). I've worked around
> it by removing ps3* from arch/powerpc/boot/Makefile, but I have not
> dug into what the 'proper' solution should be.
> arch/powerpc/boot/ps3-head.S:40: Error: Unrecognized opcode: `clrldi'
> arch/powerpc/boot/ps3-head.S:41: Error: Unrecognized opcode: `mtmsrd'
Those source files just need a .machine pseudo-op somewhere.
Segher
^ permalink raw reply [flat|nested] 7+ messages in thread
* PS3: Fix build with 32-bit toolchains
2007-07-19 19:49 BUG: compile failure on ps3-head.S Grant Likely
2007-07-19 21:45 ` Segher Boessenkool
@ 2007-07-19 21:47 ` Geoff Levand
2007-07-19 22:05 ` Kumar Gala
` (2 more replies)
1 sibling, 3 replies; 7+ messages in thread
From: Geoff Levand @ 2007-07-19 21:47 UTC (permalink / raw)
To: Paul Mackerras; +Cc: linuxppc-dev, Arnd Bergmann
The PS3 bootwrapper files use instructions only available on
64-bit CPUs. Add the code generation directive '.machine "ppc64"'
for toolchains configured for 32-bit CPUs.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
---
Paul,
Please apply for 2.6.23-rc1.
arch/powerpc/boot/ps3-head.S | 2 ++
arch/powerpc/boot/ps3-hvcall.S | 2 ++
2 files changed, 4 insertions(+)
--- a/arch/powerpc/boot/ps3-head.S
+++ b/arch/powerpc/boot/ps3-head.S
@@ -20,6 +20,8 @@
#include "ppc_asm.h"
+ .machine "ppc64"
+
.text
/*
--- a/arch/powerpc/boot/ps3-hvcall.S
+++ b/arch/powerpc/boot/ps3-hvcall.S
@@ -20,6 +20,8 @@
#include "ppc_asm.h"
+ .machine "ppc64"
+
/*
* The PS3 hypervisor uses a 64 bit "C" language calling convention.
* The routines here marshal arguments between the 32 bit wrapper
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PS3: Fix build with 32-bit toolchains
2007-07-19 21:47 ` PS3: Fix build with 32-bit toolchains Geoff Levand
@ 2007-07-19 22:05 ` Kumar Gala
2007-07-19 22:36 ` Geoff Levand
2007-07-19 22:16 ` Grant Likely
2007-07-20 15:31 ` Geoff Levand
2 siblings, 1 reply; 7+ messages in thread
From: Kumar Gala @ 2007-07-19 22:05 UTC (permalink / raw)
To: Geoff Levand; +Cc: linuxppc-dev, Paul Mackerras, Arnd Bergmann
On Jul 19, 2007, at 4:47 PM, Geoff Levand wrote:
> The PS3 bootwrapper files use instructions only available on
> 64-bit CPUs. Add the code generation directive '.machine "ppc64"'
> for toolchains configured for 32-bit CPUs.
>
> Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
while this is a fix, why are we even building it Grant's case of
building 834x itx.
- k
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PS3: Fix build with 32-bit toolchains
2007-07-19 22:05 ` Kumar Gala
@ 2007-07-19 22:36 ` Geoff Levand
0 siblings, 0 replies; 7+ messages in thread
From: Geoff Levand @ 2007-07-19 22:36 UTC (permalink / raw)
To: Kumar Gala; +Cc: linuxppc-dev, Paul Mackerras, Arnd Bergmann
Kumar Gala wrote:
> On Jul 19, 2007, at 4:47 PM, Geoff Levand wrote:
>
>> The PS3 bootwrapper files use instructions only available on
>> 64-bit CPUs. Add the code generation directive '.machine "ppc64"'
>> for toolchains configured for 32-bit CPUs.
>>
>> Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
>
> while this is a fix, why are we even building it Grant's case of
> building 834x itx.
I originally had the makefile setup to conditionally build these
files on CONFIG_PPC_PS3, but during the review I was requested to
change it to build them unconditionally. See:
http://ozlabs.org/pipermail/linuxppc-dev/2007-June/038072.html
-Geoff
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: PS3: Fix build with 32-bit toolchains
2007-07-19 21:47 ` PS3: Fix build with 32-bit toolchains Geoff Levand
2007-07-19 22:05 ` Kumar Gala
@ 2007-07-19 22:16 ` Grant Likely
2007-07-20 15:31 ` Geoff Levand
2 siblings, 0 replies; 7+ messages in thread
From: Grant Likely @ 2007-07-19 22:16 UTC (permalink / raw)
To: Geoff Levand; +Cc: linuxppc-dev, Paul Mackerras, Arnd Bergmann
On 7/19/07, Geoff Levand <geoffrey.levand@am.sony.com> wrote:
> The PS3 bootwrapper files use instructions only available on
> 64-bit CPUs. Add the code generation directive '.machine "ppc64"'
> for toolchains configured for 32-bit CPUs.
>
> Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
> ---
> Paul,
>
> Please apply for 2.6.23-rc1.
>
> arch/powerpc/boot/ps3-head.S | 2 ++
> arch/powerpc/boot/ps3-hvcall.S | 2 ++
> 2 files changed, 4 insertions(+)
>
> --- a/arch/powerpc/boot/ps3-head.S
> +++ b/arch/powerpc/boot/ps3-head.S
> @@ -20,6 +20,8 @@
>
> #include "ppc_asm.h"
>
> + .machine "ppc64"
> +
> .text
>
> /*
> --- a/arch/powerpc/boot/ps3-hvcall.S
> +++ b/arch/powerpc/boot/ps3-hvcall.S
> @@ -20,6 +20,8 @@
>
> #include "ppc_asm.h"
>
> + .machine "ppc64"
> +
> /*
> * The PS3 hypervisor uses a 64 bit "C" language calling convention.
> * The routines here marshal arguments between the 32 bit wrapper
>
>
--
Grant Likely, B.Sc., P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195
^ permalink raw reply [flat|nested] 7+ messages in thread
* PS3: Fix build with 32-bit toolchains
2007-07-19 21:47 ` PS3: Fix build with 32-bit toolchains Geoff Levand
2007-07-19 22:05 ` Kumar Gala
2007-07-19 22:16 ` Grant Likely
@ 2007-07-20 15:31 ` Geoff Levand
2 siblings, 0 replies; 7+ messages in thread
From: Geoff Levand @ 2007-07-20 15:31 UTC (permalink / raw)
To: akpm; +Cc: linuxppc-dev, Paul Mackerras, Arnd Bergmann
The PS3 bootwrapper files use instructions only available on
64-bit CPUs. Add the code generation directive '.machine "ppc64"'
for toolchains configured for 32-bit CPUs.
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Acked-by: Grant Likely <grant.likely@secretlab.ca>
---
Hi Andrew,
It seems Paul is out on holiday, so I'm sending this to you.
This fixes a build error in Linus' current tree for a few
32 bit powerpc platforms. It had some review on the
linuxppc-dev ML, and Grant Likely reported it fixed the
problem.
-Geoff
arch/powerpc/boot/ps3-head.S | 2 ++
arch/powerpc/boot/ps3-hvcall.S | 2 ++
2 files changed, 4 insertions(+)
--- a/arch/powerpc/boot/ps3-head.S
+++ b/arch/powerpc/boot/ps3-head.S
@@ -20,6 +20,8 @@
#include "ppc_asm.h"
+ .machine "ppc64"
+
.text
/*
--- a/arch/powerpc/boot/ps3-hvcall.S
+++ b/arch/powerpc/boot/ps3-hvcall.S
@@ -20,6 +20,8 @@
#include "ppc_asm.h"
+ .machine "ppc64"
+
/*
* The PS3 hypervisor uses a 64 bit "C" language calling convention.
* The routines here marshal arguments between the 32 bit wrapper
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-07-20 15:31 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-07-19 19:49 BUG: compile failure on ps3-head.S Grant Likely
2007-07-19 21:45 ` Segher Boessenkool
2007-07-19 21:47 ` PS3: Fix build with 32-bit toolchains Geoff Levand
2007-07-19 22:05 ` Kumar Gala
2007-07-19 22:36 ` Geoff Levand
2007-07-19 22:16 ` Grant Likely
2007-07-20 15:31 ` Geoff Levand
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).