Ubuntu installed the tool chain of nuc980, configured the environment variables, and entered the command to verify whether it is correct. The error message: command not found.
arm-nuvoton-linux-uclibceabi-gcc -v
Check the official document < NUC980 Linux BSP User Manual >. The manual information indicates that libc6-dev is required for the cross-compilation tool chain, as follows:
To install the software on Ubuntu, the instructions are:
sudo apt install libc6-dev
Enter the command again to verify, and find that an error message is still reported: command not found. Check the environment variables, the environment variables are also correct. Solution: Enter the command to reboot.
reboot
After restarting, enter the command again:
arm-nuvoton-linux-uclibceabi-gcc -v
It can be seen that the version information of the configured specified tool chain can be obtained. The final result is as follows:
xyz@ubuntu:~$ arm-nuvoton-linux-uclibceabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-nuvoton-linux-uclibceabi-gcc
COLLECT_LTO_WRAPPER=/home/xyz/Desktop/nginx/arm_linux_4.8/bin/../libexec/gcc/arm-nuvoton-linux-uclibceabi/4.8.4/lto-wrapper
Target: arm-nuvoton-linux-uclibceabi
Configured with: ../configure --prefix=/usr/local/arm_linux_4.8 --target=arm-nuvoton-linux-uclibceabi --enable-static --disable-__cxa_atexit --with-gnu-ld --disable-libssp --disable-multilib --enable-target-optspace --disable-libsanitizer --enable-tls --disable-libmudflap --enable-threads --without-isl --without-cloog --with-float=soft --disable-decimal-float --with-abi=aapcs-linux --with-cpu=arm926ej-s --with-float=soft --with-mode=arm --enable-languages=c,c++ --enable-poison-system-directories --enable-shared --disable-libgomp --with-sysroot=/usr/local/arm_linux_4.8 --with-build-time-tools=/usr/local/arm_linux_4.8/arm-nuvoton-linux-uclibceabi/bin --enable-shared
Thread model: posix
gcc version 4.8.4 (GCC)
Welcome to follow the public account: Embedded Learning and Practice