Page 1 of 1

Error 127 when trying to compile my homebrew

Posted: Sun Jul 14, 2024 3:41 pm
by arviksoi
When I try to compile my homebrew, I get the error:

Code: Select all

bash: line 1: ld: command not found
make: *** [I:\devkitPro\devkitarm\3ds_rules:44: 3ds_homebrew.elf] Error 127
Here is my makefile code:

Code: Select all

export DEVKITPRO=I:\devkitPro
export DEVKITARM=I:\devkitPro\devkitARM

include $(DEVKITPRO)\devkitarm\3ds_rules

TARGET = 3ds_homebrew
BUILD  := build
SOURCES := source
GRAPHICS := gfx

GFXFILES := $(GRAPHICS)\tsoi.png $(GRAPHICS)\cigarette.png
GRITFLAGS := -gt -fh -p!

.PHONY: $(BUILD) clean

$(BUILD): $(GFXFILES) $(TARGET).3dsx

$(TARGET).3dsx: $(TARGET).elf
	@$(STRIP) $(TARGET).elf
	@$(OUTPUT).3dsx

clean:
	@rm -rf $(BUILD) $(TARGET).3dsx $(TARGET).elf

include $(DEVKITPRO)\devkitarm\3ds_rules

I'm using mysys2 in Windows 11. I tried to run it on Windows 8 using VM, but I get the same error. I need help to fix that :cry:

Re: Error 127 when trying to compile my homebrew

Posted: Sun Jul 21, 2024 3:25 pm
by WinterMute
arviksoi wrote: Sun Jul 14, 2024 3:41 pm When I try to compile my homebrew, I get the error:

Code: Select all

bash: line 1: ld: command not found
make: *** [I:\devkitPro\devkitarm\3ds_rules:44: 3ds_homebrew.elf] Error 127
Here is my makefile code:

Code: Select all

export DEVKITPRO=I:\devkitPro
export DEVKITARM=I:\devkitPro\devkitARM
Remove these lines and ensure that these variables are set as msys2 paths in your environment. The installer should have set them to /opt/devkitpro and /opt/devkitpro/devkitARM. Users should leave them alone.