From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21271 invoked by alias); 19 Feb 2015 04:39:32 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 21255 invoked by uid 89); 19 Feb 2015 04:39:31 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 19 Feb 2015 04:39:30 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t1J4dKvs002159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 18 Feb 2015 23:39:20 -0500 Received: from localhost (dhcp-10-15-16-169.yyz.redhat.com [10.15.16.169]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id t1J4dJ8A013474 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Wed, 18 Feb 2015 23:39:20 -0500 From: Sergio Durigan Junior To: Cc: , Subject: Re: Build failure with probe patch References: <87wq3ercw0.fsf@redhat.com> <1424306916.27855.115.camel@ubuntu-sellcey> X-URL: http://blog.sergiodj.net Date: Thu, 19 Feb 2015 04:39:00 -0000 In-Reply-To: <1424306916.27855.115.camel@ubuntu-sellcey> (Steve Ellcey's message of "Wed, 18 Feb 2015 16:48:36 -0800") Message-ID: <877fveqzuw.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2015-02/txt/msg00514.txt.bz2 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/