This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: C++ conversion status update
- From: jose dot marchesi at oracle dot com (Jose E. Marchesi)
- To: Pedro Alves <palves at redhat dot com>
- Cc: Yao Qi <qiyaoltc at gmail dot com>, "gdb\ at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 15 Dec 2015 12:46:04 +0100
- Subject: Re: C++ conversion status update
- Authentication-results: sourceware.org; auth=none
- References: <565460FB dot 6070103 at redhat dot com> <86zixdnlfg dot fsf at gmail dot com> <566F13D4 dot 9000900 at redhat dot com>
>> The question I have is which hosts (Architecture + OS combination) people
>> care about that still need C++ conversion work and thus should be on
>> that list?
>
> How about all linux and mingw hosts? assuming that xtensa can be
> converted.
x86-64 and x86 mingw built cleanly last I tried.
I don't know about _all_ Linux hosts, hence the RFH.
At least x86, x86_64, Aarch64, ARM, and PPC64 build cleanly. Or did, a
few weeks back.
In sparc-*-linux-gnu:
- Builds fine with GCC 6 (svn).
- Builds fine with GCC 4.9.1.
- Build fails with GCC 4.4.7:
g++ -g -O2 -I. -I../../gdb -I../../gdb/common -I../../gdb/config -DLOCALEDIR="\"/usr/local/share/locale\"" -DHAVE_CONFIG_H -I../../gdb/../include/opcode -I../../gdb/../opcodes/.. -I../../gdb/../readline/.. -I../../gdb/../zlib -I../bfd -I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber -I../../gdb/../libdecnumber -I../../gdb/gnulib/import -Ibuild-gnulib/import -DTUI=1 -I/usr/include/python2.6 -I/usr/include/python2.6 -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wno-sign-compare -Wno-write-strings -Wno-narrowing -Wformat-nonliteral -Werror -c -o sparc64-tdep.o -MT sparc64-tdep.o -MMD -MP -MF .deps/sparc64-tdep.Tpo ../../gdb/sparc64-tdep.c
cc1plus: warnings being treated as errors
In file included from ../../gdb/target.h:74,
from ../../gdb/exec.h:23,
from ../../gdb/gdbcore.h:29,
from ../../gdb/sparc64-tdep.c:27:
../../gdb/btrace.h: In function âsize_t VEC_btrace_insn_s_embedded_size(int)â:
../../gdb/btrace.h:84: error: invalid access to non-static data member âVEC_btrace_insn_s::vecâ of NULL object
../../gdb/btrace.h:84: error: (perhaps the âoffsetofâ macro was used incorrectly)
../../gdb/btrace.h: In function âVEC_btrace_insn_s* VEC_btrace_insn_s_alloc(int)â:
../../gdb/btrace.h:84: error: invalid access to non-static data member âVEC_btrace_insn_s::vecâ of NULL object
../../gdb/btrace.h:84: error: (perhaps the âoffsetofâ macro was used incorrectly)
../../gdb/btrace.h: In function âVEC_btrace_insn_s* VEC_btrace_insn_s_copy(VEC_btrace_insn_s*)â:
../../gdb/btrace.h:84: error: invalid access to non-static data member âVEC_btrace_insn_s::vecâ of NULL object
../../gdb/btrace.h:84: error: (perhaps the âoffsetofâ macro was used incorrectly)
../../gdb/btrace.h: In function âVEC_btrace_insn_s* VEC_btrace_insn_s_merge(VEC_btrace_insn_s*, VEC_btrace_insn_s*)â:
../../gdb/btrace.h:84: error: invalid access to non-static data member âVEC_btrace_insn_s::vecâ of NULL object
../../gdb/btrace.h:84: error: (perhaps the âoffsetofâ macro was used incorrectly)
../../gdb/btrace.h: In function âint VEC_btrace_insn_s_reserve(VEC_btrace_insn_s**, int, const char*, unsigned int)â:
../../gdb/btrace.h:84: error: invalid access to non-static data member âVEC_btrace_insn_s::vecâ of NULL object
../../gdb/btrace.h:84: error: (perhaps the âoffsetofâ macro was used incorrectly)
At global scope:
cc1plus: error: unrecognized command line option "-Wno-narrowing"
make[2]: *** [sparc64-tdep.o] Error 1
make[2]: Leaving directory `/home/jemarch/couts2/binutils-gdb/build/gdb'
make[1]: *** [all-gdb] Error 2
make[1]: Leaving directory `/home/jemarch/couts2/binutils-gdb/build'
make: *** [all] Error 2