* Why gdb fail to make
@ 2013-05-15 10:51 hitlar
2013-05-15 11:11 ` Joel Brobecker
0 siblings, 1 reply; 9+ messages in thread
From: hitlar @ 2013-05-15 10:51 UTC (permalink / raw)
To: gdb
Why gdb fail to make. i have already configure & make binutils-2.23.51-1,
gcc-core-3.4.4, gcc-c++-3.4.4 for target i386-elf (cygwin version 2.774 and
window7), but when i build gdb-7.6.50-2 it gives following error
Shine@Shine-PC /usr/src/gdb-elf-7.6.50-2
../gdb-7.6.50-2/configure --prefix=/usr/local/i386 --target=i386-elf
Shine@Shine-PC /usr/src/gdb-elf-7.6.50-2
$ make
make[1]: Entering directory `/usr/src/gdb-elf-7.6.50-2'
make[2]: Entering directory `/usr/src/gdb-elf-7.6.50-2/libiberty'
make[3]: Entering directory `/usr/src/gdb-elf-7.6.50-2/libiberty/testsuite'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/libiberty/testsuite'
make[2]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/libiberty'
make[2]: Entering directory `/usr/src/gdb-elf-7.6.50-2/intl'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/intl'
make[2]: Entering directory `/usr/src/gdb-elf-7.6.50-2/bfd'
Making info in doc
make[3]: Entering directory `/usr/src/gdb-elf-7.6.50-2/bfd/doc'
make[3]: Nothing to be done for `info'.
make[3]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/bfd/doc'
Making info in po
make[3]: Entering directory `/usr/src/gdb-elf-7.6.50-2/bfd/po'
make[3]: Nothing to be done for `info'.
make[3]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/bfd/po'
make[3]: Entering directory `/usr/src/gdb-elf-7.6.50-2/bfd'
make[3]: Nothing to be done for `info-am'.
make[3]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/bfd'
make all-recursive
make[3]: Entering directory `/usr/src/gdb-elf-7.6.50-2/bfd'
Making all in doc
make[4]: Entering directory `/usr/src/gdb-elf-7.6.50-2/bfd/doc'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/bfd/doc'
Making all in po
make[4]: Entering directory `/usr/src/gdb-elf-7.6.50-2/bfd/po'
file=`echo ../../../gdb-7.6.50-2/bfd/po/da | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/bfd/po/da.po
file=`echo ../../../gdb-7.6.50-2/bfd/po/es | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/bfd/po/es.po
file=`echo ../../../gdb-7.6.50-2/bfd/po/fr | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/bfd/po/fr.po
file=`echo ../../../gdb-7.6.50-2/bfd/po/ja | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/bfd/po/ja.po
file=`echo ../../../gdb-7.6.50-2/bfd/po/vi | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/bfd/po/vi.po
file=`echo ../../../gdb-7.6.50-2/bfd/po/zh_CN | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/bfd/po/zh_CN.po
file=`echo ../../../gdb-7.6.50-2/bfd/po/fi | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/bfd/po/fi.po
file=`echo ../../../gdb-7.6.50-2/bfd/po/id | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/bfd/po/id.po
file=`echo ../../../gdb-7.6.50-2/bfd/po/ru | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/bfd/po/ru.po
file=`echo ../../../gdb-7.6.50-2/bfd/po/uk | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/bfd/po/uk.po
make[4]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/bfd/po'
make[4]: Entering directory `/usr/src/gdb-elf-7.6.50-2/bfd'
make[4]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/bfd'
make[3]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/bfd'
make[2]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/bfd'
make[2]: Entering directory `/usr/src/gdb-elf-7.6.50-2/opcodes'
make all-recursive
make[3]: Entering directory `/usr/src/gdb-elf-7.6.50-2/opcodes'
Making all in .
make[4]: Entering directory `/usr/src/gdb-elf-7.6.50-2/opcodes'
make[4]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/opcodes'
Making all in po
make[4]: Entering directory `/usr/src/gdb-elf-7.6.50-2/opcodes/po'
file=`echo ../../../gdb-7.6.50-2/opcodes/po/da | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/opcodes/po/da.po
file=`echo ../../../gdb-7.6.50-2/opcodes/po/es | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/opcodes/po/es.po
file=`echo ../../../gdb-7.6.50-2/opcodes/po/fi | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/opcodes/po/fi.po
file=`echo ../../../gdb-7.6.50-2/opcodes/po/fr | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/opcodes/po/fr.po
file=`echo ../../../gdb-7.6.50-2/opcodes/po/ga | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/opcodes/po/ga.po
file=`echo ../../../gdb-7.6.50-2/opcodes/po/id | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/opcodes/po/id.po
file=`echo ../../../gdb-7.6.50-2/opcodes/po/nl | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/opcodes/po/nl.po
file=`echo ../../../gdb-7.6.50-2/opcodes/po/vi | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/opcodes/po/vi.po
file=`echo ../../../gdb-7.6.50-2/opcodes/po/zh_CN | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/opcodes/po/zh_CN.po
file=`echo ../../../gdb-7.6.50-2/opcodes/po/it | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/opcodes/po/it.po
file=`echo ../../../gdb-7.6.50-2/opcodes/po/uk | sed 's,.*/,,'`.gmo \
&& rm -f $file && PATH=../src:$PATH : -o $file
../../../gdb-7.6.50-2/opcodes/po/uk.po
make[4]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/opcodes/po'
make[3]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/opcodes'
make[2]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/opcodes'
make[2]: Entering directory `/usr/src/gdb-elf-7.6.50-2/etc'
for f in standards.info configure.info; do \
if test -f ../../gdb-7.6.50-2/etc/`echo $f | sed -e 's/.info$/.texi/'`;
then \
if make "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000"
$f; then \
true; \
else \
exit 1; \
fi; \
fi; \
done
make[3]: Entering directory `/usr/src/gdb-elf-7.6.50-2/etc'
make[3]: `standards.info' is up to date.
make[3]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/etc'
make[3]: Entering directory `/usr/src/gdb-elf-7.6.50-2/etc'
make[3]: `configure.info' is up to date.
make[3]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/etc'
make[2]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/etc'
make[2]: Entering directory `/usr/src/gdb-elf-7.6.50-2/libdecnumber'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/libdecnumber'
make[2]: Entering directory `/usr/src/gdb-elf-7.6.50-2/readline'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/readline'
make[2]: Entering directory `/usr/src/gdb-elf-7.6.50-2/gdb'
make[3]: Entering directory `/usr/src/gdb-elf-7.6.50-2/gdb'
make[4]: Entering directory `/usr/src/gdb-elf-7.6.50-2/gdb/build-gnulib'
make[5]: Entering directory `/usr/src/gdb-elf-7.6.50-2/gdb/build-gnulib'
make[6]: Entering directory
`/usr/src/gdb-elf-7.6.50-2/gdb/build-gnulib/import'
make all-recursive
make[7]: Entering directory
`/usr/src/gdb-elf-7.6.50-2/gdb/build-gnulib/import'
make[8]: Entering directory
`/usr/src/gdb-elf-7.6.50-2/gdb/build-gnulib/import'
make[8]: Nothing to be done for `all-am'.
make[8]: Leaving directory
`/usr/src/gdb-elf-7.6.50-2/gdb/build-gnulib/import'
make[7]: Leaving directory
`/usr/src/gdb-elf-7.6.50-2/gdb/build-gnulib/import'
make[6]: Leaving directory
`/usr/src/gdb-elf-7.6.50-2/gdb/build-gnulib/import'
make[5]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/gdb/build-gnulib'
make[4]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/gdb/build-gnulib'
make[3]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/gdb'
gcc -g -O2 -I. -I../../gdb-7.6.50-2/gdb -I../../gdb-7.6.50-2/gdb/common
-I../../gdb-7.6.50-2/gdb/config
-DLOCALEDIR="\"/usr/local/i386/share/locale\"" -DHAVE_CONFIG_H
-I../../gdb-7.6.50-2/gdb/../include/opcode
-I../../gdb-7.6.50-2/gdb/../opcodes/..
-I../../gdb-7.6.50-2/gdb/../readline/.. -I../bfd
-I../../gdb-7.6.50-2/gdb/../bfd -I../../gdb-7.6.50-2/gdb/../include
-I../libdecnumber -I../../gdb-7.6.50-2/gdb/../libdecnumber
-I../../gdb-7.6.50-2/gdb/gnulib/import -Ibuild-gnulib/import -DTUI=1
-I/usr/include/python2.7 -I/usr/include/python2.7 -Wall
-Wdeclaration-after-statement -Wpointer-arith -Wformat-nonliteral
-Wno-unused -Wunused-value -Wunused-function -Wno-switch
-Wno-char-subscripts -Wmissing-prototypes -Wdeclaration-after-statement
-Werror -c -o gdb.o -MT gdb.o -MMD -MP -MF .deps/gdb.Tpo
../../gdb-7.6.50-2/gdb/gdb.c
In file included from ../../gdb-7.6.50-2/gdb/defs.h:803,
from ../../gdb-7.6.50-2/gdb/gdb.c:19:
../../gdb-7.6.50-2/gdb/utils.h:283: warning: parameter has incomplete type
Makefile:979: recipe for target `gdb.o' failed
make[2]: *** [gdb.o] Error 1
make[2]: Leaving directory `/usr/src/gdb-elf-7.6.50-2/gdb'
Makefile:8261: recipe for target `all-gdb' failed
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/usr/src/gdb-elf-7.6.50-2'
Makefile:831: recipe for target `all' failed
make: *** [all] Error 2
--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Why-gdb-fail-to-make-tp231905.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why gdb fail to make
2013-05-15 10:51 Why gdb fail to make hitlar
@ 2013-05-15 11:11 ` Joel Brobecker
2013-05-15 11:24 ` Eli Zaretskii
0 siblings, 1 reply; 9+ messages in thread
From: Joel Brobecker @ 2013-05-15 11:11 UTC (permalink / raw)
To: hitlar; +Cc: gdb
> In file included from ../../gdb-7.6.50-2/gdb/defs.h:803,
> from ../../gdb-7.6.50-2/gdb/gdb.c:19:
> ../../gdb-7.6.50-2/gdb/utils.h:283: warning: parameter has incomplete type
> Makefile:979: recipe for target `gdb.o' failed
I think that's from the following declaration in utils.h:
enum errors;
This was reported recently, and we discovered that this type of
declaration was a GCC extension not supported by older versions
of GCC.
I thought we had this fixed, already, but it looks like not.
You can probably work-around the problem by adding
#include "exceptions.h"
around the start of utils.h. Or configure with --disable-werror.
--
Joel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why gdb fail to make
2013-05-15 11:11 ` Joel Brobecker
@ 2013-05-15 11:24 ` Eli Zaretskii
2013-05-15 11:29 ` Joel Brobecker
0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2013-05-15 11:24 UTC (permalink / raw)
To: Joel Brobecker; +Cc: hitlar.india, gdb
> Date: Wed, 15 May 2013 15:10:56 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: gdb@sourceware.org
>
> > In file included from ../../gdb-7.6.50-2/gdb/defs.h:803,
> > from ../../gdb-7.6.50-2/gdb/gdb.c:19:
> > ../../gdb-7.6.50-2/gdb/utils.h:283: warning: parameter has incomplete type
> > Makefile:979: recipe for target `gdb.o' failed
>
> I think that's from the following declaration in utils.h:
>
> enum errors;
Right.
> This was reported recently, and we discovered that this type of
> declaration was a GCC extension not supported by older versions
> of GCC.
>
> I thought we had this fixed, already, but it looks like not.
Sorry.
> You can probably work-around the problem by adding
>
> #include "exceptions.h"
>
> around the start of utils.h.
My understanding was that this is the solution, not a work-around.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why gdb fail to make
2013-05-15 11:24 ` Eli Zaretskii
@ 2013-05-15 11:29 ` Joel Brobecker
2013-05-15 12:56 ` Joel Brobecker
0 siblings, 1 reply; 9+ messages in thread
From: Joel Brobecker @ 2013-05-15 11:29 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: hitlar.india, gdb
> > You can probably work-around the problem by adding
> >
> > #include "exceptions.h"
> >
> > around the start of utils.h.
>
> My understanding was that this is the solution, not a work-around.
I meant that the patching by hand until we get the fix in CVS
as the workaround. I will commit a fix momentarily, since I am
hacking on GDB at the moment...
--
Joel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why gdb fail to make
2013-05-15 11:29 ` Joel Brobecker
@ 2013-05-15 12:56 ` Joel Brobecker
2013-05-15 13:29 ` Eli Zaretskii
0 siblings, 1 reply; 9+ messages in thread
From: Joel Brobecker @ 2013-05-15 12:56 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: hitlar.india, gdb
> > > You can probably work-around the problem by adding
> > >
> > > #include "exceptions.h"
> > >
> > > around the start of utils.h.
> >
> > My understanding was that this is the solution, not a work-around.
>
> I meant that the patching by hand until we get the fix in CVS
> as the workaround. I will commit a fix momentarily, since I am
> hacking on GDB at the moment...
Done: http://www.sourceware.org/ml/gdb-patches/2013-05/msg00522.html
I also proposed that the patch be applied to the 7.6 branch.
--
Joel
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why gdb fail to make
2013-05-15 12:56 ` Joel Brobecker
@ 2013-05-15 13:29 ` Eli Zaretskii
2013-05-16 3:51 ` hitlar
0 siblings, 1 reply; 9+ messages in thread
From: Eli Zaretskii @ 2013-05-15 13:29 UTC (permalink / raw)
To: Joel Brobecker; +Cc: hitlar.india, gdb
> Date: Wed, 15 May 2013 16:56:11 +0400
> From: Joel Brobecker <brobecker@adacore.com>
> Cc: hitlar.india@gmail.com, gdb@sourceware.org
>
> > > > You can probably work-around the problem by adding
> > > >
> > > > #include "exceptions.h"
> > > >
> > > > around the start of utils.h.
> > >
> > > My understanding was that this is the solution, not a work-around.
> >
> > I meant that the patching by hand until we get the fix in CVS
> > as the workaround. I will commit a fix momentarily, since I am
> > hacking on GDB at the moment...
>
> Done: http://www.sourceware.org/ml/gdb-patches/2013-05/msg00522.html
Thanks.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why gdb fail to make
2013-05-15 13:29 ` Eli Zaretskii
@ 2013-05-16 3:51 ` hitlar
2013-05-16 4:16 ` hitlar
0 siblings, 1 reply; 9+ messages in thread
From: hitlar @ 2013-05-16 3:51 UTC (permalink / raw)
To: gdb
Good Morning,
Thanks for quick reply, Really this forum is best for quick response, again
a lot of thanks, all of you who reply & concerning person.
--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Why-gdb-fail-to-make-tp231905p232075.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why gdb fail to make
2013-05-16 3:51 ` hitlar
@ 2013-05-16 4:16 ` hitlar
2013-05-16 9:42 ` Pedro Alves
0 siblings, 1 reply; 9+ messages in thread
From: hitlar @ 2013-05-16 4:16 UTC (permalink / raw)
To: gdb
gdb configure, make & make install smoothly but i want configure gdbserver
with above package it gives following error message
Shine@Shine-PC /usr/src/gdb-7.6.50-2/gdb/gdbserver-elf
$ ../gdbserver/configure --prefix=/usr/local/i386 --target=i386-elf
--disable-werror
checking compiler warning flags... -Wall -Wdeclaration-after-statement
-Wpointe r-arith -Wformat-nonliteral -Wno-char-subscripts
checking for dladdr... no
checking for errno... yes - in errno.h
checking whether strerror is declared... yes
checking whether strstr is declared... yes
checking whether perror is declared... yes
checking whether vasprintf is declared... yes
checking whether vsnprintf is declared... yes
checking for socklen_t... yes
checking for Elf32_auxv_t... no
checking for Elf64_auxv_t... no
Error: target not supported by gdbserver.
--
View this message in context: http://sourceware-org.1504.n7.nabble.com/Why-gdb-fail-to-make-tp231905p232080.html
Sent from the Sourceware - gdb list mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: Why gdb fail to make
2013-05-16 4:16 ` hitlar
@ 2013-05-16 9:42 ` Pedro Alves
0 siblings, 0 replies; 9+ messages in thread
From: Pedro Alves @ 2013-05-16 9:42 UTC (permalink / raw)
To: hitlar; +Cc: gdb
On 05/16/2013 05:16 AM, hitlar wrote:
> gdb configure, make & make install smoothly but i want configure gdbserver
> with above package it gives following error message
>
> Shine@Shine-PC /usr/src/gdb-7.6.50-2/gdb/gdbserver-elf
> $ ../gdbserver/configure --prefix=/usr/local/i386 --target=i386-elf
...
> Error: target not supported by gdbserver.
That's correct. i386-elf (a bare metal target) is not supported
by gdbserver. gdbserver is meant to be run on a full feature OSs.
--
Pedro Alves
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2013-05-16 9:42 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-05-15 10:51 Why gdb fail to make hitlar
2013-05-15 11:11 ` Joel Brobecker
2013-05-15 11:24 ` Eli Zaretskii
2013-05-15 11:29 ` Joel Brobecker
2013-05-15 12:56 ` Joel Brobecker
2013-05-15 13:29 ` Eli Zaretskii
2013-05-16 3:51 ` hitlar
2013-05-16 4:16 ` hitlar
2013-05-16 9:42 ` Pedro Alves
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox