The package "containerd" failed to build

Bug #2016936 reported by Yue Tao
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
StarlingX
Fix Released
Critical
Yue Tao

Bug Description

Brief Description
-----------------
The package "containerd" failed to build in master branch

The failure is :
src/github.com/containernetworking/plugins/vendor/golang.org/x/sys/unix/syscall.go:83:16: undefined: unsafe.Slice
src/github.com/containernetworking/plugins/vendor/golang.org/x/sys/unix/syscall_linux.go:2270:9: undefined: unsafe.Slice
src/github.com/containernetworking/plugins/vendor/golang.org/x/sys/unix/syscall_unix.go:118:7: undefined: unsafe.Slice
src/github.com/containernetworking/plugins/vendor/golang.org/x/sys/unix/sysvshm_unix.go:33:7: undefined: unsafe.Slice

Severity
--------
Critical

Steps to Reproduce
------------------
build all

Expected Behavior
------------------
Pass build all

Actual Behavior
----------------
break the build all packages

Reproducibility
---------------
Reproducible

System Configuration
--------------------
default build

Branch/Pull Time/Commit
-----------------------
master branch

Last Pass
---------

It was introduced by https://review.opendev.org/c/starlingx/integ/+/878722

Workaround
----------
Revert https://review.opendev.org/c/starlingx/integ/+/878722

Yue Tao (wrytao)
Changed in starlingx:
importance: Undecided → Critical
assignee: nobody → Yue Tao (wrytao)
status: New → Confirmed
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to integ (master)

Fix proposed to branch: master
Review: https://review.opendev.org/c/starlingx/integ/+/880800

Changed in starlingx:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to integ (master)

Reviewed: https://review.opendev.org/c/starlingx/integ/+/880800
Committed: https://opendev.org/starlingx/integ/commit/da9d57b2956f2197cbd69f17cffc1087b3c54698
Submitter: "Zuul (22348)"
Branch: master

commit da9d57b2956f2197cbd69f17cffc1087b3c54698
Author: Yue Tao <email address hidden>
Date: Tue Apr 18 17:13:19 2023 +0800

    containerd: upgrade Build-Depends to Golang 1.17

    The Build-Depends package "golang-github-containernetworking-plugins"
    has been upgraded to 1.2.0 by https://review.opendev.org/c/starlingx/integ/+/878722,
    that causes a build issue of containerd:

    =====================
    src/github.com/containernetworking/plugins/vendor/golang.org/x/sys/unix/syscall.go:83:16: undefined: unsafe.Slice
    src/github.com/containernetworking/plugins/vendor/golang.org/x/sys/unix/syscall_linux.go:2270:9: undefined: unsafe.Slice
    src/github.com/containernetworking/plugins/vendor/golang.org/x/sys/unix/syscall_unix.go:118:7: undefined: unsafe.Slice
    src/github.com/containernetworking/plugins/vendor/golang.org/x/sys/unix/sysvshm_unix.go:33:7: undefined: unsafe.Slice
    =====================

    The "unsafe.Slice" is introduced since Golong 1.17, so change the Build-Depends.

    Test Plan:
    - PASS: build-pkgs -a -c
    - PASS: build-image

    Closes-Bug: 2016936

    Signed-off-by: Yue Tao <email address hidden>
    Change-Id: Ic14ef5f273e5d6b5deb2de00f74d3b823bd198ad

Changed in starlingx:
status: In Progress → Fix Released
Ghada Khalil (gkhalil)
tags: added: stx.9.0 stx.build
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.