Architecture of i386 input file is incompatible with i386:x86-64 March 9, 2023 by Tarik If want compile the file as 32 bits, you can use: ld -m elf_i386 -s -o file file.o