When compiling netkit-ftp on linux ubuntu an error is reported: 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
Solution: make clean
Or manually delete the files generated by the previous compilation
Read More:
- [Solved] Docker Install Error: [Errno 14] curl#60 – Peer‘s Certificate issuer is not recognized
- Solved: could not find the task ‘G + + build active file, leetcode algorithm ACM compilation and debugging
- Fastplanner compilation error: Could not find a package configuration file provided by “cmake_modules”
- [Solved] Ubuntu Open jpg Image Error: Error interpreting JPEG image file (Not a JPEG file: starts with 0x89 0x50)
- Linux Ubuntu ImportError: Libtk8.5.so: cannot open shared object file:No such file Install tkinter Library
- [Solved] Ubuntu pyinstaller Error when packaging executable file: … qt.qpa.plugin: Could not find the Qt platform plugin “xcb“ in “…
- [Solved] ERROR: Subproject directory not found and gst-plugins-base.wrap file not found
- [Solved] Ubuntu Compile AOSP Error: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory
- Solution to gzip: stdin: invalid compressed data — format violated error in decompressing. Tgz file under Linux
- C Language Compilation Error: variably modified ‘* *’ at file scope
- Mgr [error]: library file libdmhs_exec.so not found, error: 0
- [Solved] fatal error: openssl/hmac.h: No such file or directory
- Error in Linux running file: bash: $’\r’: command not found
- How to Solve “Error: source file could not be loaded“ [Ubuntu Use LibreOffice]
- Error: linker ` link. Exe ` not found | = note: the system cannot find the specified file.
- Ubuntu18.04 Compile A40i SDK Error: misc/create_inode.c:395:18: error: conflicting types for ‘copy_file_range‘
- Ubuntu install and compile OpenCV3.4.0 fatal error: dynlink_nvcuvid.h: No such file or directory #include <dynlink_nv
- Linux useradd Error: Creating mailbox file: File exists
- [Solved] ffmpeg Error: fatal error: zlib.h: Not having that file or directory
- [Solved] ubuntu Run jupyter Error: print(‘Error in generated code:‘, file=sys.stderr) SyntaxError: invalid syntax