Skip to contentSkip to conversation

oci-image-tools: don't build for riscv64

PATCH In review [email protected] 3 participants 6 messages Sep 1, 2023 – Sep 15, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 oci-image-tools: don't build for riscv64

From: Changqing Li <[email protected]>

Currently oci-image-tools has a do_compile error for riscv64. The problem could be reproduced by:
MACHINE=qemuriscv64 bitbake oci-image-tools

So explicitly set COMPATIBLE_HOST here to avoid it building for riscv64. When someone interested in using this recipe for riscv64 fixes the compile issue, this setting could be removed.

Also don't build packagegroup-container/packagegroup-kubernetes since they depends on oci-image-tools

---
 recipes-containers/oci-image-tools/oci-image-tools_git.bb | 2 ++
 recipes-core/packagegroups/packagegroup-container.bb      | 2 ++
 recipes-core/packagegroups/packagegroup-kubernetes.bb     | 2 ++
 3 files changed, 6 insertions(+)
recipes-containers/oci-image-tools/oci-image-tools_git.bb +2 -0
index 4beb3a63..8c5020b3 100644
@@ -29,6 +29,8 @@ EXTRA_OEMAKE="BUILDTAGS=''"
 
 S = "${WORKDIR}/git/src/github.com/opencontainers/image-tools"
 
+COMPATIBLE_HOST:riscv64 = "null"
+
 do_compile() {
 	export GOARCH="${TARGET_GOARCH}"
 	export GOROOT="${STAGING_LIBDIR}/go"
recipes-core/packagegroups/packagegroup-container.bb +2 -0
index 8d418e95..c41576a3 100644
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
 inherit packagegroup
 
+COMPATIBLE_HOST:riscv64 = "null"
+
 PACKAGES = "\
     packagegroup-container \
     packagegroup-lxc \
recipes-core/packagegroups/packagegroup-kubernetes.bb +2 -0
index 70dc9713..7e6937b1 100644
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
 inherit packagegroup
 
+COMPATIBLE_HOST:riscv64 = "null"
+
 # k3s has this restriction
 inherit features_check
 REQUIRED_DISTRO_FEATURES ?= "seccomp"
Signature · 1 line
2.25.1
#1 lore raw

Since riscv isn't tested with meta-virt at all, this isn't the only recipe that has either build or runtime issues.

This is staged to master-next.

Bruce

In message: [meta-virtualization] [PATCH] oci-image-tools: don't build for riscv64

Quoted 72 lines · on 01/09/2023 Changqing Li wrote:

From: Changqing Li <[email protected]>

Currently oci-image-tools has a do_compile error for riscv64. The problem could be reproduced by:
MACHINE=qemuriscv64 bitbake oci-image-tools

So explicitly set COMPATIBLE_HOST here to avoid it building for riscv64. When someone interested in using this recipe for riscv64 fixes the compile issue, this setting could be removed.

Also don't build packagegroup-container/packagegroup-kubernetes since they depends on oci-image-tools

---
 recipes-containers/oci-image-tools/oci-image-tools_git.bb | 2 ++
 recipes-core/packagegroups/packagegroup-container.bb      | 2 ++
 recipes-core/packagegroups/packagegroup-kubernetes.bb     | 2 ++
 3 files changed, 6 insertions(+)
recipes-containers/oci-image-tools/oci-image-tools_git.bb +2 -0
index 4beb3a63..8c5020b3 100644
@@ -29,6 +29,8 @@ EXTRA_OEMAKE="BUILDTAGS=''"
 
 S = "${WORKDIR}/git/src/github.com/opencontainers/image-tools"
 
+COMPATIBLE_HOST:riscv64 = "null"
+
 do_compile() {
 	export GOARCH="${TARGET_GOARCH}"
 	export GOROOT="${STAGING_LIBDIR}/go"
recipes-core/packagegroups/packagegroup-container.bb +2 -0
index 8d418e95..c41576a3 100644
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
 inherit packagegroup
 
+COMPATIBLE_HOST:riscv64 = "null"
+
 PACKAGES = "\
     packagegroup-container \
     packagegroup-lxc \
recipes-core/packagegroups/packagegroup-kubernetes.bb +2 -0
index 70dc9713..7e6937b1 100644
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
 inherit packagegroup
 
+COMPATIBLE_HOST:riscv64 = "null"
+
 # k3s has this restriction
 inherit features_check
 REQUIRED_DISTRO_FEATURES ?= "seccomp"
Signature · 11 lines
2.25.1



-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8263): https://lists.yoctoproject.org/g/meta-virtualization/message/8263
Mute This Topic: https://lists.yoctoproject.org/mt/101090972/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw
Quoted 6 lines · Bruce Ashfield via lists.yoctoproject.org

Since riscv isn't tested with meta-virt at all, this isn't the only recipe that has either build or runtime issues.

This is staged to master-next.

Bruce

Changqing,

Should we report the issue to the upstream maintainers so that should riscv64 actually become well-supported in meta-virt over the coming years, this particular issue stands a chance of being resolved or are 'go' packages just not there yet for riscv64 ?

Thanks,

../Randy

Quoted 69 lines

In message: [meta-virtualization] [PATCH] oci-image-tools: don't build for riscv64

Quoted 50 lines · on 01/09/2023 Changqing Li wrote:

From: Changqing Li<[email protected]>

Currently oci-image-tools has a do_compile error for riscv64. The problem could be reproduced by:
MACHINE=qemuriscv64 bitbake oci-image-tools

So explicitly set COMPATIBLE_HOST here to avoid it building for riscv64. When someone interested in using this recipe for riscv64 fixes the compile issue, this setting could be removed.

Also don't build packagegroup-container/packagegroup-kubernetes since they depends on oci-image-tools

---
  recipes-containers/oci-image-tools/oci-image-tools_git.bb | 2 ++
  recipes-core/packagegroups/packagegroup-container.bb      | 2 ++
  recipes-core/packagegroups/packagegroup-kubernetes.bb     | 2 ++
  3 files changed, 6 insertions(+)
recipes-containers/oci-image-tools/oci-image-tools_git.bb +2 -0
index 4beb3a63..8c5020b3 100644
@@ -29,6 +29,8 @@ EXTRA_OEMAKE="BUILDTAGS=''"
 
  S = "${WORKDIR}/git/src/github.com/opencontainers/image-tools"
 
+COMPATIBLE_HOST:riscv64 = "null"
+
  do_compile() {
  	export GOARCH="${TARGET_GOARCH}"
  	export GOROOT="${STAGING_LIBDIR}/go"
recipes-core/packagegroups/packagegroup-container.bb +0 -0
index 8d418e95..c41576a3 100644
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM ="file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda inherit 

packagegroup +COMPATIBLE_HOST:riscv64 = "null"

recipes-core/packagegroups/packagegroup-container.bb +1 -0
+
  PACKAGES = "\
      packagegroup-container \
      packagegroup-lxc \
recipes-core/packagegroups/packagegroup-kubernetes.bb +0 -0
index 70dc9713..7e6937b1 100644
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM ="file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda inherit 

packagegroup +COMPATIBLE_HOST:riscv64 = "null"
+

Quoted 7 lines
  # k3s has this restriction
  inherit features_check
  REQUIRED_DISTRO_FEATURES ?= "seccomp"
Signature · 1 line
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8267):https://lists.yoctoproject.org/g/meta-virtualization/message/8267
Mute This Topic:https://lists.yoctoproject.org/mt/101090972/3616765
Group Owner:[email protected] Unsubscribe:https://lists.yoctoproject.org/g/meta-virtualization/leave/6693109/3616765/950573401/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
# Randy MacLeod
# Wind River Linux
#3 lore raw
Quoted 6 lines · Randy MacLeod
Quoted 5 lines · Bruce Ashfield via lists.yoctoproject.org

Since riscv isn't tested with meta-virt at all, this isn't the only recipe that has either build or runtime issues.

This is staged to master-next.

Quoted 10 lines
Quoted 1 line

Bruce

Changqing,

Should we report the issue to the upstream maintainers so that should riscv64 actually become well-supported in meta-virt over the coming years, this particular issue stands a chance of being resolved or are 'go' packages just not there yet for riscv64 ?

yes, I will report this upstream.

//Changqing

Quoted 77 lines

Thanks,

../Randy

Quoted 68 lines

In message: [meta-virtualization] [PATCH] oci-image-tools: don't build for riscv64

Quoted 50 lines · on 01/09/2023 Changqing Li wrote:

From: Changqing Li<[email protected]>

Currently oci-image-tools has a do_compile error for riscv64. The problem could be reproduced by:
MACHINE=qemuriscv64 bitbake oci-image-tools

So explicitly set COMPATIBLE_HOST here to avoid it building for riscv64. When someone interested in using this recipe for riscv64 fixes the compile issue, this setting could be removed.

Also don't build packagegroup-container/packagegroup-kubernetes since they depends on oci-image-tools

---
  recipes-containers/oci-image-tools/oci-image-tools_git.bb | 2 ++
  recipes-core/packagegroups/packagegroup-container.bb      | 2 ++
  recipes-core/packagegroups/packagegroup-kubernetes.bb     | 2 ++
  3 files changed, 6 insertions(+)
recipes-containers/oci-image-tools/oci-image-tools_git.bb +2 -0
index 4beb3a63..8c5020b3 100644
@@ -29,6 +29,8 @@ EXTRA_OEMAKE="BUILDTAGS=''"
 
  S = "${WORKDIR}/git/src/github.com/opencontainers/image-tools"
 
+COMPATIBLE_HOST:riscv64 = "null"
+
  do_compile() {
  	export GOARCH="${TARGET_GOARCH}"
  	export GOROOT="${STAGING_LIBDIR}/go"
recipes-core/packagegroups/packagegroup-container.bb +0 -0
index 8d418e95..c41576a3 100644
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM ="file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda 

inherit packagegroup +COMPATIBLE_HOST:riscv64 = "null"

recipes-core/packagegroups/packagegroup-container.bb +1 -0
+
  PACKAGES = "\
      packagegroup-container \
      packagegroup-lxc \
recipes-core/packagegroups/packagegroup-kubernetes.bb +0 -0
index 70dc9713..7e6937b1 100644
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM ="file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda 

inherit packagegroup +COMPATIBLE_HOST:riscv64 = "null" +

Quoted 6 lines
  # k3s has this restriction
  inherit features_check
  REQUIRED_DISTRO_FEATURES ?= "seccomp"
Signature · 1 line
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8267):https://lists.yoctoproject.org/g/meta-virtualization/message/8267
Mute This Topic:https://lists.yoctoproject.org/mt/101090972/3616765
Group Owner:[email protected] Unsubscribe:https://lists.yoctoproject.org/g/meta-virtualization/leave/6693109/3616765/950573401/xyzzy [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
# Randy MacLeod
# Wind River Linux
#4 lore raw
In reply to Bruce Ashfield
Quoted 6 lines · Bruce Ashfield

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Since riscv isn't tested with meta-virt at all, this isn't the only recipe that has either build or runtime issues.

Quoted 6 lines

This is staged to master-next.

Bruce

In message: [meta-virtualization] [PATCH] oci-image-tools: don't build for riscv64 on 01/09/2023 Changqing Li wrote:

Hi, Bruce

Could you also merge this to mickledore branch, thanks.

//Changqing

Quoted 70 lines
Quoted 70 lines

From: Changqing Li <[email protected]>

Currently oci-image-tools has a do_compile error for riscv64. The problem could be reproduced by:
MACHINE=qemuriscv64 bitbake oci-image-tools

So explicitly set COMPATIBLE_HOST here to avoid it building for riscv64. When someone interested in using this recipe for riscv64 fixes the compile issue, this setting could be removed.

Also don't build packagegroup-container/packagegroup-kubernetes since they depends on oci-image-tools

---
  recipes-containers/oci-image-tools/oci-image-tools_git.bb | 2 ++
  recipes-core/packagegroups/packagegroup-container.bb      | 2 ++
  recipes-core/packagegroups/packagegroup-kubernetes.bb     | 2 ++
  3 files changed, 6 insertions(+)
recipes-containers/oci-image-tools/oci-image-tools_git.bb +2 -0
index 4beb3a63..8c5020b3 100644
@@ -29,6 +29,8 @@ EXTRA_OEMAKE="BUILDTAGS=''"
 
  S = "${WORKDIR}/git/src/github.com/opencontainers/image-tools"
 
+COMPATIBLE_HOST:riscv64 = "null"
+
  do_compile() {
       export GOARCH="${TARGET_GOARCH}"
       export GOROOT="${STAGING_LIBDIR}/go"
recipes-core/packagegroups/packagegroup-container.bb +2 -0
index 8d418e95..c41576a3 100644
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
  inherit packagegroup
 
+COMPATIBLE_HOST:riscv64 = "null"
+
  PACKAGES = "\
      packagegroup-container \
      packagegroup-lxc \
recipes-core/packagegroups/packagegroup-kubernetes.bb +2 -1
index 70dc9713..7e6937b1 100644
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
  inherit packagegroup
 
+COMPATIBLE_HOST:riscv64 = "null"
+
  # k3s has this restriction
  inherit features_check
  REQUIRED_DISTRO_FEATURES ?= "seccomp"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8263): https://lists.yoctoproject.org/g/meta-virtualization/message/8263
Mute This Topic: https://lists.yoctoproject.org/mt/101090972/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#5 lore raw

Cherry picked to Mickledore.

Bruce

Quoted 92 lines · Changqing Li
Quoted 6 lines · Bruce Ashfield

CAUTION: This email comes from a non Wind River email account!
Do not click links or open attachments unless you recognize the sender and know the content is safe.

Since riscv isn't tested with meta-virt at all, this isn't the only recipe that has either build or runtime issues.

Quoted 6 lines

This is staged to master-next.

Bruce

In message: [meta-virtualization] [PATCH] oci-image-tools: don't build for riscv64 on 01/09/2023 Changqing Li wrote:

Hi, Bruce

Could you also merge this to mickledore branch, thanks.

//Changqing

Quoted 70 lines
Quoted 70 lines

From: Changqing Li <[email protected]>

Currently oci-image-tools has a do_compile error for riscv64. The problem could be reproduced by:
MACHINE=qemuriscv64 bitbake oci-image-tools

So explicitly set COMPATIBLE_HOST here to avoid it building for riscv64. When someone interested in using this recipe for riscv64 fixes the compile issue, this setting could be removed.

Also don't build packagegroup-container/packagegroup-kubernetes since they depends on oci-image-tools

---
  recipes-containers/oci-image-tools/oci-image-tools_git.bb | 2 ++
  recipes-core/packagegroups/packagegroup-container.bb      | 2 ++
  recipes-core/packagegroups/packagegroup-kubernetes.bb     | 2 ++
  3 files changed, 6 insertions(+)
recipes-containers/oci-image-tools/oci-image-tools_git.bb +2 -0
index 4beb3a63..8c5020b3 100644
@@ -29,6 +29,8 @@ EXTRA_OEMAKE="BUILDTAGS=''"
 
  S = "${WORKDIR}/git/src/github.com/opencontainers/image-tools"
 
+COMPATIBLE_HOST:riscv64 = "null"
+
  do_compile() {
       export GOARCH="${TARGET_GOARCH}"
       export GOROOT="${STAGING_LIBDIR}/go"
recipes-core/packagegroups/packagegroup-container.bb +2 -0
index 8d418e95..c41576a3 100644
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
  inherit packagegroup
 
+COMPATIBLE_HOST:riscv64 = "null"
+
  PACKAGES = "\
      packagegroup-container \
      packagegroup-lxc \
recipes-core/packagegroups/packagegroup-kubernetes.bb +2 -1
index 70dc9713..7e6937b1 100644
@@ -4,6 +4,8 @@ LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda
 
  inherit packagegroup
 
+COMPATIBLE_HOST:riscv64 = "null"
+
  # k3s has this restriction
  inherit features_check
  REQUIRED_DISTRO_FEATURES ?= "seccomp"
--

2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#8263): https://lists.yoctoproject.org/g/meta-virtualization/message/8263
Mute This Topic: https://lists.yoctoproject.org/mt/101090972/1050810
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 3 lines
- Thou shalt not follow the NULL pointer, for chaos and madness await
thee at its end
- "Use the force Harry" - Gandalf, Star Trek II