Compilation and Installation
Procedure
- Use PuTTY to log in to the server as the root user.
- Run the following command to go to the main program installation directory:
cd /path/to/WANT
- Run the following command to decompress the main program installation package:
tar -xvf want-want-2.6.1.tar.gz
- Run the following command to go to the directory generated after decompression:
cd want-want-2.6.1
- Run the following command to perform the configuration:
./configure CC=gcc CFLAGS="-O3 -march=armv8.2-a -mcpu=tsv110" --build=aarch64-unknown-linux-gnu
- Run the following commands to modify the make.sys file and link the mathlib math library of the optimized GCC for openEuler version to the main program.
- Open the make.sys file.
vi make.sys
- Press i to go to the insert mode.
- Add a newline character (\) at the end of line 91.
- Add line 92 and add the following content:
-Wl,-rpath=/path/to/KPGCC/gcc-9.3.1-2020.12-aarch64-linux/lib64/libhpc -L/path/to/KPGCC/gcc-9.3.1-2020.12-aarch64-linux/lib64/libhpc -lmathlib -lm

- Press Esc, type :wq!, and press Enter to save the file and exit.
- Open the make.sys file.
- Run the following command to configure the environment variables of the mathlib library:
export LD_LIBRARY_PATH=/path/to/KPGCC/gcc-9.3.1-2020.12-aarch64-linux/lib64/libhpc:$LD_LIBRARY_PATH
- Run the following command to perform the compilation and installation:
make all
After the compilation and installation are complete, the following executable files are generated in the bin directory:

Parent topic: WanT 2.6.1 Porting Guide (CentOS 7.6)