Closed Le-noirrateur closed 9 months ago
Hello, i have a problem while executing make build-x86_64, the command return an error which i don't understand why it's not working, all files are corrects and all directories to. Here the logs :
root@09c1f0b638a0:~/env# make build-x86_64 mkdir -p dist/x86_64 && \ x86_64-elf-ld -n -o dist/x86_64/kernel.bin -T targets/x86_64/linker.ld build/x86_64/boot/header.o build/x86_64/boot/main.o && \ cp dist/x86_64/kernel.bin targets/x86_64/iso/boot/kernel.bin && \ grub-mkrescue /usr/lib/grub/i386-pc -o dist/x86_64/kernel.iso targets/x86_64/iso /bin/sh: 2: x86_64-elf-ld: not found make: *** [Makefile:10: build-x86_64] Error 127 root@09c1f0b638a0:~/env#
and here's the code ( makefile )
x86_64_asm_source_files := $(shell find src/impl/x86_64 -name *.asm) x86_64_asm_object_files := $(patsubst src/impl/x86_64/%.asm, build/x86_64/%.o, $(x86_64_asm_source_files)) $(x86_64_asm_object_files): build/x86_64/%.o : src/impl/x86_64/%.asm mkdir -p $(dir $@) && \ nasm -f elf64 $(patsubst build/x86_64/%.o, src/impl/x86_64/%.asm, $@) -o $@ .PHONY: build-x86_64 build-x86_64: $(x86_64_asm_object_files) mkdir -p dist/x86_64 && \ x86_64-elf-ld -n -o dist/x86_64/kernel.bin -T targets/x86_64/linker.ld $(x86_64_asm_object_files) && \ cp dist/x86_64/kernel.bin targets/x86_64/iso/boot/kernel.bin && \ grub-mkrescue /usr/lib/grub/i386-pc -o dist/x86_64/kernel.iso targets/x86_64/iso
hope people can help me to solve the problem.
Problem not solved, this repository is abandonned.
Hello, i have a problem while executing make build-x86_64, the command return an error which i don't understand why it's not working, all files are corrects and all directories to. Here the logs :
and here's the code ( makefile )
hope people can help me to solve the problem.