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 > Error 127

#66358 - GoodNike - Tue Jan 10, 2006 2:59 am

I've set up devkitARM, add all environment vars (devkitPro\devkitARM\bin; devkitPro\msys\bin; DEVKITARM) and then i'm trying to compile examples i get this error:

> "make"
"make": make: Command not found
"make": *** [build] Error 127

> Process Exit Code: 2
> Time Taken: 00:02

I did forum search, read a FAQ but i can't solve this problem. Whats wrong?
ps: sorry for my bad English

#66359 - wintermute - Tue Jan 10, 2006 3:07 am

DEVKITARM should be set as a unix style path not windows style.

/c/devkitPro/devkitARM

*not*

c:\devkitPro\devkitARM

#66411 - GoodNike - Tue Jan 10, 2006 2:38 pm

Great thx, but i have another problem now :)
Then i compile ansi_console example i get this:
Code:
> "make"
console.c
c:/devkitPro/examples/gba/graphics/ansi_console/source/console.c:5:25: error: gba_console.h: No such file or directory
c:/devkitPro/examples/gba/graphics/ansi_console/source/console.c:6:23: error: gba_video.h: No such file or directory
c:/devkitPro/examples/gba/graphics/ansi_console/source/console.c:7:27: error: gba_interrupt.h: No such file or directory
c:/devkitPro/examples/gba/graphics/ansi_console/source/console.c:8:29: error: gba_systemcalls.h: No such file or directory

Then i changing include this way:
Code:
#include <c:/devkitPRO/libgba/include/gba_console.h>
#include <c:/devkitPRO/libgba/include/gba_video.h>
#include <c:/devkitPRO/libgba/include/gba_interrupt.h>
#include <c:/devkitPRO/libgba/include/gba_systemcalls.h>

As a result:
Code:
> "make"
console.c
linking cartridge
c:\devkitpro\devkitarm\bin\..\lib\gcc\arm-elf\4.0.2\..\..\..\..\arm-elf\bin\ld.exe: cannot find -lgba
make[1]: *** [/c/devkitPro/examples/gba/graphics/ansi_console/ansi_console.elf] Error 1
"make": *** [build] Error 2

> Process Exit Code: 2
> Time Taken: 00:07

I add "set LIBGBA=/c/devkitPRO/libgba" to autoexec.bat but this doesn't help. Whats wrong?

#66414 - wintermute - Tue Jan 10, 2006 2:54 pm

See this page - http://www.devkitpro.org/setup.shtml

note the layout and the variables DEVKITPRO & DEVKITARM

DEVKITPRO should be /c/devkitPro for you

the installer handles all this

#66419 - GoodNike - Tue Jan 10, 2006 3:28 pm

All is fine now, thx.

#90187 - eyeball226 - Wed Jun 28, 2006 9:16 pm

I'm getting the Error 127 aswell. I have checked the path is set right and it seems to be. EDIT Note: I know this is DS but I figured it's still a problem with DevkitARM.

Code:
C:\devkitPro\examples\nds\demo1>make
arm-elf-g++ -g -Wall -O2 -mcpu=arm7tdmi -mtune=arm7tdmi -fomit-frame-pointer -ff
ast-math -mthumb-interwork -I/c/devkitPro/libnds/include -DARM7 -c arm7_main.cpp
 -oarm7_main.o
make: arm-elf-g++: Command not found
make: *** [arm7_main.o] Error 127

_________________
I can't be bothered now...

#90193 - tepples - Wed Jun 28, 2006 9:29 pm

As of devkitARM R19, all the names beginning with "arm-elf-" have been changed to begin with "arm-eabi-". Install an older version, or compile programs that have already been ported to the newer version.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#90230 - eyeball226 - Wed Jun 28, 2006 11:35 pm

How old a version? Which is R19? Sorry if I should know...
_________________
I can't be bothered now...