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.

Coding > DevKitAdvance broken?

#85926 - Henochius - Sat Jun 03, 2006 6:03 am

I can't get DevKitAdvance to work, when I give a command eg.:

gcc -o ww.elf sys.c eng1.c eng2.c -lm

I'm getting this error:

"Linkstub failed (c/DEVKIT~1/BIN/GCC -> arm-agb-elf-gcc) = c/e/gba/ww/c/DEVKIT~1/BIN/arm-agb-elf-gcc: No such file or directory
Thought that link path (arm-agb-elf-gcc) was a relative path.
Thought that argv[0] (c/DEVKIT~1/BIN/GCC) was a relative path."

I have installed the compiler to C:\DEVKITADV as recommended. I have added C:\DEVKITADV and C:\DEVKITADV\BIN to my path...

I have looked at the FAQs, they do not seem to mention this problem. And it doesn't seem that any documentation is included with the compiler for some reason. Aaarggh...please help, I have my Arcadia emulator almost finished but can't compile it!! :-( Many thanks...

#85927 - DiscoStew - Sat Jun 03, 2006 6:17 am

Try DevkitARM. DevkitAdvance hasn't been updated in a long time as far as I know, and DevkitARM is continually being updated.
_________________
DS - It's all about DiscoStew

#85929 - Henochius - Sat Jun 03, 2006 6:47 am

Thanks, will try that.

#85967 - Henochius - Sat Jun 03, 2006 4:49 pm

OK, I downloaded it...

According to the gbadev.org FAQ there should be a file "C:\devkitPro\devkitARM\bin\arm-elf-gcc.exe", but there is not :-( I found a file "arm-eabi-gcc.exe", so have been trying to use that instead... there's no docs with this one either :-(

I have set up paths. When I do:

arm-eabi-gcc -Wall -mthumb -mthumb-interwork -specs=gba_mb.specs gui.c cpu.c uvi.c -o ga.elf

I get the error

ARM-E~10.EXE: _spawnv: No such file or directory

Any clues what's going on? Thanks.

#85974 - MrD - Sat Jun 03, 2006 5:15 pm

That'll happen if you don't have msys installed, it seems. You can either install msys from the devkitpro site, or you can try going into the bin (the one with the arm-*-.exe's in it) directory and renaming the ld.exe to ld.old, and the ld.real.exe to ld.exe.

If it's the same as what happened to me (no msys) then that'll fix it all right up. :)

I had to search this forum for a while before I found this, however... :/

Edit - If you're still having troubled with devkitpro r19, try this thread. (Before anyone says, I searched and fixed the error before this thread existed ?_?)
_________________
Not active on this forum. For Lemmings DS help see its website.

#86079 - Henochius - Sun Jun 04, 2006 8:10 am

Followed the advice, still the same problem :-(

I give up, I will have to try HAMLib...