[5.16.0] build error on unrecognized opcode: ptesync

Mike michael.heltne at gmail.com
Tue Jan 11 20:32:25 AEDT 2022


I managed to fix it in the end, patch attached, though i should have
done a $(call cc-option-, -maltivec, -mabi=altivec) in the
arch/powerpc/mm/Makefile
 I wrongly assumed that the manual i had downloaded at 4.44am was for
32bit ppc only and found ptesync to be ppc64 only.

binutils-2.37.50 - GNU assembler version 2.37.50 (powerpc-linux-gnu)
using BFD version (GNU Binutils for Debian) 2.37.50.20220106
gcc version 11.2.0 (Debian 11.2.0-13)
ld.lld is missing but with LLVM/CLANG and LD=ld.bfd
arch/powerpc/kernel/vdso32/gettimeofday.S:72:8:
error: unsupported directive '.stabs'    .stabs
"_restgpr_31_x:F-1",36,0,0,_restgpr_31_x; .globl _restgpr_31_x;
_restgpr_31_x:

Attached the config i'm using, and the debian config 5.15.0-2. It's
still building.

Cheers
Michael

On Tue, 11 Jan 2022 at 07:20, Christophe Leroy
<christophe.leroy at csgroup.eu> wrote:
>
>
>
> Le 10/01/2022 à 13:32, Mike a écrit :
> > Hey, so I originally sat down to compile the fast headers V2 patch, but
> > quickly discovered other things at play, and grabbed 5.16.0 a few hours
> > after it lifted off,  arch/powerpc/mm/mmu_context.c I had to
> > specifically say had to include -maltivec or it barfed on a 'dssall',
> > I'm fine with that, I've spent years in kernel land, I can deal with
> > that, then came arch/powerpc/lib/step.c with the ptesync. This seems
> > like a totally normal instruction that shouldn't need any extra flags or
> > anything, yet the assembler throws up, and no flag I can think of fixes
> > it. This is a G4 7447. I reverted back to the Debian 5.15. defconfig
> > before dropping this mail as I had tweaked my config to be more G4.
> >
>
> Hi Mike,
>
> Can you provide a bit more details about your setup and config ?
>
> Are you using GCC or LLVM ?
> What version of GCC and BINUTILS or what version of LLVM ?
>
> What is DEBIAN defconfig ? Does it correspond to one of the standard
> mainline kernel defconfigs ? If not can you provide it ?
>
> Thanks
> Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch-ppc32-build.patch
Type: text/x-patch
Size: 1428 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20220111/cbb55e2f/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config.ppcG4
Type: application/octet-stream
Size: 194688 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20220111/cbb55e2f/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: config-5.15.0-2-powerpc
Type: application/octet-stream
Size: 195809 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/linuxppc-dev/attachments/20220111/cbb55e2f/attachment-0003.obj>


More information about the Linuxppc-dev mailing list