linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* [FSL P50x0] [GIT KERNEL] [VDSO] compiling issue
@ 2024-09-19 12:29 Christian Zigotzky
  2024-09-19 12:37 ` Christian Zigotzky
  0 siblings, 1 reply; 6+ messages in thread
From: Christian Zigotzky @ 2024-09-19 12:29 UTC (permalink / raw)
  To: linuxppc-dev, R.T.Dickinson, mad skateman, Darren Stevens

Hi All,

The compiling of the latest Git kernel doesn’t work anymore for our FSL 
P5020/P5040 boards [1] since the random-6.12-rc1 updates [2].

Error messages:

arch/powerpc/kernel/vdso/vdso32.so.dbg: dynamic relocations are not 
supported

make[2]: *** [arch/powerpc/kernel/vdso/Makefile:75: 
arch/powerpc/kernel/vdso/vdso32.so.dbg]

Reverting of the vdso updates has solved the compiing issue.

Could you please check the random-6.12-rc1 updates? [2]

Thanks,
Christian

[1] http://wiki.amiga.org/index.php?title=X5000
[2] 
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4a39ac5b7d62679c07a3e3d12b0f6982377d8a7d


^ permalink raw reply	[flat|nested] 6+ messages in thread

* [FSL P50x0] [GIT KERNEL] [VDSO] compiling issue
  2024-09-19 12:29 [FSL P50x0] [GIT KERNEL] [VDSO] compiling issue Christian Zigotzky
@ 2024-09-19 12:37 ` Christian Zigotzky
  0 siblings, 0 replies; 6+ messages in thread
From: Christian Zigotzky @ 2024-09-19 12:37 UTC (permalink / raw)
  To: linuxppc-dev, R.T.Dickinson, mad skateman, Darren Stevens

On 19 September 2024 at 2:29 pm, Christian Zigotzky wrote:
> Hi All,
>
> The compiling of the latest Git kernel doesn’t work anymore for our 
> FSL P5020/P5040 boards [1] since the random-6.12-rc1 updates [2].
>
> Error messages:
>
> arch/powerpc/kernel/vdso/vdso32.so.dbg: dynamic relocations are not 
> supported
>
> make[2]: *** [arch/powerpc/kernel/vdso/Makefile:75: 
> arch/powerpc/kernel/vdso/vdso32.so.dbg]
>
> Reverting of the vdso updates has solved the compiing issue.
>
> Could you please check the random-6.12-rc1 updates? [2]
>
> Thanks,
> Christian
>
> [1] http://wiki.amiga.org/index.php?title=X5000
> [2] 
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4a39ac5b7d62679c07a3e3d12b0f6982377d8a7d

+ Kernel config

Link: 
https://raw.githubusercontent.com/chzigotzky/kernels/refs/heads/main/configs/x5000_defconfig



^ permalink raw reply	[flat|nested] 6+ messages in thread

* [FSL P50x0] [GIT KERNEL] [VDSO] compiling issue
       [not found] <de2d1e74-52e5-4d74-8228-4aaea61cad51@xenosoft.de>
@ 2024-09-19 15:02 ` Christian Zigotzky
  2024-09-19 15:15   ` Christophe Leroy
  2024-09-20  4:30   ` Michael Ellerman
  0 siblings, 2 replies; 6+ messages in thread
From: Christian Zigotzky @ 2024-09-19 15:02 UTC (permalink / raw)
  To: Michael Ellerman, Christophe Leroy
  Cc: linuxppc-dev, Trevor Dickinson, mad skateman, Darren Stevens

Hi All,

The compiling of the latest Git kernel doesn’t work anymore for our FSL P5020/P5040 boards [1] since the random-6.12-rc1 updates [2].

Error messages:

arch/powerpc/kernel/vdso/vdso32.so.dbg: dynamic relocations are not supported

make[2]: *** [arch/powerpc/kernel/vdso/Makefile:75: arch/powerpc/kernel/vdso/vdso32.so.dbg]

Reverting of the vdso updates has solved the compiing issue.

Could you please check the random-6.12-rc1 updates? [2]

Thanks,
Christian

[1] http://wiki.amiga.org/index.php?title=X5000

[2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4a39ac5b7d62679c07a3e3d12b0f6982377d8a7d

+ Kernel config

Link: https://raw.githubusercontent.com/chzigotzky/kernels/refs/heads/main/configs/x5000_defconfig

+ Christophe Leroy
+ Michael Ellerman


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [FSL P50x0] [GIT KERNEL] [VDSO] compiling issue
  2024-09-19 15:02 ` Christian Zigotzky
@ 2024-09-19 15:15   ` Christophe Leroy
  2024-09-20  4:30   ` Michael Ellerman
  1 sibling, 0 replies; 6+ messages in thread
From: Christophe Leroy @ 2024-09-19 15:15 UTC (permalink / raw)
  To: Christian Zigotzky, Michael Ellerman
  Cc: linuxppc-dev, Trevor Dickinson, mad skateman, Darren Stevens

Hi Christian,

Le 19/09/2024 à 17:02, Christian Zigotzky a écrit :
> Hi All,
> 
> The compiling of the latest Git kernel doesn’t work anymore for our FSL P5020/P5040 boards [1] since the random-6.12-rc1 updates [2].
> 
> Error messages:
> 
> arch/powerpc/kernel/vdso/vdso32.so.dbg: dynamic relocations are not supported
> 
> make[2]: *** [arch/powerpc/kernel/vdso/Makefile:75: arch/powerpc/kernel/vdso/vdso32.so.dbg]
> 
> Reverting of the vdso updates has solved the compiing issue.
> 
> Could you please check the random-6.12-rc1 updates? [2]
> 
> Thanks,
> Christian
> 
> [1] https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.amiga.org%2Findex.php%3Ftitle%3DX5000&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C4b327823a8d843f5dc8d08dcd8bc2600%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638623549830455660%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=xtne08CcJdt0jF0eir8q%2F5CeMcCv6JN4Uj4LDKqUiog%3D&reserved=0
> 
> [2] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git%2Fcommit%2F%3Fid%3D4a39ac5b7d62679c07a3e3d12b0f6982377d8a7d&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C4b327823a8d843f5dc8d08dcd8bc2600%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638623549830472839%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=sVQ9FhoXe9YDrqFrwb4a1rmMlN7Kegg7z1yMQ4uAFvo%3D&reserved=0
> 
> + Kernel config
> 
> Link: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fchzigotzky%2Fkernels%2Frefs%2Fheads%2Fmain%2Fconfigs%2Fx5000_defconfig&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7C4b327823a8d843f5dc8d08dcd8bc2600%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638623549830486185%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=SQi%2B9R4TM59QB8Msxq3KuKPvvJEBMVUdyOhoY6ndzVU%3D&reserved=0
> 
> + Christophe Leroy
> + Michael Ellerman

Can you try with the following change:

diff --git a/arch/powerpc/lib/crtsavres.S b/arch/powerpc/lib/crtsavres.S
index 7e5e1c28e56a..8967903c15e9 100644
--- a/arch/powerpc/lib/crtsavres.S
+++ b/arch/powerpc/lib/crtsavres.S
@@ -46,7 +46,7 @@

  	.section ".text"

-#ifndef CONFIG_PPC64
+#ifndef __powerpc64__

  /* Routines for saving integer registers, called by the compiler.  */
  /* Called with r11 pointing to the stack header word of the caller of 
the */


^ permalink raw reply related	[flat|nested] 6+ messages in thread

* Re: [FSL P50x0] [GIT KERNEL] [VDSO] compiling issue
  2024-09-19 15:02 ` Christian Zigotzky
  2024-09-19 15:15   ` Christophe Leroy
@ 2024-09-20  4:30   ` Michael Ellerman
  2024-09-20  4:39     ` Christophe Leroy
  1 sibling, 1 reply; 6+ messages in thread
From: Michael Ellerman @ 2024-09-20  4:30 UTC (permalink / raw)
  To: Christian Zigotzky, Christophe Leroy
  Cc: linuxppc-dev, Trevor Dickinson, mad skateman, Darren Stevens

Christian Zigotzky <chzigotzky@xenosoft.de> writes:
> Hi All,
>
> The compiling of the latest Git kernel doesn’t work anymore for our FSL P5020/P5040 boards [1] since the random-6.12-rc1 updates [2].
>
> Error messages:
>
> arch/powerpc/kernel/vdso/vdso32.so.dbg: dynamic relocations are not supported
>
> make[2]: *** [arch/powerpc/kernel/vdso/Makefile:75: arch/powerpc/kernel/vdso/vdso32.so.dbg]
>
> Reverting of the vdso updates has solved the compiing issue.
>
> Could you please check the random-6.12-rc1 updates? [2]
>
> Thanks,
> Christian
>
> [1] http://wiki.amiga.org/index.php?title=X5000
>
> [2] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4a39ac5b7d62679c07a3e3d12b0f6982377d8a7d
>
> + Kernel config
>
> Link: https://raw.githubusercontent.com/chzigotzky/kernels/refs/heads/main/configs/x5000_defconfig

Your config has:

  # CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set
  CONFIG_CC_OPTIMIZE_FOR_SIZE=y

But all our defconfigs use CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE. Which
explains why we didn't catch this in build testing. I've added a build
with OPTIMIZE_FOR_SIZE=y so hopefully we'll catch any similar errors in
future.

cheers


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [FSL P50x0] [GIT KERNEL] [VDSO] compiling issue
  2024-09-20  4:30   ` Michael Ellerman
@ 2024-09-20  4:39     ` Christophe Leroy
  0 siblings, 0 replies; 6+ messages in thread
From: Christophe Leroy @ 2024-09-20  4:39 UTC (permalink / raw)
  To: Michael Ellerman, Christian Zigotzky
  Cc: linuxppc-dev, Trevor Dickinson, mad skateman, Darren Stevens



Le 20/09/2024 à 06:30, Michael Ellerman a écrit :
> Christian Zigotzky <chzigotzky@xenosoft.de> writes:
>> Hi All,
>>
>> The compiling of the latest Git kernel doesn’t work anymore for our FSL P5020/P5040 boards [1] since the random-6.12-rc1 updates [2].
>>
>> Error messages:
>>
>> arch/powerpc/kernel/vdso/vdso32.so.dbg: dynamic relocations are not supported
>>
>> make[2]: *** [arch/powerpc/kernel/vdso/Makefile:75: arch/powerpc/kernel/vdso/vdso32.so.dbg]
>>
>> Reverting of the vdso updates has solved the compiing issue.
>>
>> Could you please check the random-6.12-rc1 updates? [2]
>>
>> Thanks,
>> Christian
>>
>> [1] https://eur01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.amiga.org%2Findex.php%3Ftitle%3DX5000&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7Ce6f19b86406f4cd847f508dcd92d0a13%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638624034682015871%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=VyrTeeljcPlZqFqPSu2unkEoxrEB9%2FCCDdOnIr7CvG4%3D&reserved=0
>>
>> [2] https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgit.kernel.org%2Fpub%2Fscm%2Flinux%2Fkernel%2Fgit%2Ftorvalds%2Flinux.git%2Fcommit%2F%3Fid%3D4a39ac5b7d62679c07a3e3d12b0f6982377d8a7d&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7Ce6f19b86406f4cd847f508dcd92d0a13%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638624034682033680%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=EU8R%2BOEIQUWivXDhkcdwvyUfGqR13%2FOAlm3VUntSblk%3D&reserved=0
>>
>> + Kernel config
>>
>> Link: https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fraw.githubusercontent.com%2Fchzigotzky%2Fkernels%2Frefs%2Fheads%2Fmain%2Fconfigs%2Fx5000_defconfig&data=05%7C02%7Cchristophe.leroy%40csgroup.eu%7Ce6f19b86406f4cd847f508dcd92d0a13%7C8b87af7d86474dc78df45f69a2011bb5%7C0%7C0%7C638624034682046602%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=r9CQKH74EJx%2B74Yniufx%2BFgvPSJVlGgFrvMma1K9Uaw%3D&reserved=0
> 
> Your config has:
> 
>    # CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE is not set
>    CONFIG_CC_OPTIMIZE_FOR_SIZE=y
> 
> But all our defconfigs use CONFIG_CC_OPTIMIZE_FOR_PERFORMANCE. Which
> explains why we didn't catch this in build testing. I've added a build
> with OPTIMIZE_FOR_SIZE=y so hopefully we'll catch any similar errors in
> future.
> 

And I sent a patch to fix it:

https://patchwork.ozlabs.org/project/linuxppc-dev/patch/aded2b257018fe654db759fdfa4ab1a0b5426b1b.1726772140.git.christophe.leroy@csgroup.eu/

Christophe


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-20  4:39 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-19 12:29 [FSL P50x0] [GIT KERNEL] [VDSO] compiling issue Christian Zigotzky
2024-09-19 12:37 ` Christian Zigotzky
     [not found] <de2d1e74-52e5-4d74-8228-4aaea61cad51@xenosoft.de>
2024-09-19 15:02 ` Christian Zigotzky
2024-09-19 15:15   ` Christophe Leroy
2024-09-20  4:30   ` Michael Ellerman
2024-09-20  4:39     ` Christophe Leroy

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).