Mail Archives: djgpp-workers/2002/09/21/21:00:37
> > > > 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 -