delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/09/21/21:00:37

Message-ID: <002e01c261d3$6a77e030$0100a8c0@p4>
From: "Andrew Cottrell" <acottrel AT ihug DOT com DOT au>
To: <djgpp-workers AT delorie DOT com>, "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>,
"Andris Pavenis" <pavenis AT latnet DOT lv>
References: <10209161715 DOT AA20704 AT clio DOT rice DOT edu> <3D862656 DOT 54CED140 AT phekda DOT freeserve DOT co DOT uk> <007401c25e2d$1789eed0$7397adcb AT p4> <2110-Fri20Sep2002193303+0300-eliz AT is DOT elta DOT co DOT il> <001e01c26108$87534850$0100a8c0 AT p4> <7443-Sat21Sep2002113818+0300-eliz AT is DOT elta DOT co DOT il>
Subject: Re: djgpp 2.04 status page correction
Date: Sun, 22 Sep 2002 10:59:33 +1000
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1106
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Reply-To: djgpp-workers AT delorie DOT com

> > > >     1) GDB & Bin utilities does not support i786 (by default you
can't
> > build on P4 PC, changes to build are very easy)
Still there in GDB 5.2.1

> > > This should already be fixed in the latest GDB snapshots, perhaps
> > > even in the latest release GDB 5.2.1.  Please check.
>
> > Has anyone done a port of GDB 5.2.1 yet, even a DJGPP beta version that
I
> > can download and test?
Andris thanks for the GDB 5.2.1 link. I had to remove the check for the
${srcdir}/gdb/testsuite/gdb.cxx as there was no testsuite directory in the
zip.

> > I build on a P4 which in the configure stage is detected as a i786.
>
> So, is it a problem or isn't?  That is, does GDB 5.2.1, when
> configured and built on a P4, detect i786 and succeed to configure?
> Or does it fail to configure saying that this machine is not
> supported?
configure fails as follows on P4:-

checking for stdlib.h... (cached) yes
*** BFD does not support target i786-pc-msdosdjgpp.
*** Look in bfd/config.bfd for supported targets.
Configure in c:/dj204/gnu/gdb-5.2_1/opcodes failed, exiting.

The quick fix for this is as follows:
1) Add the following line above the main $srcdir/configure line:-
    target=i586-pc-msdosdjgpp
2) Add a $target parameter to the $srcdir/configure line:-
   $srcdir/configure  $target --srcdir="$srcdir" --prefix='${DJDIR}' \
                              ^^^^^^ NEW

This forces the build to be for a i586. This seems to be the default for
most of the packages. I could have used i686.

Once I performed the 3 changes (remove testsuite check, add target line, add
configure $target line) I build GDB 5.2.1 without a problem.

Andrew

- Raw text -


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