Skip to contentSkip to conversation

tbb: Disable PPC as COMPATIBLE_MACHINE

meta-oe In review Saul Wold 3 participants 5 messages May 3, 2021 – May 4, 2021

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

From: Saul Wold <[email protected]>

The latest version does not support PPC architecture, so disable the it. Otherwise the following error occurs:

/srv/nvme/yocto/hardknott/builds/tbb/tmp/work/ppc7400-poky-linux/tbb/2021.2.0-r0/git/src/tbb/tools_api/ittnotify_config.h:338:12: error: '__TBB_machine_fetchadd4' was not declared in this scope

  338 |     return __TBB_machine_fetchadd4(ptr, 1) + 1L;
      |            ^~~~~~~~~~~~~~~~~~~~~~~
---
 meta-oe/recipes-support/tbb/tbb_2021.2.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb +3 -0
index b05a59dc7..d8a18866c 100644
@@ -43,3 +43,6 @@ LDFLAGS_append_mips = " -latomic"
 LDFLAGS_append_mipsel = " -latomic"
 
 LDFLAGS_append_libc-musl = " -lucontext"
+
+# The latest version of oneTBB does not support PPC
+COMPATIBLE_MACHINE_powerpc = "(!.*ppc).*"
Signature · 1 line
2.25.1
author
#1 lore raw

PATCH 1/1 tbb: Disable PPC as COMPATIBLE_MACHINE

From: Saul Wold <[email protected]>

The latest version does not support PPC architecture, so disable the it. Otherwise the following error occurs:

/srv/nvme/yocto/hardknott/builds/tbb/tmp/work/ppc7400-poky-linux/tbb/2021.2.0-r0/git/src/tbb/tools_api/ittnotify_config.h:338:12: error: '__TBB_machine_fetchadd4' was not declared in this scope

  338 |     return __TBB_machine_fetchadd4(ptr, 1) + 1L;
      |            ^~~~~~~~~~~~~~~~~~~~~~~
---
 meta-oe/recipes-support/tbb/tbb_2021.2.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb +3 -0
index b05a59dc7..d8a18866c 100644
@@ -43,3 +43,6 @@ LDFLAGS_append_mips = " -latomic"
 LDFLAGS_append_mipsel = " -latomic"
 
 LDFLAGS_append_libc-musl = " -lucontext"
+
+# The latest version of oneTBB does not support PPC
+COMPATIBLE_MACHINE_powerpc = "(!.*ppc).*"
Signature · 1 line
2.25.1
#2 lore raw
Quoted 20 lines · Saul Wold

From: Saul Wold <[email protected]>

The latest version does not support PPC architecture, so disable the it. Otherwise the following error occurs:

/srv/nvme/yocto/hardknott/builds/tbb/tmp/work/ppc7400-poky-linux/tbb/2021.2.0-r0/git/src/tbb/tools_api/ittnotify_config.h:338:12: error: '__TBB_machine_fetchadd4' was not declared in this scope

  338 |     return __TBB_machine_fetchadd4(ptr, 1) + 1L;
      |            ^~~~~~~~~~~~~~~~~~~~~~~
---
 meta-oe/recipes-support/tbb/tbb_2021.2.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb +0 -0
index b05a59dc7..d8a18866c 100644

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb LDFLAGS_append_mips = " -latomic" · line 48

Quoted 6 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb +3 -0
@@ -43,3 +43,6 @@ LDFLAGS_append_mips = " -latomic"
 LDFLAGS_append_mipsel = " -latomic"
 
 LDFLAGS_append_libc-musl = " -lucontext"
+
+# The latest version of oneTBB does not support PPC
+COMPATIBLE_MACHINE_powerpc = "(!.*ppc).*"

Should we also exclude including that package for ppc in packagegroup-meta-oe.bb?

RDEPENDS_packagegroup-meta-oe-support_remove_powerpc = "ssiapi tbb"  <<<---?

Quoted 3 lines
#3 lore raw
Quoted 34 lines · On Mon, May 3, 2021 at 12:07 PM akuster808 <[email protected]> wrote:
Quoted 20 lines · Saul Wold

From: Saul Wold <[email protected]>

The latest version does not support PPC architecture, so disable the it. Otherwise the following error occurs:

/srv/nvme/yocto/hardknott/builds/tbb/tmp/work/ppc7400-poky-linux/tbb/2021.2.0-r0/git/src/tbb/tools_api/ittnotify_config.h:338:12: error: '__TBB_machine_fetchadd4' was not declared in this scope

  338 |     return __TBB_machine_fetchadd4(ptr, 1) + 1L;
      |            ^~~~~~~~~~~~~~~~~~~~~~~
---
 meta-oe/recipes-support/tbb/tbb_2021.2.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb +0 -0
index b05a59dc7..d8a18866c 100644

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb LDFLAGS_append_mips = " -latomic" · line 48

Quoted 6 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb +3 -0
@@ -43,3 +43,6 @@ LDFLAGS_append_mips = " -latomic"
 LDFLAGS_append_mipsel = " -latomic"
 
 LDFLAGS_append_libc-musl = " -lucontext"
+
+# The latest version of oneTBB does not support PPC
+COMPATIBLE_MACHINE_powerpc = "(!.*ppc).*"

Should we also exclude including that package for ppc in packagegroup-meta-oe.bb?

Quoted 1 line

RDEPENDS_packagegroup-meta-oe-support_remove_powerpc = "ssiapi tbb" <<<---?

yes it should be.

Quoted 5 lines
Quoted 4 lines
#4 lore raw
Quoted 33 lines · Khem Raj
Quoted 32 lines · On Mon, May 3, 2021 at 12:07 PM akuster808 <[email protected]> wrote:
Quoted 20 lines · Saul Wold

From: Saul Wold <[email protected]>

The latest version does not support PPC architecture, so disable the it. Otherwise the following error occurs:

/srv/nvme/yocto/hardknott/builds/tbb/tmp/work/ppc7400-poky-linux/tbb/2021.2.0-r0/git/src/tbb/tools_api/ittnotify_config.h:338:12: error: '__TBB_machine_fetchadd4' was not declared in this scope

  338 |     return __TBB_machine_fetchadd4(ptr, 1) + 1L;
      |            ^~~~~~~~~~~~~~~~~~~~~~~
---
 meta-oe/recipes-support/tbb/tbb_2021.2.0.bb | 3 +++
 1 file changed, 3 insertions(+)
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb +0 -0
index b05a59dc7..d8a18866c 100644

meta-oe/recipes-support/tbb/tbb_2021.2.0.bb LDFLAGS_append_mips = " -latomic" · line 48

Quoted 6 lines
meta-oe/recipes-support/tbb/tbb_2021.2.0.bb +3 -0
@@ -43,3 +43,6 @@ LDFLAGS_append_mips = " -latomic"
 LDFLAGS_append_mipsel = " -latomic"
 
 LDFLAGS_append_libc-musl = " -lucontext"
+
+# The latest version of oneTBB does not support PPC
+COMPATIBLE_MACHINE_powerpc = "(!.*ppc).*"

Should we also exclude including that package for ppc in packagegroup-meta-oe.bb?

Quoted 2 lines
Quoted 1 line

RDEPENDS_packagegroup-meta-oe-support_remove_powerpc = "ssiapi tbb" <<<---?

yes it should be.

sysdig and opencv both have a depends on tbb. I suspect world builds may fail.

-armin

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines