make depend && make _all make[1]: Entering directory '/opt/openssl-1.1.1/openssl-1.1.1' make[1]: Leaving directory '/opt/openssl-1.1.1/openssl-1.1.1' make[1]: Entering directory '/opt/openssl-1.1.1/openssl-1.1.1' arm-none-linux-gnueabihf -I. -Iinclude -fPIC -pthread -Wall -O3 -fomit-frame-pointer -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/opt/openssl-1.1.1/openssl-1.1.1/_install/ssl\"" -DENGINESDIR="\"/opt/openssl-1.1.1/openssl-1.1.1/_install/lib/engines-1.1\"" -DNDEBUG -c -o apps/app_rand.o apps/app_rand.c /bin/sh: 1: arm-none-linux-gnueabihf: not found Makefile:720: recipe for target 'apps/app_rand.o' failed make[1]: *** [apps/app_rand.o] Error 127 make[1]: Leaving directory '/opt/openssl-1.1.1/openssl-1.1.1' Makefile:169: recipe for target 'all' failed make: *** [all] Error 2如何解决该错误
时间: 2024-03-29 17:36:47 浏览: 162
这个错误通常是由于交叉编译器路径设置错误导致的。可以尝试以下几个步骤来解决这个问题:
1. 确认交叉编译器是否已经正确安装,并且路径是否添加到了环境变量中。可以在终端中执行 `arm-none-linux-gnueabihf-gcc --version` 来确认交叉编译器是否能够正常使用。
2. 检查Makefile文件中的交叉编译器路径是否正确。可以使用文本编辑器打开Makefile文件,查找 `CROSS_COMPILE` 或者 `CC` 字段,确认路径是否正确。
3. 可以尝试在终端中手动执行编译命令,例如 `arm-none-linux-gnueabihf-gcc -I. -Iinclude -fPIC -pthread -Wall -O3 -fomit-frame-pointer -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/opt/openssl-1.1.1/openssl-1.1.1/_install/ssl\"" -DENGINESDIR="\"/opt/openssl-1.1.1/openssl-1.1.1/_install/lib/engines-1.1\"" -DNDEBUG -c -o apps/app_rand.o apps/app_rand.c`,如果能够正常执行,则可以确认交叉编译器路径设置正确。
4. 如果以上方法都无法解决问题,可以考虑重新安装交叉编译器,并确认路径设置正确。
相关问题
make depend && make _all make[1]: Entering directory '/opt/openssl-1.1.1/openssl-1.1.1' make[1]: Leaving directory '/opt/openssl-1.1.1/openssl-1.1.1' make[1]: Entering directory '/opt/openssl-1.1.1/openssl-1.1.1' arm-linux-gnu-gcc -I. -Iinclude -fPIC -pthread -Wall -O3 -fomit-frame-pointer -DOPENSSL_USE_NODELETE -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/opt/openssl-1.1.1/openssl-1.1.1/_install/ssl\"" -DENGINESDIR="\"/opt/openssl-1.1.1/openssl-1.1.1/_install/lib/engines-1.1\"" -DNDEBUG -c -o apps/app_rand.o apps/app_rand.c /bin/sh: 1: arm-linux-gnu-gcc: not found Makefile:720: recipe for target 'apps/app_rand.o' failed make[1]: *** [apps/app_rand.o] Error 127 make[1]: Leaving directory '/opt/openssl-1.1.1/openssl-1.1.1' Makefile:169: recipe for target 'all' failed make: *** [all] Error 2
It seems like there is an error in the compilation process of OpenSSL library. The error message indicates that the arm-linux-gnu-gcc compiler is not found. This could be due to the fact that the compiler is not installed or it is not in the system path.
To fix the issue, you need to install the arm-linux-gnu-gcc compiler and make sure it is in the system path. Once the compiler is installed, you can try to recompile the OpenSSL library again.
make Scanning dependencies of target cmsys CMake Error: Cannot open file for write: /home/GPU_Project/ARM-Mali-G72/Software_packet/DDK-Compile_Tool/cmake/cmake-3.8.1/Source/kwsys/CMakeFiles/cmsys.dir/depend.make.tmp CMake Error: : System Error: Permission denied make[2]: *** [Source/kwsys/CMakeFiles/cmsys.dir/build.make:544: Source/kwsys/CMakeFiles/cmsys.dir/depend] Error 2 make[1]: *** [CMakeFiles/Makefile2:1027: Source/kwsys/CMakeFiles/cmsys.dir/all] Error 2 make: *** [Makefile:163: all] Error 2
这个错误提示是权限不足导致的。你可以尝试使用 sudo 命令来执行编译命令,或者修改文件夹的权限。具体解决方法可以参考以下步骤:
1. 使用 sudo 命令执行编译命令,例如:
```
sudo make
```
2. 修改文件夹的权限,例如:
```
sudo chmod -R 777 /home/GPU_Project/ARM-Mali-G72/Software_packet/DDK-Compile_Tool/cmake/cmake-3.8.1
```
注意:修改文件夹权限可能会存在安全风险,请谨慎操作。
阅读全文