This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Build failure with probe patch
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: <sellcey at imgtec dot com>
- Cc: <jose dot marchesi at oracle dot com>, <gdb-patches at sourceware dot org>
- Date: Wed, 18 Feb 2015 23:39:19 -0500
- Subject: Re: Build failure with probe patch
- Authentication-results: sourceware.org; auth=none
- References: <bac100bc-73de-4bf6-86b5-912ad6887c5a at BAMAIL02 dot ba dot imgtec dot org> <87wq3ercw0 dot fsf at redhat dot com> <1424306916 dot 27855 dot 115 dot camel at ubuntu-sellcey>
On Wednesday, February 18 2015, Steve Ellcey wrote:
> I would like to avoid updating GCC if possible. I build on old systems
> because some of our customers use old systems. I don't know if gdb has
> a 'minimal GCC' that it can be compiled with like GCC and some other
> projects have.
Sure, it's your option. I know some people here still use old compilers
to build GDB, but I don't remember of any explicit rule about a minimal
GCC version.
> I tried changing the definition of 'dof' to be '
> bfd_byte *' instead of 'struct dtrace_dof_hdr *' and then casting it on
> the call to dtrace_process_dof instead of the call to
> bfd_malloc_and_get_section. That got rid of the type punning message
> but I wound up seeing:
>
> /scratch/gcc/nightly/src/binutils-gdb/gdb/dtrace-probe.c: In function
> 'dtrace_get_probes':
> /scratch/gcc/nightly/src/binutils-gdb/gdb/dtrace-probe.c:64: warning:
> 'arg.expr' is used uninitialized in this function
> make[1]: *** [dtrace-probe.o] Error 1
This error message is completely misleading. I built GCC 4.1.2 and
managed to reproduce it, but I couldn't find the reason. Anyway, I have
not spent too much time on the problem, but let me know if you need some
help.
> Which I do not understand at all. I will investigate some more and see
> if there is a clean way to get this to compile with GCC 4.1.2.
That would be much appreciated. Thank you!
--
Sergio
GPG key ID: 0x65FC5E36
Please send encrypted e-mail if possible
http://sergiodj.net/