www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/11/14:58:22

Date: Thu, 11 Jul 1996 21:48:52 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Greg Bond <bond AT ee DOT ubc DOT ca>
Cc: djgpp AT delorie DOT com
Subject: Re: make/configure problems compiling gdb
In-Reply-To: <31E49B10.9AB@ee.ubc.ca>
Message-Id: <Pine.SUN.3.91.960711212650.7736J-100000@is>
Mime-Version: 1.0

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019