From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22177 invoked by alias); 18 Feb 2013 19:31:15 -0000 Received: (qmail 22153 invoked by uid 22791); 18 Feb 2013 19:31:14 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,KHOP_SPAMHAUS_DROP,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_NO,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from caibbdcaaaaf.dreamhost.com (HELO homiemail-a47.g.dreamhost.com) (208.113.200.5) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 18 Feb 2013 19:30:37 +0000 Received: from homiemail-a47.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a47.g.dreamhost.com (Postfix) with ESMTP id C446F28406E; Mon, 18 Feb 2013 11:30:36 -0800 (PST) Received: from redwood.eagercon.com (c-50-148-128-197.hsd1.ca.comcast.net [50.148.128.197]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: eager@eagerm.com) by homiemail-a47.g.dreamhost.com (Postfix) with ESMTPSA id 984B728405C; Mon, 18 Feb 2013 11:30:36 -0800 (PST) Message-ID: <5122815C.1000406@eagerm.com> Date: Mon, 18 Feb 2013 19:31:00 -0000 From: Michael Eager User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: "gdb@sourceware.org" , binutils , Daniel Jacobowitz , rdsandiford@googlemail.com Subject: Re: MIPS build failure References: <51226C66.3010304__32532.8041137711$1361210543$gmane$org@eagerm.com> <874nh9xx61.fsf@talisman.default> In-Reply-To: <874nh9xx61.fsf@talisman.default> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2013-02/txt/msg00068.txt.bz2 On 02/18/2013 11:02 AM, Richard Sandiford wrote: > Michael Eager writes: >> Hi -- >> >> I'm seeing failures building gdb-head for MIPS targets. The >> failure are warnings while compiling the MIPS opcode tables. Gdb >> is built with -Werror and the tables have missing initializers for >> the 'exclusions' field. >> >> Is anyone else seeing this build failure? If not, what are >> you doing different from a minimal configuration? > > There are special makefile rules to handle this: > > micromips-opc.lo: micromips-opc.c > $(LTCOMPILE) $(NO_WMISSING_FIELD_INITIALIZERS) -c -o $@ $< > > mips-opc.lo: mips-opc.c > $(LTCOMPILE) $(NO_WMISSING_FIELD_INITIALIZERS) -c -o $@ $< > > mips16-opc.lo: mips16-opc.c > $(LTCOMPILE) $(NO_WMISSING_FIELD_INITIALIZERS) -c -o $@ $< > > Not sure why it isn't working for gdb though. Thanks. That was enough of a clue. I was picking up an old version of gcc which did not support -Wno-missing-field-initializers. The makefile set $NO_WMISSING_FIELD_INITIALIZERS to null. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077