Hi all,
kernel build fails on powerpc 32bit no matter what version is used (5.14-5.16):
{standard input}: Assembler messages:
{standard input}:29: Error: unrecognized opcode: `dssall'
make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
make[3]: *** [Makefile:1861: arch/powerpc] Error 2
make[2]: *** [debian/rules:7: build-arch] Error 2
I assume the latest binutils (2.37.50.20220106-2) don't work
properly. Anyone made the same experience?
* Elimar Riesebieter <riesebie@lxtec.de> [2022-01-19 14:35 +0100]:
Hi all,
kernel build fails on powerpc 32bit no matter what version is used (5.14-5.16):
{standard input}: Assembler messages:
{standard input}:29: Error: unrecognized opcode: `dssall'
make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
make[3]: *** [Makefile:1861: arch/powerpc] Error 2
make[2]: *** [debian/rules:7: build-arch] Error 2
I assume the latest binutils (2.37.50.20220106-2) don't work
properly. Anyone made the same experience?
Indeed, downgrading to binutils 2.37-7 fixed the issue.
kernel build fails on powerpc 32bit no matter what version is used
(5.14-5.16):
{standard input}: Assembler messages:
{standard input}:29: Error: unrecognized opcode: `dssall'
make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
make[3]: *** [Makefile:1861: arch/powerpc] Error 2
make[2]: *** [debian/rules:7: build-arch] Error 2
I assume the latest binutils (2.37.50.20220106-2) don't work
properly. Anyone made the same experience?
Indeed, downgrading to binutils 2.37-7 fixed the issue. Where can I
find archived binutils versions for powerpc? 2.37-7 I found in the
local cache. It seems there must be a version 2.37-10?
[1] http://snapshot.debian.org/
[2] https://sourceware.org/bugzilla/
kernel build fails on powerpc 32bit no matter what version is used (5.14-5.16):
{standard input}: Assembler messages:
{standard input}:29: Error: unrecognized opcode: `dssall'
make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
make[3]: *** [Makefile:1861: arch/powerpc] Error 2
make[2]: *** [debian/rules:7: build-arch] Error 2
I assume the latest binutils (2.37.50.20220106-2) don't work
properly. Anyone made the same experience?
https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=5.15.15-1&stamp=1642579068&raw=0
https://buildd.debian.org/status/fetch.php?pkg=linux&arch=ppc64&ver=5.15.15-1&stamp=1642578946&raw=0
Hi Mike!
On 1/20/22 08:48, Mike wrote:
I sent a mail fixing this a few days ago, but I didn't finalize
the patch according to suggestions, my finger broke.
This is actually a more complex issue, in particular the assembler was changed on PowerPC when handling the .machine directive, see [1].
So, in order to fix this issue, someone needs to update the kernel to
work with the new binutils version.
Adrian
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=28794#c2
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
I sent a mail fixing this a few days ago, but I didn't finalize
the patch according to suggestions, my finger broke.
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=28794#c2
So, in order to fix this issue, someone needs to update the kernel towork with the new binutils version.
It did boot, that much I tested before rejoining my couch adventure.
On Thu, Jan 20, 2022, 09:28 John Paul Adrian Glaubitz < glaubitz@physik.fu-berlin.de> wrote:
Hi Mike!
On 1/20/22 08:48, Mike wrote:
I sent a mail fixing this a few days ago, but I didn't finalize
the patch according to suggestions, my finger broke.
This is actually a more complex issue, in particular the assembler was
changed on PowerPC when handling the .machine directive, see [1].
So, in order to fix this issue, someone needs to update the kernel to
work with the new binutils version.
Adrian
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=28794#c2
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
<div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jan 20, 2022, 09:28 John Paul Adrian Glaubitz <<a href="mailto:glaubitz@physik.fu-berlin.de" rel="noreferrer noreferrer" target="_blank">glaubitz@physik.fu-berlin.de</a>> wrote:<
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mike!<br>
So, in order to fix this issue, someone needs to update the kernel to work with the new binutils version.
That's what the patch does, I did a full Debian kernel build, but I'm having trouble explaining myself with my left hand.
From [1]:
[1] https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=5.15.15-1&stamp=1642579068&raw=0
[2] https://buildd.debian.org/status/fetch.php?pkg=linux&arch=ppc64&ver=5.15.15-1&stamp=1642578946&raw=0
Hi Mike!
On 1/20/22 09:46, Mike wrote:
work with the new binutils version.So, in order to fix this issue, someone needs to update the kernel to
That's what the patch does, I did a full Debian kernel build, but I'mhaving trouble explaining myself with my left hand.
I still think that your patch is incomplete as the "dsall" instruction is
not the only
instruction that is affected by this change. See the kernel build logs
below.
From [1]:
{standard input}: Assembler messages:
{standard input}:1353: Error: unrecognized opcode: `ptesync'
and [2]:
{standard input}: Assembler messages:
{standard input}:2146: Error: unrecognized opcode: `stbcix'
[1]https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=5.15.15-1&stamp=1642579068&raw=0
[2]https://buildd.debian.org/status/fetch.php?pkg=linux&arch=ppc64&ver=5.15.15-1&stamp=1642578946&raw=0
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Mike!<br>
From [1]:<br>
'stbcix' has to come from arch/powerpc/include/asm/io.h - and is already behind an ifdefs, though try changing it to #ifdef CONFIG_PPC64? I'm building now.
Michael
On Thu, Jan 20, 2022, 10:05 John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de> wrote:
Hi Mike!
On 1/20/22 09:46, Mike wrote:
So, in order to fix this issue, someone needs to update the kernel to work with the new binutils version.
That's what the patch does, I did a full Debian kernel build, but I'm having trouble explaining myself with my left hand.
I still think that your patch is incomplete as the "dsall" instruction is not the only
instruction that is affected by this change. See the kernel build logs below.
From [1]:
{standard input}: Assembler messages:
{standard input}:1353: Error: unrecognized opcode: `ptesync'
and [2]:
{standard input}: Assembler messages:
{standard input}:2146: Error: unrecognized opcode: `stbcix'
[1] https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=5.15.15-1&stamp=1642579068&raw=0
[2] https://buildd.debian.org/status/fetch.php?pkg=linux&arch=ppc64&ver=5.15.15-1&stamp=1642578946&raw=0
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Hi Mike!
On 1/20/22 09:46, Mike wrote:
work with the new binutils version.So, in order to fix this issue, someone needs to update the kernel to
That's what the patch does, I did a full Debian kernel build, but I'mhaving trouble explaining myself with my left hand.
I still think that your patch is incomplete as the "dsall" instruction is
not the only
instruction that is affected by this change. See the kernel build logs
below.
From [1]:
{standard input}: Assembler messages:
{standard input}:1353: Error: unrecognized opcode: `ptesync'
and [2]:
{standard input}: Assembler messages:
{standard input}:2146: Error: unrecognized opcode: `stbcix'
[1]https://buildd.debian.org/status/fetch.php?pkg=linux&arch=powerpc&ver=5.15.15-1&stamp=1642579068&raw=0
[2]https://buildd.debian.org/status/fetch.php?pkg=linux&arch=ppc64&ver=5.15.15-1&stamp=1642578946&raw=0
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
From [1]:<br>
Waiting for git to do it's thing, but do we need a voodoo priest(es)
here? The attached patch is building.
Hello Mike!
On 1/21/22 23:07, Mike wrote:
Waiting for git to do it's thing, but do we need a voodoo priest(es)
here? The attached patch is building.
I will have a look at this issue next week myself. We need to make sure
that it not only fixes 32-bit PowerPC but also 64-bit PowerPC big-endian.
Also, test builds of Debian the packages are necessary as well.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
I think I need to add a || CONFIG_POWER6_CPU to that 'stbcix' condition..
-Mike
On Sat, Jan 22, 2022, 09:42 John Paul Adrian Glaubitz < glaubitz@physik.fu-berlin.de> wrote:
Hello Mike!
On 1/21/22 23:07, Mike wrote:
Waiting for git to do it's thing, but do we need a voodoo priest(es)
here? The attached patch is building.
I will have a look at this issue next week myself. We need to make sure
that it not only fixes 32-bit PowerPC but also 64-bit PowerPC big-endian.
Also, test builds of Debian the packages are necessary as well.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
I've sent in a patch with my remaining concerns attached to the mailing lists and set up a linux-next branch finally.
https://github.com/threader/linux/tree/master-build-ppc
In regards to asm/i
Hi all,
kernel build fails on powerpc 32bit no matter what version is used (5.14-5.16):
{standard input}: Assembler messages:
{standard input}:29: Error: unrecognized opcode: `dssall'
make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
make[3]: *** [Makefile:1861: arch/powerpc] Error 2
make[2]: *** [debian/rules:7: build-arch] Error 2
I assume the latest binutils (2.37.50.20220106-2) don't work
properly. Anyone made the same experience?
This works : https://github.com/threader/linux/commit/226efa05733457bb5c483f30aab6d5c6a304422c,
but in doing so I was allerted to 'lwsync' not being enabled on 32bit, and so will have to check
out the assembly after enabled. So it works but I have deep rooted questions as always.
Hello Elimar!
On 1/29/22 14:56, Elimar Riesebieter wrote:
I assume the latest binutils (2.37.50.20220106-2) don't work
properly. Anyone made the same experience?
No fix with binutils 2.37.90.20220123-2
That's not surprising because the bug must be fixed on the kernel side,
not binutils. See the explanation here [1].
Adrian
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=28794
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
Hello Mike!
On 1/30/22 12:11, Mike wrote:
This works :https://github.com/threader/linux/commit/226efa05733457bb5c483f30aab6d5c6a304422c
,
but in doing so I was allerted to 'lwsync' not being enabled on 32bit,and so will have to check
out the assembly after enabled. So it works but I have deep rootedquestions as always.
I would just wait until the maintainers of the Linux PowerPC port come up with their own build fix,
they just haven't seen this issue yet because they're not using a
pre-release version of binutils.
Adrian
--
.''`. John Paul Adrian Glaubitz
: :' : Debian Developer - glaubitz@debian.org
`. `' Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
`- GPG: 62FF 8A75 84E0 2956 9546 0006 7426 3B37 F5B5 F913
The behavior of binutils is probably correct. 'dssall' needs altivec and that was disabled for arch/powerpc/lib an mm etc
[1] https://sourceware.org/bugzilla/show_bug.cgi?id=28794
kernel build fails on powerpc 32bit no matter what version is used (5.14-5.16):
{standard input}: Assembler messages:
{standard input}:29: Error: unrecognized opcode: `dssall'
make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
make[3]: *** [Makefile:1861: arch/powerpc] Error 2
make[2]: *** [debian/rules:7: build-arch] Error 2
I assume the latest binutils (2.37.50.20220106-2) don't work
properly. Anyone made the same experience?
Hi Elimar!
On 1/19/22 14:35, Elimar Riesebieter wrote:
kernel build fails on powerpc 32bit no matter what version is used (5.14-5.16):
{standard input}: Assembler messages:
{standard input}:29: Error: unrecognized opcode: `dssall'
make[5]: *** [scripts/Makefile.build:271: arch/powerpc/mm/mmu_context.o] Error 1
make[4]: *** [scripts/Makefile.build:514: arch/powerpc/mm] Error 2
make[3]: *** [Makefile:1861: arch/powerpc] Error 2
make[2]: *** [debian/rules:7: build-arch] Error 2
I assume the latest binutils (2.37.50.20220106-2) don't work
properly. Anyone made the same experience?
This issue was recently fixed upstream.
Could you kindly check whether the issue has been fixed for you and you
can build and boot your own kernel again?
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 285 |
Nodes: | 16 (2 / 14) |
Uptime: | 65:15:50 |
Calls: | 6,488 |
Calls today: | 1 |
Files: | 12,096 |
Messages: | 5,274,919 |