davidcallanan / os-series

818 stars 119 forks source link

make: *** No rule to make target 'build-x86_64'. Stop. #42

Closed FlyAvalan closed 3 years ago

FlyAvalan commented 3 years ago

Hey, I am using Windows 11 and this error is unstoppable for me!!! I am trying to fix but can't i used "make build-x86_64"

davidcallanan commented 3 years ago

Try the solution here: #38 .

You might need to use a different command when entering the docker environment, before running make.

If you are using powershell, the command you'll want is: docker run --rm -it -v "${pwd}:/root/env" myos-buildenv

Duplicate of #1.

FlyAvalan commented 3 years ago

I already tried that and it still doesn't work.

FlyAvalan commented 3 years ago

I used everything and nothing worked

FlyAvalan commented 3 years ago

PS C:\Users\brand\Documents\OS-Avalan> docker run --rm -it -v cd:/root/env avalanos-buildenv root@79172fe51fae:~/env# make build-x86_64 make: *** No rule to make target 'build-x86_64'. Stop. root@79172fe51fae:~/env#

davidcallanan commented 3 years ago

@FlyAvalan

PS C:\Users\brand\Documents\OS-Avalan> docker run --rm -it -v cd:/root/env avalanos-buildenv

This is the wrong command. Please use the command I mentioned above. If the problem is still happening, please screenshot all the commands so I can be 100% sure that you are doing it correctly.

FlyAvalan commented 3 years ago

OH I got another error in the windows cmd

FlyAvalan commented 3 years ago

makefile:5: *** insufficient number of arguments (2) to function 'patsubst'. Stop.

FlyAvalan commented 3 years ago

So it now found the makefile but this is a problem now

FlyAvalan commented 3 years ago

awreawrawrawr

FlyAvalan commented 3 years ago

@FlyAvalan

PS C:\Users\brand\Documents\OS-Avalan> docker run --rm -it -v cd:/root/env avalanos-buildenv

This is the wrong command. Please use the command I mentioned above. If the problem is still happening, please screenshot all the commands so I can be 100% sure that you are doing it correctly.

Can you help me with this problem to?

davidcallanan commented 3 years ago

Can you help me with this problem too?

You probably have a typo in your makefile.

FlyAvalan commented 3 years ago

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 -o $(patsubst build/x86_64/%.o : src/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-mkrescure /usr/lib/grub/i386-pc -o dist/x86_64/kernel.iso targets/x86_64/iso

This correct?

FlyAvalan commented 3 years ago

It's Episode 1!

FlyAvalan commented 3 years ago

Omg lol I had typo

FlyAvalan commented 3 years ago

But still need to replace it

FlyAvalan commented 3 years ago

Lol NOW IT WORKS!!!!!!

FlyAvalan commented 3 years ago

It was a typo sorry.