Rate This Document
Findability
Accuracy
Completeness
Readability

Installing the BiSheng Compiler

Procedure

  1. Use PuTTY to log in to the server as the root user.
  2. Obtain the BiSheng Compiler installation package.
    wget https://mirrors.huaweicloud.com/kunpeng/archive/compiler/bisheng_compiler/bisheng-compiler-1.3.3-aarch64-linux.tar.gz
  3. Create a BiSheng Compiler installation directory (/opt/compiler is used as an example).
    mkdir -p /opt/compiler
  4. Copy the BiSheng Compiler installation package to the installation directory.
    cp -r bisheng-compiler-1.3.3-aarch64-linux.tar.gz /opt/compiler
  5. Go to the installation package directory.
    cd /opt/compiler
  6. Decompress the installation package.
    tar -zxvf bisheng-compiler-1.3.3-aarch64-linux.tar.gz
  7. Set the environment variables of the BiSheng Compiler.
    export PATH=/opt/compiler/bisheng-compiler-1.3.3-aarch64-linux/bin:$PATH
    export LD_LIBRARY_PATH=/opt/compiler/bisheng-compiler-1.3.3-aarch64-linux/lib:$LD_LIBRARY_PATH
    export CC=clang CXX=clang++ FC=flang
  8. Perform the verification.
    clang -v

    If the command output contains the BiSheng Compiler version information, the installation is successful.