Error 127 when trying to compile my homebrew

Post Reply
arviksoi
Posts: 1
Joined: Sun Jul 14, 2024 3:20 pm

Error 127 when trying to compile my homebrew

Post by arviksoi » 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

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:

WinterMute
Site Admin
Posts: 1986
Joined: Tue Aug 09, 2005 3:21 am
Location: UK
Contact:

Re: Error 127 when trying to compile my homebrew

Post by WinterMute » Sun Jul 21, 2024 3:25 pm

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.
Help keep devkitPro toolchains free, Donate today

Personal Blog

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests