openvinotoolkit / openvino

OpenVINO™ is an open-source toolkit for optimizing and deploying AI inference
https://docs.openvino.ai
Apache License 2.0
6.72k stars 2.16k forks source link

[Build]: Cannot install on AWS ARM compute instance #25367

Open xianglous opened 1 month ago

xianglous commented 1 month ago

OpenVINO Version

2024.2.0

Operating System

Other (Please specify in description)

Hardware Architecture

ARM (64 bits)

Target Platform

Architecture:             aarch64
  CPU op-mode(s):         32-bit, 64-bit
  Byte Order:             Little Endian
CPU(s):                   64
  On-line CPU(s) list:    0-63
Vendor ID:                ARM
  Model:                  1
  Thread(s) per core:     1
  Core(s) per socket:     64
  Socket(s):              1
  Stepping:               r1p1
  BogoMIPS:               2100.00
  Flags:                  fp asimd evtstrm aes pmull sha1 sha2 crc32 a
                          tomics fphp asimdhp cpuid asimdrdm jscvt fcm
                          a lrcpc dcpop sha3 sm3 sm4 asimddp sha512 sv
                          e asimdfhm dit uscat ilrcpc flagm ssbs paca 
                          pacg dcpodp svei8mm svebf16 i8mm bf16 dgh rn
                          g

Build issue description

The device is an AWS c7g instance with amzn2023 OS and ARM CPU. While following the installation guide for ARM 64 architecture on the documentation page, the sudo -E ./install_dependencies/install_openvino_dependencies.sh raised error Error: Unable to find a match and caused the installation failed

Build script or step-by-step to reproduce

sudo mkdir /opt/intel
curl -L https://storage.openvinotoolkit.org/repositories/openvino/packages/2024.2/linux/l_openvino_toolkit_ubuntu20_2024.2.0.15519.5c0f38f83f6_arm64.tgz
tar -xf l_openvino_toolkit_ubuntu20_2024.2.0.15519.5c0f38f83f6_arm64.tgz
sudo mv l_openvino_toolkit_ubuntu20_2024.2.0.15519.5c0f38f83f6_arm64 /opt/intel/openvino_2024.2.0
cd /opt/intel/openvino_2024.2.0
sudo -E ./install_dependencies/install_openvino_dependencies.sh

Relevant log output

Detected OS: amzn2023
Last metadata expiration check: 0:13:15 ago on Thu Jul  4 03:27:23 2024.
No match for argument: 
Package gcc-11.4.1-2.amzn2023.0.2.aarch64 is already installed.
Package gcc-c++-11.4.1-2.amzn2023.0.2.aarch64 is already installed.
Package make-1:4.3-5.amzn2023.0.2.aarch64 is already installed.
Package glibc-2.34-52.amzn2023.0.10.aarch64 is already installed.
Package libstdc++-11.4.1-2.amzn2023.0.2.aarch64 is already installed.
Package libgcc-11.4.1-2.amzn2023.0.2.aarch64 is already installed.
Package sudo-1.9.15-1.p5.amzn2023.0.1.aarch64 is already installed.
Package pkgconf-pkg-config-1.8.0-4.amzn2023.0.2.aarch64 is already installed.
Package python3-3.9.16-1.amzn2023.0.8.aarch64 is already installed.
Error: Unable to find a match

Issue submission checklist

alvoron commented 1 month ago

Hi @xianglous Thank you for raising the issue. Could you please rerun the script with -p flag and share the output?

xianglous commented 1 month ago

here's the output I got

gcc gcc-c++ make glibc libstdc++ libgcc cmake3 sudo pkgconf-pkg-config python3 python3-pip
alvoron commented 1 month ago

@xianglous to workaround this issue you can run installation command with y flag: sudo -E ./install_dependencies/install_openvino_dependencies.sh -y

alvoron commented 1 month ago

@ilya-lavrenov If the script called without parameters we've got the command yum install '' gcc gcc-c++ make glibc libstdc++ libgcc cmake3 sudo pkgconf-pkg-config python3 python3-pip Amazon Linux does not like empty quotes in the command. The script works fine if $iopt is not quoted, however, I assume, you quoted all variables on purpose.

xianglous commented 1 month ago

thanks, It worked!

alvoron commented 1 month ago

@xianglous glad to hear! please let us know if you face any other issues on Graviton. Your feedback is valuable for us! Also please keep this ticket opened since the original issue is not solved and I'm waiting for my colleague response.

ilya-lavrenov commented 4 weeks ago

It was done to make shellcheck happy:

CMake Error at /home/devuser/ilavreno/openvino/cmake/developer_package/shellcheck/shellcheck_process.cmake:20 (message):

  In
  /home/devuser/ilavreno/openvino/scripts/install_dependencies/install_openvino_dependencies.sh
  line 293:

      yum install $iopt "${pkgs[@]}"
                  ^---^ SC2086 (info): Double quote to prevent globbing and word splitting.

  Did you mean:

      yum install "$iopt" "${pkgs[@]}"

  For more information:

    https://www.shellcheck.net/wiki/SC2086 -- Double quote to prevent globbing ...

Looks like we need a way to drop drop empty arguments