日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 >

ubuntu makefile交叉编译报错:file not recognized: file format not recognized

發布時間:2025/3/20 42 豆豆
生活随笔 收集整理的這篇文章主要介紹了 ubuntu makefile交叉编译报错:file not recognized: file format not recognized 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

在linux ubuntu上編譯netkit-ftp的時候報錯:file not recognized: file format not recognized

[root@ubuntu /arnold_test/20211219_ftpCrossCompile/netkit-ftp-0.17]24# make (cd ftp && make) make[1]: Entering directory '/arnold_test/20211219_ftpCrossCompile/netkit-ftp-0.17/ftp' arm-linux-gnueabihf-gcc -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline glob.c -c arm-linux-gnueabihf-gcc -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline main.c -c arm-linux-gnueabihf-gcc -O2 -Wall -W -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Winline ruserpass.c -c arm-linux-gnueabihf-gcc cmds.o cmdtab.o domacro.o ftp.o glob.o main.o ruserpass.o -o ftp cmds.o: file not recognized: file format not recognized collect2: error: ld returned 1 exit status Makefile:14: recipe for target 'ftp' failed make[1]: *** [ftp] Error 1 make[1]: Leaving directory '/arnold_test/20211219_ftpCrossCompile/netkit-ftp-0.17/ftp' Makefile:7: recipe for target 'ftp.build' failed make: *** [ftp.build] Error 2

解決方法:make clean一下

或者手動將之前編譯生成的文件刪除

參考文章:linux編譯出現問題:file not recognized: File format not recognized

總結

以上是生活随笔為你收集整理的ubuntu makefile交叉编译报错:file not recognized: file format not recognized的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。