sonic-net / sonic-buildimage

Scripts which perform an installable binary image build for SONiC
Other
728 stars 1.39k forks source link

Error(s) while compiling buildimage for Marvel-arm64 platform #15225

Open chiranjeevi-u opened 1 year ago

chiranjeevi-u commented 1 year ago

Description

Getting " ERRO[0000] failure getting variant error="getCPUInfo for pattern: Cpu architecture: not found" " error while compiling SONiC buildimage for Marvel-arm64 platform

Steps to reproduce the issue:

  1. git clone -b 202211 https://github.com/sonic-net/sonic-buildimage.git
  2. sudo modprobe overlay
  3. cd sonic-buildimage
  4. make init
  5. make configure PLATFORM=marvell-arm64 PLATFORM_ARCH=arm64
  6. make target/sonic-marvell-arm64.bin

Describe the results you received:

[ 01 ] [ target/docker-sonic-mgmt-framework.gz ] [ 02 ] [ target/docker-nat.gz ] [ 03 ] [ target/docker-sflow.gz ] ERRO[0000] failure getting variant error="getCPUInfo for pattern: Cpu architecture: not found" ERRO[0000] failure getting variant error="getCPUInfo for pattern: Cpu architecture: not found" ERRO[0000] failure getting variant error="getCPUInfo for pattern: Cpu architecture: not found" ERRO[0000] failure getting variant error="getCPUInfo for pattern: Cpu architecture: not found"

Compilations are failing after getting this error: ERRO[0000] failure getting variant error="getCPUInfo for pattern: Cpu architecture: not found"

Describe the results you expected:

Compiled SONiC image for Marvel platform

Output of show version:

NA

Output of show techsupport:

NA

judyjoseph commented 1 year ago

@chiranjeevi-u is the issue seen only with 202211 ? Can you share more details

chiranjeevi-u commented 1 year ago

@judyjoseph I've been trying to compile for the latest tagged 202211 branch. Not sure of other branches.

chiranjeevi-u commented 1 year ago

Also, I want to add info that, this issue is fixed in containerd V1.7.0. https://newreleases.io/project/github/containerd/containerd/release/v1.7.0

PR for the Issue in containerd repo: https://github.com/containerd/containerd/pull/7636

Also, I can see in the Docker repo that we're still using containerd V1.6.21 https://download.docker.com/linux/ubuntu/dists/lunar/pool/stable/amd64/

Despite containerd package being updated to V1.7.1 in the Docker V24.0 release https://docs.docker.com/engine/release-notes/24.0/#2400 https://docs.docker.com/engine/release-notes/24.0/#packaging-updates-2

sheiun-xu commented 10 months ago

The issue is also fixed in containerd 1.6.22

Fix cpu architecture detection issue on emulated ARM platform (https://github.com/containerd/containerd/pull/8533)