Skip to contentSkip to conversation

Issues and questions regarding PowerPC 32-bits e500v2 tuning

DISCUSSION Elinor Montmasson 4 participants 8 messages Oct 21 – Oct 23

lore
Share & tools
lore
#0 lore raw

Hello,

My company is currently interested in building a Yocto distribution for a PowerPC 32-bit e500v2 platform using the associated tuning available in OE-Core.
I have a few questions related to the e500v2 tuning in OE-Core.

I understand that PowerPC e500v2 was considered part of a specific architecture category, PowerPC SPE, which isn't supported anymore in GCC as SPE support was dropped in GCC 9.1.
In the e500v2 core, the SPE was used as FPU, meaning code for this architecture can now only be compiled with soft fpu if using active GCC releases. Do you confirm this analysis?

Building a core-image-minimal with the ppce500v2 tuning in OE-Core doesn't work out-of-the-box on Yocto Wrynose.
Recipes building with meson (e.g. xorgproto) fail because the do_configure task runs a "meson-qemuwrapper" binary which fails with SIGILL.
This looks like a floating point configuration problem as adding the tuning feature "fpu-soft" solves this issue.
This would confirm the lack of SPE support and the need to specify soft fpu usage or any usage of floating point will result in an execution error.

* Was any testing done for the e500v2 tuning or the e500 tuning?
* The e500 shares the same SPE specificity.
* Should the e500v2 tuning configuration be considered not up-to-date?
* Is there any plan in updating and testing the e500 and e500v2 tuning configurations?
* Especially, tune-ppce500.inc still enables the "spe" feature, but should encounter the same GCC compatibility problem as the e500v2.

Best regards,
Elinor Montmasson

#1 lore raw

Hello Elinor,

I have already checked SPE on e500 before and can confirm that it needs to be disabled in favor of soft-fpu with newer GCC versions. It of course dramatically decreases performance, but what can we do...

As usual with Yocto, only the default settings are being tested and untested features slowly bit rot by time.
For now, we don't plan to extend our pipeline to all possible tunes/variations.
So ideally, you should send patches to fix your tune configuration and spin a regular local pipeline with Yocto master to catch if it would break again.

Best Regards,
Peter

Quoted 43 lines

-----Original Message-----
From: Elinor Montmasson <[email protected]>
Sent: Wednesday, October 21, 2026 10:35 AM
To: Freihofer, Adrian (SI B PRO TI EAC CCP) <[email protected]>; Marko, Peter (FT D EU SK BFS1) <[email protected]>
Cc: [email protected]
Subject: Issues and questions regarding PowerPC 32-bits e500v2 tuning

Hello,

My company is currently interested in building a Yocto distribution for a PowerPC 32-bit e500v2 platform using the associated tuning available in OE-Core.
I have a few questions related to the e500v2 tuning in OE-Core.

I understand that PowerPC e500v2 was considered part of a specific architecture category, PowerPC SPE, which isn't supported anymore in GCC as SPE support was dropped in GCC 9.1.
In the e500v2 core, the SPE was used as FPU, meaning code for this architecture can now only be compiled with soft fpu if using active GCC releases. Do you confirm this analysis?

Building a core-image-minimal with the ppce500v2 tuning in OE-Core doesn't work
out-of-the-box on Yocto Wrynose.
Recipes building with meson (e.g. xorgproto) fail because the do_configure task runs a "meson-qemuwrapper" binary which fails with SIGILL.
This looks like a floating point configuration problem as adding the tuning feature "fpu-soft" solves this issue.
This would confirm the lack of SPE support and the need to specify soft fpu usage or any usage of floating point will result in an execution error.

* Was any testing done for the e500v2 tuning or the e500 tuning?
* The e500 shares the same SPE specificity.
* Should the e500v2 tuning configuration be considered not up-to-date?
* Is there any plan in updating and testing the e500 and e500v2 tuning configurations?
* Especially, tune-ppce500.inc still enables the "spe" feature, but should encounter the same GCC compatibility problem as the
e500v2.

Best regards,
Elinor Montmasson

#2 lore raw

Hello Peter,

----- Original Message -----

Quoted 12 lines

From: "peter marko" <[email protected]>
To: "Elinor Montmasson" <[email protected]>, "adrian freihofer" <[email protected]>
Cc: "yocto" <[email protected]>
Sent: Wednesday, 21 October, 2026 15:50:22
Subject: RE: Issues and questions regarding PowerPC 32-bits e500v2 tuning

Hello Elinor,

I have already checked SPE on e500 before and can confirm that it needs to be disabled in favor of soft-fpu with newer GCC versions.
It of course dramatically decreases performance, but what can we do...

Quoted 8 lines

As usual with Yocto, only the default settings are being tested and untested features slowly bit rot by time.
For now, we don't plan to extend our pipeline to all possible tunes/variations. So ideally, you should send patches to fix your tune configuration and spin a regular local pipeline with Yocto master to catch if it would break again.

Best Regards,
Peter

Ok, thank you for your answer, at least it confirms my analysis.

Because GCC is not an option for SPE support, I am considering using the LLVM/Clang toolchain through meta-clang, as it seems to support PowerPC SPE.
I know that some specific recipes will require building with GCC anyway, in that case fpu-soft will be enabled, but most of the distribution could build with clang.

Is it something you have tested?

Best regards,
Elinor Montmasson

#3 lore raw
Quoted 37 lines

-----Original Message-----
From: Elinor Montmasson <[email protected]>
Sent: Wednesday, October 21, 2026 5:02 PM
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>
Cc: Freihofer, Adrian (SI B PRO TI EAC CCP) <[email protected]>; yocto <[email protected]>
Subject: Re: Issues and questions regarding PowerPC 32-bits e500v2 tuning

Hello Peter,

----- Original Message -----

Quoted 2 lines

From: "peter marko" <[email protected]>
To: "Elinor Montmasson" <[email protected]>, "adrian

freihofer" <[email protected]>

Quoted 10 lines

Cc: "yocto" <[email protected]>
Sent: Wednesday, 21 October, 2026 15:50:22
Subject: RE: Issues and questions regarding PowerPC 32-bits e500v2 tuning

Hello Elinor,

I have already checked SPE on e500 before and can confirm that it needs to be disabled in favor of soft-fpu with newer GCC versions.
It of course dramatically decreases performance, but what can we do...

Quoted 8 lines

As usual with Yocto, only the default settings are being tested and untested features slowly bit rot by time.
For now, we don't plan to extend our pipeline to all possible tunes/variations. So ideally, you should send patches to fix your tune configuration and spin a regular local pipeline with Yocto master to catch if it would break again.

Best Regards,
Peter

Ok, thank you for your answer, at least it confirms my analysis.

Quoted 8 lines

Because GCC is not an option for SPE support, I am considering using the LLVM/Clang toolchain through meta-clang, as it seems to support PowerPC SPE.
I know that some specific recipes will require building with GCC anyway, in that case fpu-soft will be enabled, but most of the distribution could build with clang.

Is it something you have tested?

This is an interesting idea well worth trying, but afaik we have not tried that.
Note that I was only involved in discussions with other projects, I personally have never built/used e500.

Peter

Quoted 3 lines

Best regards,
Elinor Montmasson

#4 lore raw
Quoted 56 lines · On Thu, 2026-10-22 at 08:21 +0000, Marko, Peter (FT D EU SK BFS1) wrote:
Quoted 56 lines

-----Original Message-----
From: Elinor Montmasson <[email protected]>
Sent: Wednesday, October 21, 2026 5:02 PM
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>
Cc: Freihofer, Adrian (SI B PRO TI EAC CCP) <[email protected]>;
yocto <[email protected]>
Subject: Re: Issues and questions regarding PowerPC 32-bits e500v2 tuning

Hello Peter,

----- Original Message -----

Quoted 3 lines

From: "peter marko" <[email protected]>
To: "Elinor Montmasson" <[email protected]>, "adrian

freihofer" <[email protected]>

Quoted 23 lines

Cc: "yocto" <[email protected]>
Sent: Wednesday, 21 October, 2026 15:50:22
Subject: RE: Issues and questions regarding PowerPC 32-bits e500v2 tuning

Hello Elinor,

I have already checked SPE on e500 before and can confirm that it needs to be
disabled in favor of soft-fpu with newer GCC versions. It of course dramatically decreases performance, but what can we do...

As usual with Yocto, only the default settings are being tested and untested
features slowly bit rot by time.
For now, we don't plan to extend our pipeline to all possible tunes/variations.
So ideally, you should send patches to fix your tune configuration and spin a
regular local pipeline with Yocto master to catch if it would break again.

Quoted 2 lines

Best Regards,
 Peter

Ok, thank you for your answer, at least it confirms my analysis.

Because GCC is not an option for SPE support, I am considering using
the LLVM/Clang toolchain through meta-clang, as it seems to support PowerPC SPE.
I know that some specific recipes will require building with GCC anyway,
in that case fpu-soft will be enabled, but most of the distribution could build with clang.

Quoted 6 lines
Quoted 1 line

Is it something you have tested?

This is an interesting idea well worth trying, but afaik we have not tried that.
Note that I was only involved in discussions with other projects, I personally have never built/used e500.

Hi Elinor

I remember the times when I was working with a MPC5200. Quite a few years ago :-).

If you can mix binaries built with different floating point implementations depends on the details of the CPU architecture, at least. We had some discussions related to ARM 32 a few years ago. I just remember that "it depends on the details".

With wrynose there is now a TOOLCHAIN variable which can be set to clang globally. But it depends on what you need if a build without gcc is possible or not. For example, there is a patchset which fixes glibc for building with clang (around 50 patches from ARM) somewhere around. With musl it should work as well. Not sure this would allow you to go with clang only for your use case.

There are also some discussions with maintaining some LTS branches like dunfell for longer than 4 years unofficially by users who need that.

Just some alternative ideas.

Regards,
Adrian

Quoted 6 lines

Peter

Quoted 3 lines

Best regards,
Elinor Montmasson

#5 lore raw
Quoted 82 lines · Adrian Freihofer via lists.yoctoproject.org
Quoted 56 lines · On Thu, 2026-10-22 at 08:21 +0000, Marko, Peter (FT D EU SK BFS1) wrote:
Quoted 56 lines

-----Original Message-----
From: Elinor Montmasson <[email protected]>
Sent: Wednesday, October 21, 2026 5:02 PM
To: Marko, Peter (FT D EU SK BFS1) <[email protected]>
Cc: Freihofer, Adrian (SI B PRO TI EAC CCP) <[email protected]>;
yocto <[email protected]>
Subject: Re: Issues and questions regarding PowerPC 32-bits e500v2 tuning

Hello Peter,

----- Original Message -----

Quoted 3 lines

From: "peter marko" <[email protected]>
To: "Elinor Montmasson" <[email protected]>, "adrian

freihofer" <[email protected]>

Quoted 23 lines

Cc: "yocto" <[email protected]>
Sent: Wednesday, 21 October, 2026 15:50:22
Subject: RE: Issues and questions regarding PowerPC 32-bits e500v2 tuning

Hello Elinor,

I have already checked SPE on e500 before and can confirm that it needs to be
disabled in favor of soft-fpu with newer GCC versions. It of course dramatically decreases performance, but what can we do...

As usual with Yocto, only the default settings are being tested and untested
features slowly bit rot by time.
For now, we don't plan to extend our pipeline to all possible tunes/variations.
So ideally, you should send patches to fix your tune configuration and spin a
regular local pipeline with Yocto master to catch if it would break again.

Quoted 2 lines

Best Regards,
Peter

Ok, thank you for your answer, at least it confirms my analysis.

Because GCC is not an option for SPE support, I am considering using
the LLVM/Clang toolchain through meta-clang, as it seems to support PowerPC SPE.
I know that some specific recipes will require building with GCC anyway,
in that case fpu-soft will be enabled, but most of the distribution could build with clang.

Quoted 6 lines
Quoted 1 line

Is it something you have tested?

This is an interesting idea well worth trying, but afaik we have not tried that.
Note that I was only involved in discussions with other projects, I personally have never built/used e500.

Hi Elinor

I remember the times when I was working with a MPC5200. Quite a few years ago :-).

If you can mix binaries built with different floating point implementations depends on the details of the CPU architecture, at least. We had some discussions related to ARM 32 a few years ago. I just remember that "it depends on the details".

With wrynose there is now a TOOLCHAIN variable which can be set to clang globally. But it depends on what you need if a build without gcc is possible or not. For example, there is a patchset which fixes glibc for building with clang (around 50 patches from ARM) somewhere around. With musl it should work as well. Not sure this would allow you to go with clang only for your use case.

Quoted 6 lines

There are also some discussions with maintaining some LTS branches like dunfell for longer than 4 years unofficially by users who need that.

Just some alternative ideas.

GCC dropped SPE in 9.1 timeframe, so soft-float is the only option. however another
issue is that glibc also dropped it starting 2.30 release, so only option is using musl since
it does support single float (-sf) abi on ppc.

I added 0019-Re-introduce-spe-commandline-options.patch, back then to keep qemuppc working, it simply made gcc to accept -mabi=spe -mspe -mfloat-gprs=double
which are passed from tune-ppce500v2.inc, it then ignores them and falls back to
classic hard-float FPU instructions, e500v2 has no classic FPU, so the binaries crash with SIGILL
is no surprise. tune-ppce500.inc has the same problem. It has the same spe feature with
-mfloat-gprs=single.
a performance-compromised fix is to make these tunes use fpu-soft and drop spe

Using clang is not going to work out of box either, while it does support SPE it does have
some things to take care of e.g. -mfloat-gprs=double is not supported. it also will reject
linux-gnuspe and linux-muslspe triples that OE uses. it needs something
like powerpcspe-*-*
or patching llvm sources to do what OE has done in past.

Some recipes with GCC + fpu-soft, the rest with clang + SPE combo has an ABI problem.
Ordinary calls and returns are compatible, since both pass doubles in pairs of general registers.
The trouble is mixing the two in one process: a libgcc built for soft-float sets the FP environment
differently from SPE code.

Dunfell is not a way to keep SPE; only warrior or older is.

Quoted 22 lines

Regards,
Adrian

Quoted 6 lines

Peter

Quoted 3 lines

Best regards,
Elinor Montmasson

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
You automatically follow any topics you start or reply to. View/Reply Online (#66780):
https://lists.yoctoproject.org/g/yocto/message/66780
Mute This Topic: https://lists.yoctoproject.org/mt/121863659/1997914
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#6 lore raw

----- Original Message -----

Quoted 31 lines

From: "Khem Raj" <[email protected]>
To: "yocto" <[email protected]>, "adrian freihofer" <[email protected]>
Cc: "Elinor Montmasson" <[email protected]>
Sent: Thursday, 22 October, 2026 22:37:25
Subject: Re: [yocto] Issues and questions regarding PowerPC 32-bits e500v2 tuning

Quoted 24 lines

On Thu, Oct 22, 2026 at 2:27 AM Adrian Freihofer via [
http://lists.yoctoproject.org/ | lists.yoctoproject.org ] <adrian.freihofer= [ mailto:[email protected] | [email protected] ] > wrote:

Hi Elinor

I remember the times when I was working with a MPC5200. Quite a few years ago :-).

If you can mix binaries built with different floating point implementations depends on the details of the CPU architecture, at least. We had some discussions related to ARM 32 a few years ago. I just remember that "it depends on the details".

With wrynose there is now a TOOLCHAIN variable which can be set to clang globally. But it depends on what you need if a build without gcc is possible or not. For example, there is a patchset which fixes glibc for building with clang (around 50 patches from ARM) somewhere around. With musl it should work as well. Not sure this would allow you to go with clang only for your use case.

There are also some discussions with maintaining some LTS branches like dunfell for longer than 4 years unofficially by users who need that.

Quoted 7 lines
Quoted 1 line

Just some alternative ideas.

GCC dropped SPE in 9.1 timeframe, so soft-float is the only option. however another
issue is that glibc also dropped it starting 2.30 release, so only option is using musl since
it does support single float (-sf) abi on ppc.

Yes good point thanks

Quoted 11 lines

I added 0019-Re-introduce-spe-commandline-options.patch, back then to keep qemuppc working, it simply made gcc to accept -mabi=spe -mspe -mfloat-gprs=double
which are passed from tune-ppce500v2.inc, it then ignores them and falls back to classic hard-float FPU instructions, e500v2 has no classic FPU, so the binaries crash with SIGILL
is no surprise. tune-ppce500.inc has the same problem. It has the same spe feature with
-mfloat-gprs=single.
a performance-compromised fix is to make these tunes use fpu-soft and drop spe

Quoted 3 lines

Using clang is not going to work out of box either, while it does support SPE it does have
some things to take care of e.g. -mfloat-gprs=double is not supported.

Do you know if an equivalent option or options exist with clang for this? Or if it just not relevant with clang?

Quoted 5 lines

it also will reject
linux-gnuspe and linux-muslspe triples that OE uses. it needs something like powerpcspe-*-*
or patching llvm sources to do what OE has done in past.

Quoted 7 lines

Some recipes with GCC + fpu-soft, the rest with clang + SPE combo has an ABI problem.
Ordinary calls and returns are compatible, since both pass doubles in pairs of general registers.
The trouble is mixing the two in one process: a libgcc built for soft-float sets the FP environment
differently from SPE code.

I see
So does it means that for a given application/process, the floating point support (soft or SPE here) must be the same for the runtime used, the dynamic libraries used and the application itself,
to avoid any ABI compatibility problem?

In that case, I suppose two compiler runtime may be installed, compiled with their respective compiler?
* libgcc for GCC + fpu-soft compiled programs
* llvm runtime for clang + SPE compiled programs

But then the ABI compatibility constraint will create complexity for compiling and installing shared libraries.

Quoted 1 line

Dunfell is not a way to keep SPE; only warrior or older is.

Best regards,
Elinor Montmasson

#7 lore raw
Quoted 64 lines · Elinor Montmasson

----- Original Message -----

Quoted 2 lines

From: "Khem Raj" <[email protected]>
To: "yocto" <[email protected]>, "adrian freihofer" <

[email protected]>

Quoted 3 lines

Cc: "Elinor Montmasson" <[email protected]>
Sent: Thursday, 22 October, 2026 22:37:25
Subject: Re: [yocto] Issues and questions regarding PowerPC 32-bits

e500v2 tuning

Quoted 2 lines
Quoted 2 lines

On Thu, Oct 22, 2026 at 2:27 AM Adrian Freihofer via [
http://lists.yoctoproject.org/ | lists.yoctoproject.org ]

<adrian.freihofer= [

Quoted 1 line
Quoted 1 line

mailto:[email protected] |

[email protected]

Quoted 19 lines
Quoted 18 lines

] > wrote:

Hi Elinor

I remember the times when I was working with a MPC5200. Quite a few years ago :-).

If you can mix binaries built with different floating point implementations depends on the details of the CPU architecture, at least. We had some discussions related to ARM 32 a few years ago. I just remember that "it depends on the details".

With wrynose there is now a TOOLCHAIN variable which can be set to clang globally. But it depends on what you need if a build without gcc is possible or not. For example, there is a patchset which fixes glibc for building with clang (around 50 patches from ARM) somewhere around. With musl it should work as well. Not sure this would allow you to go with clang only for your use case.

Quoted 6 lines
Quoted 4 lines

There are also some discussions with maintaining some LTS branches like dunfell for longer than 4 years unofficially by users who need that.

Just some alternative ideas.

GCC dropped SPE in 9.1 timeframe, so soft-float is the only option.

however

Quoted 2 lines

another
issue is that glibc also dropped it starting 2.30 release, so only

option is

Quoted 2 lines

using musl since
it does support single float (-sf) abi on ppc.

Yes good point thanks

Quoted 1 line

I added 0019-Re-introduce-spe-commandline-options.patch, back then to

keep

Quoted 3 lines

qemuppc working, it simply made gcc to accept -mabi=spe -mspe -mfloat-gprs=double
which are passed from tune-ppce500v2.inc, it then ignores them and falls

back to

Quoted 1 line

classic hard-float FPU instructions, e500v2 has no classic FPU, so the

binaries

Quoted 2 lines

crash with SIGILL
is no surprise. tune-ppce500.inc has the same problem. It has the same

spe

Quoted 3 lines

feature with
-mfloat-gprs=single.
a performance-compromised fix is to make these tunes use fpu-soft and

drop spe

Quoted 8 lines
Quoted 1 line

Using clang is not going to work out of box either, while it does

support SPE it

Quoted 2 lines

does have
some things to take care of e.g. -mfloat-gprs=double is not supported.

Do you know if an equivalent option or options exist with clang for this? Or if it just not relevant with clang?

-mspe for -mfloat-gprs=double
-mspe -mefpu2 for -mfloat-gprs=single

Quoted 15 lines
Quoted 3 lines

it also will reject
linux-gnuspe and linux-muslspe triples that OE uses. it needs something

like

Quoted 4 lines

powerpcspe-*-*
or patching llvm sources to do what OE has done in past.

Some recipes with GCC + fpu-soft, the rest with clang + SPE combo has an

ABI

Quoted 2 lines

problem.
Ordinary calls and returns are compatible, since both pass doubles in

pairs of

Quoted 2 lines

general registers.
The trouble is mixing the two in one process: a libgcc built for

soft-float sets

Quoted 9 lines
Quoted 2 lines

the FP environment
differently from SPE code.

I see
So does it means that for a given application/process, the floating point support (soft or SPE here) must be the same for the runtime used, the dynamic libraries used and the application itself,
to avoid any ABI compatibility problem?

yes

Quoted 9 lines

In that case, I suppose two compiler runtime may be installed, compiled with their respective compiler?
* libgcc for GCC + fpu-soft compiled programs
* llvm runtime for clang + SPE compiled programs

But then the ABI compatibility constraint will create complexity for compiling and installing shared libraries.

right thats what i think too

Quoted 7 lines
Quoted 2 lines

Dunfell is not a way to keep SPE; only warrior or older is.

Best regards,
Elinor Montmasson