Mail Archives: djgpp/1996/07/11/14:58:22
On Wed, 10 Jul 1996, Greg Bond wrote:
> I'm no Win95, DOS, or DJGPP expert so the solutions to these problems
> may be trivial (I hope!).
They are. Cheer up and read on.
> First of all, in the top-level configur.bat file there is the command:
> "chdir libiberty"
Wrong start. That batch file shouldn't be executed at all. You should
only do what MAKEGDB.BAT tells you to do.
> Next, I noticed a subdirectory DJGPP within which the file MAKEGDB.BAT
> provides directions for building gdb for DJGPP. However, when I made gdb
> on a Sun I only had to run configure and make in the top-level
> directory.
Autoconfigure won't run on MSDOS, because it requires a Unix shell (and
uses its features *heavily*). Don't even think about it.
> MAKEGDB.BAT directs me to ignore the top-level
> configure/make, and instead, manually perform configure/make in each
> sub-directory.
That's what you need to do.
> I start in the bfd subdirectory and find that make fails because $(CC)
> is not defined in the makefile.
What Make do you use? Is it from DJGPP? I think GNU Make defines $CC to
be gcc by default, so you needn't edit the makefile (although it doesn't
do any harm).
> So I simply delete Makefile.in as a dependency and the make actually
> starts to work but then fails again trying to make the target
> ecofflink.o. This problem appears to be related to the filename length
> problem I encountered earlier since only the file ecofflin.c is present
> in the bfd directory.
You should set LFN=n from the DOS prompt. I think this problem (and
possibly also others) are caused by the fact that Make is trying to
support long filenames (aka LFN) under Win95, but the current DJGPP port
of GNU Make is not LFN-clean, and thus fails (although most DJGPP programs
do support LFN). To correct this, type this from the DOS prompt BEFORE
you begin building GDB:
set LFN=n
and press [Enter]. Then repeat all the steps (and maybe unzip GDB
sources again, in case you did something during your attempts that won't
let it build).
> even if this is fixed up I'm surprised that I'm having to edit Makefiles
> to get gdb to compile, when MAKEGDB.BAT makes no mention of having to do
> this.
Yes, it does. It tells you to ``Alter makefile.dos if you want''.
> Can anyone provide any assistance here please?
I did everything like MAKEGDB.BAT says (I didn't run the .bat file, I did
manually everything it says), and it worked like a snap. The only
differences are that (a) I didn't do it under Win95, and (b) I didn't
give up ;-).
- Raw text -