gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

Beginners > Devkitpro + Included MSYS doesn't build examples

#141286 - Dwedit - Sun Sep 23, 2007 8:27 pm

I'm unable to build any of the example programs with the latest devkitarm on my system. I'm using the included msys.
Code:
$ make
make: make: Command not found
make: *** [build] Error 127

This error message is indicating that make is trying to run a program named "build". Only thing is, "build" is mentioned in the makefile as a directory to output the intermediate files into! Now it's trying to run "build" as a program!
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#141288 - Dwedit - Sun Sep 23, 2007 8:33 pm

Solved it. The make.exe included in devkitpro's msys package is bad. I replaced it with the new Mingw32 make.exe file, and now it works.

Who should I send a PM to about including a non-broken make.exe in devkitpro?
_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#141289 - gmiller - Sun Sep 23, 2007 8:49 pm

I believe that wintermute is good place to start ...

#141310 - Dwedit - Mon Sep 24, 2007 12:15 am

Now this makefile (taken from Chishm's Flashmp) ends up with Make calling Make repeatedly, and no way to kill the thousands of sh.exe and make.exe processes that keep getting created repeatedly.

Code:
.PHONY: all

DIRS := ndsmp_nds ndsmp_gba

all:
   $(foreach DIR, $(DIRS), $(MAKE) -C $(DIR);)

clean:
   $(foreach DIR, $(DIRS), $(MAKE) -C $(DIR) clean;)

_________________
"We are merely sprites that dance at the beck and call of our button pressing overlord."

#141313 - keldon - Mon Sep 24, 2007 12:27 am

In task manager right click the main program and select kill process tree; that should kill everything created by it if it happens in the future.

#141338 - wintermute - Mon Sep 24, 2007 7:12 am

Dwedit wrote:
Solved it. The make.exe included in devkitpro's msys package is bad. I replaced it with the new Mingw32 make.exe file, and now it works.

Who should I send a PM to about including a non-broken make.exe in devkitpro?


No, you just broke your toolchain install.

Use the devkitPro installer/updater or set the environment variables properly. See http://www.devkitpro.org/setup.shtml

mingw32-make is not suitable for use with devkitPro toolchains.

setup guide wrote:

Add a variable for DEVKITPRO as shown, adjusting the path to suit your installation. You should note that these variables are for use by the makefiles running through msys and should be unix format paths, using /c/ rather than c:/. In the same manner add variables for DEVKITARM ( /c/devkitPro/devkitARM) and DEVKITPPC (/c/devkitPro/devkitPPC). On linux and OSX these should replace /c/ with /usr/local.

_________________
devkitPro - professional toolchains at amateur prices
devkitPro IRC support
Personal Blog