delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/07/11/14:15:24

Xref: news2.mv.net comp.os.msdos.djgpp:5876
From: Greg Bond <bond AT ee DOT ubc DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: make/configure problems compiling gdb
Date: Wed, 10 Jul 1996 23:11:28 -0700
Organization: Dept. of Electrical Eng., UBC
Lines: 55
Message-ID: <31E49B10.9AB@ee.ubc.ca>
NNTP-Posting-Host: bug.ee.ubc.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've been using djgpp v2 under Win95 for a while now and it's worked as 
advertised. DJGPP is quite an amazing feat really. However, I've 
recently had to re-compile gdb from its source and I've been getting 
nowhere fast. I should say that I've compiled gdb on a Sun (for a Sun) 
before with no problems - it's the DJGPP version that giving me 
problems. 

I'm no Win95, DOS, or DJGPP expert so the solutions to these problems 
may be trivial (I hope!).

First of all, in the top-level configur.bat file there is the command: 
"chdir libiberty", which fails because the DOS name for this directory 
is actually "libibert". I've set LFN=y in my DJGPP.ENV file but it makes 
no difference whether its equal to y or n. When is the var actually 
referenced anyway?

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. MAKEGDB.BAT directs me to ignore the top-level 
configure/make, and instead, manually perform configure/make in each 
sub-directory. This is curious but I give it a try anyway since teh 
top-level configure fails. 

I start in the bfd subdirectory and find that make fails because $(CC) 
is not defined in the makefile. I define it myself by editing the 
makefile. The make fails again, this time because make doesn't know how 
to make the target Makefile.in when it tries to make the target 
Makefile:

"Makefile: Makefile.in configure.in $(host_makefile_frag) 
$(target_makefile_frag)"

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.

At this point I gave up (not really - I searched the DJGPP FAQ and email 
archives for a solution but to no avail). I think a lot of my problems 
will be cleared up if I can fix the filename disparity problem. However, 
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.

Can anyone provide any assistance here please?

TIA.
--
* Greg Bond                         * Dept. of Electrical Eng.  
* email: bond AT ee DOT ubc DOT ca             * Univ. of British Columbia      
* voice: (604) 822 0899             * 2356 Main Mall                 
* fax:   (604) 822 5949             * Vancouver, BC              
* web: http://www.ee.ubc.ca/~bond   * Canada, V6T 1Z4

- Raw text -


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