I sent a mail fixing this a few days ago, but I didn't finalize the patch according to suggestions, my finger broke.
Le 11/01/2022 à 10:32, Mike a écrit :
> 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.
Ok, I tried with your config on my Fedora Core 35 where I have:powerpc64-linux-gnu-gcc (GCC) 11.2.1 20210728 (Red Hat Cross 11.2.1-1)GNU ld version 2.37-3.fc35 From packages:- binutils-powerpc64-linux-gnu-2.37-3.fc35.x86_64- gcc-powerpc64-linux-gnu-11.2.1-1.fc35.x86_64And I don't have the problems you mention, so it must be somethingspecial with Debian GCC.Your change regarding ptesync is probably OK but is fragile I think,because for instance there is also a 'ptesync' inarch/powerpc/mm/pageattr.c and probably many other places.Also please prefer CONFIG_PPC64 to __powerpc64__Regarding the DSSALL issue, the following commit will probably help:d51f86cfd8e3 ("powerpc/mm: Switch obsolete dssall to .long")Regarding the .stabs with LLVM there is a patch athttps://patchwork.ozlabs.org/project/linuxppc-dev/patch/68932ec2ba6b868d35006b96e90f0890f3da3c05.1638273868.git.christophe.leroy@csgroup.eu/Thanks
Christophe
-Michael