The CF Repo Plugin Fails With a CPU Error: The current machine does not support all of the following CPU features that are required by the image
search cancel

The CF Repo Plugin Fails With a CPU Error: The current machine does not support all of the following CPU features that are required by the image

book

Article ID: 448867

calendar_today

Updated On:

Products

VMware Tanzu Spring Runtime

Issue/Introduction

When you try to run any cf repo command, it fails with an error similar to the following:

~ % cf repo upgrade-plan
The current machine does not support all of the following CPU features that are required by the image: [CX8, CMOV, FXSR, MMX, SSE, SSE2, SSE3, SSSE3, SSE4_1, SSE4_2, POPCNT, LZCNT, AVX, AVX2, BMI1, BMI2, FMA, F16C].
Please rebuild the executable with an appropriate setting of the -march option.exit status 1
FAILED

Environment

Tanzu Cloud Foundry CLI

Cause

A repo plugin for a different CPU architecture was installed. For example, the darwin-amd64 repo plugin was installed on an arm64 machine

Resolution

Reinstall the plugin for the correct CPU architecture

  1. Download the VMware Tanzu Cloud Foundry CLI bundle from the Support Portal
  2. Uninstall the repo plugin: cf uninstall-plugin repo
  3. Install the correct plugin. This example is for an Apple M-series machine: 
    • ~ % cf install-plugin Downloads/cf-cli-10.4.4+bundle-1.2.11/plugins/repo/v1.6.4/tanzu-repo-darwin_arm64 
      Attention: Plugins are binaries written by potentially untrusted authors.
      Install and use plugins at your own risk.
      Do you want to install the plugin Downloads/cf-cli-10.4.4+bundle-1.2.11/plugins/repo/v1.6.4/tanzu-repo-darwin_arm64? [y
      N]: y
      Installing plugin repo v1.6.4...
      OK
      
      Plugin repo v1.6.4 successfully installed.

Additional Information

Installing the Tanzu cf CLI from the Support Portal