Deploying the GCC for openEuler
To use some of the acceleration libraries in the GCC for openEuler, install the GCC for openEuler on the server. The GCC for openEuler is a high-performance compiler designed for the Kunpeng platform. It is based on the compiler toolchain (including compilers, assemblers, and linkers) developed by the open source GCC. It supports the C, C++, and Fortran languages and their runtime libraries.
Environment Requirements
- Supported compiler version: GCC for openEuler 3.0.3
- Supported OSs:
- CentOS Linux release 7.6.1810 (AltArch)
- Ubuntu 18.04.2 LTS
- Ubuntu 20.04 LTS
- openEuler 20.03 LTS SP3
- openEuler 20.03 LTS SP4
- openEuler 22.03 LTS SP3
- openEuler 22.03 LTS SP4
- openEuler 24.03 LTS
- openEuler 24.03 LTS SP1
- UOS 20 SP1
- Kylin Linux Advanced Server V10 (Tercel)
Prerequisites
You have logged in to the Kunpeng DevKit.
Procedure
- In the upper right corner of the page, choose
> Tool Configuration > Compiler and Debugger.In the Figure 1 window that is displayed, choose a remote server, choose GCC for openEuler from the Compiler Type drop-down list, and click Check Connection.
Table 1 Parameters Parameter
Description
Configured Remote Server
Choose the server where the GCC for openEuler needs to be deployed.
NOTE:If the system displays a message indicating that no remote server is available, click Add Target Server to go to the target server management page and add a remote server.
Linux Password
Password of the Linux user.
Remember password
If this option is selected, the Linux user password of the current remote server will be remembered.
Compiler Type
Select the compiler to be deployed. The options are:
- GCC for openEuler
- BiSheng Compiler
- BiSheng JDK
During compiler deployment, the compiler dictionary is read based on the network status. Ensure that the VS Code network proxy is correctly configured and the network can be connected before the deployment.
- After the connection is successful, click Start Deployment. In the dialog box that is displayed, click OK.Figure 2 Information dialog box
Switch to the terminal to perform the deployment operation. After the deployment is complete, a message is displayed stating "Compiler deployed successfully."
Figure 3 Compiler deployed successfully
If the deployment fails, view the error information on the terminal or rectify the fault by following instructions in Compiler Deployment Failure.
