From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 33402 invoked by alias); 15 Dec 2016 19:47:34 -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 33359 invoked by uid 89); 15 Dec 2016 19:47:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=HCc:D*net, Hx-languages-length:1515 X-HELO: mail-qt0-f193.google.com Received: from mail-qt0-f193.google.com (HELO mail-qt0-f193.google.com) (209.85.216.193) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 15 Dec 2016 19:47:32 +0000 Received: by mail-qt0-f193.google.com with SMTP id m48so8267767qta.2 for ; Thu, 15 Dec 2016 11:47:32 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=fmdpHBwsiUy6dTJOPmCyJHWqBpmYCLibs5FDhCNgBmU=; b=PBkTX+80CvNT7scrbgjxKXTeOaZawfVswKy6X5FJPrW2qQAxlT8A2sJTU46OuGOhbY xLNuHCM0RHoDWpOzeBilHacmLbUH5oUm3AzTBq6+YQZKFFDS1jUjz6lZqI9OXInR4KXP HYrm4jvPVHHcfMZHlt8tZObxc7r0hKkNUCnlyFKAC2qKLQD/w+rQCyYEuMUaTeZ8tDEp MJsm4sow8NzGrEvC6o813p0kExAShdyzUwWTsR0s5e8biFhVw13BFK9y7zIGf7bn0MhB iimxKDilymrAa1h9IHhKArBL6eaMpwzkaxUiVffQudV6QjYwEMXhx7rsytHD9TJVFXTW VnTw== X-Gm-Message-State: AIkVDXJZkggAcZsvnMzlGV1z9kFArzn98OvEPZiAK8HY4LVEcvRGAwROLd9mqWJf+Vdub3KdHqfpkmi6eEeEzw== X-Received: by 10.237.61.210 with SMTP id j18mr1922254qtf.137.1481831251095; Thu, 15 Dec 2016 11:47:31 -0800 (PST) MIME-Version: 1.0 Received: by 10.12.144.11 with HTTP; Thu, 15 Dec 2016 11:47:30 -0800 (PST) In-Reply-To: References: From: Yao Qi Date: Thu, 15 Dec 2016 19:47:00 -0000 Message-ID: Subject: Re: Your commit 'MIPS/opcodes: Also set disassembler's ASE flags from ELF structures' broke GDB To: "Maciej W. Rozycki" Cc: sergiodj+buildbot@sergiodj.net, "gdb-patches@sourceware.org" Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes X-SW-Source: 2016-12/txt/msg00311.txt.bz2 On 16-12-15 12:15:33, Maciej W. Rozycki wrote: > > How do I get the canonical build/host/target system and `configure' > options used for this build? > > This failure is very odd to me, it looks like `opcodes/mips-dis.c' has > been included in the build of `libopcodes.a', however `bfd/elfxx-mips.c' > has *not* been included in the build of `libbfd.a'. Offhand I would > consider such a configuration broken, however maybe it is legitimate after > all. Has the opcodes/ subdirectory been configured differently from the > bfd/ subdirectory by any chance? > > In any case I have tried building a couple of GDB configurations and all > completed successfully. > Hi, Maciej, Did you build GDB on an i686-linux? I can somehow reproduce it on x86_64-linux, like this, ../opcodes/libopcodes.a(mips-dis.o): In function `set_default_mips_dis_options': mips-dis.c:(.text+0x906): undefined reference to `bfd_mips_elf_get_abiflags' collect2: error: ld returned 1 exit status make: *** [gdb] Error 1 I configure with these options, ../binutils-gdb/configure --host=i686-pc-linux-gnu --disable-sim --disable-binutils --disable-gprof --disa ble-gold --disable-gas --disable-ld --enable-targets=all CFLAGS='-m32' CXXFLAGS='-m32' however, the build fails due to failing to find i686-pc-linux-gnu-ar. I explicitly set AR=ar in make, or modify libtool in several directories. Finally, the build failed on the error above. -- Yao