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.

DS development > Compiler help (I think)

#52445 - spencer723 - Wed Aug 31, 2005 12:57 am

I keep getting these errors when I try and compile (I'm using Dev-Cpp) I don't know if this has to do with the Makefile or something. Here are the errors:

C:\Dev-Cpp\arm-elf-gcc _crt0.s: No such file or directory.
C:\Dev-Cpp\arm-elf-gcc [Warning] '-x assembler-with-cpp' after last input file has no effect
C:\Dev-Cpp\arm-elf-gcc no input files
C:\devkitPro\devkitARM\arm-elf\lib\Makefile [Build Error] [all] Error 1

Thanks in advance to whoever can help me.

Here's the Makefile if it helps
Code:

PREFIX         :=   arm-elf-
export CC      :=   $(PREFIX)gcc
export CXX      :=   $(PREFIX)g++
export AR      :=   $(PREFIX)ar
export OBJCOPY   :=   $(PREFIX)objcopy

all:
   $(CC)  -x assembler-with-cpp -marm -c $(CRT)_crt0.s -o$(CRT)_crt0.o
   $(CC)  -x assembler-with-cpp -marm -mthumb-interwork -c $(CRT)_crt0.s -o interwork/$(CRT)_crt0.o
   $(CC)  -x assembler-with-cpp -mthumb -c $(CRT)_crt0.s -o thumb/$(CRT)_crt0.o
   $(CC)  -x assembler-with-cpp -mthumb -mthumb-interwork -c $(CRT)_crt0.s -o thumb/interwork/$(CRT)_crt0.o


Last edited by spencer723 on Wed Aug 31, 2005 1:06 am; edited 2 times in total

#52447 - deltro - Wed Aug 31, 2005 1:01 am

I'd say reinstall, but who am I?

#52453 - spencer723 - Wed Aug 31, 2005 1:32 am

Is there an updated Makefile I need or is something not linking correctly?

#52459 - dXtr - Wed Aug 31, 2005 2:09 am

well.. from what I can see the makefile uses a variable named CRT
that isn't defined

#52461 - spencer723 - Wed Aug 31, 2005 2:54 am

dXtr wrote:
well.. from what I can see the makefile uses a variable named CRT
that isn't defined


That could be the problem... isn't (CRT) suppose to be either arm7 or arm9. If so, what should I do to fix this?

#52470 - spencer723 - Wed Aug 31, 2005 3:19 am

I'm sort of new at this, so I don't know this or not but do I need to make my own "Makefile"? Or am I able to use the one that came with the dev kit?

#52475 - wintermute - Wed Aug 31, 2005 4:46 am

spencer723 wrote:
I'm sort of new at this, so I don't know this or not but do I need to make my own "Makefile"? Or am I able to use the one that came with the dev kit?


That Makefile is for use when regenerating the crt0 files.

Use the installer package found at http://prdownloads.sourceforge.net/devkitpro/devkitProUpdater-1.0.5.exe?download

Once complete you should have a fully functioning toolchain with a set of examples.

#52517 - spencer723 - Wed Aug 31, 2005 12:53 pm

Thanks, I installed the devKitPro. Now I have a few more questions, do I need to use a Makefile for any compiling? I'm also having trouble with finding the "environment variables" in Windows 98, are there even environment variables in Windows 98? Am I able to compile under Dev-cpp and get a ds.gba and .nds file?

#52601 - dXtr - Thu Sep 01, 2005 6:56 am

usually you set up enviorment vars. in win98 in autoexec.bat iirc... was like 2yrs since I last used it ;)
but you can always do like I do and just do a bat file to seup this kind of things.

example from my djgpp.bat file (I have djgpp installed in g:\djgpp) that I use when compiling with djgpp:

@echo off
set PATH=g:\djgpp\bin;%PATH%
set DJGPP=g:\djgpp\djgpp.env
chdir g:\djgpp\projects
cmd

#52621 - spencer723 - Thu Sep 01, 2005 1:01 pm

Thanks!