From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24235 invoked by alias); 1 Aug 2018 14:24:35 -0000 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 Received: (qmail 24203 invoked by uid 89); 1 Aug 2018 14:24:35 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,KAM_LOTSOFHASH,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=H*c:alternative, UD:php X-HELO: mail-ua0-f171.google.com Received: from mail-ua0-f171.google.com (HELO mail-ua0-f171.google.com) (209.85.217.171) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 01 Aug 2018 14:24:33 +0000 Received: by mail-ua0-f171.google.com with SMTP id i4-v6so12795906uak.0 for ; Wed, 01 Aug 2018 07:24:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=duAddo90fj2XsycHleZaZ+j6Go91tWeBGirLgKqlFjM=; b=eBaurEk5u8t7IN++vp/V0BXy5ESgFjAYZDYBlKiTLKy3uZ2csXIG4jF05VqSKHixqt tfY8s4v9CGlWIa65j2b0fWb3OrFuIsJ8I31stqjt5riEzJiAT8KLFsb5FprrnRDcEwxu ePr2wv0ZFI4dDVuTTEuOthjdq+6xwJ1Z5qaVrW7srZ252LzDufk37177ZFNu6Vzika1F P7IQAPUcHUmmjJmaTydzehUMfL82YHVLe8YkT+ajhMoqtZniHxcXMFn2J7DiLm5sdHKP rupGvDykTnExb4sbeozEXWpnkSOMx0jwr8B1wIg5rYjSwiOnU1ewJqjskdHlRATwryGQ hGmw== MIME-Version: 1.0 References: <34635b11cf35c120572f8452ff415e05@polymtl.ca> In-Reply-To: <34635b11cf35c120572f8452ff415e05@polymtl.ca> From: Bill Morgan Date: Wed, 01 Aug 2018 14:24:00 -0000 Message-ID: Subject: Re: elf-attrs.c compliation errors To: Simon Marchi Cc: gdb@sourceware.org Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00005.txt.bz2 On Wed, Aug 1, 2018 at 7:45 AM Simon Marchi wrote: > On 2018-07-31 20:44, Bill Morgan wrote: > > Hello, > > > > I'm building this commit: 33633d9f5b138a211405d482436db2f7661b190e > > > > With this configuration: > > > > ./configure \ > > --build=x86_64-w64-mingw64 \ > > --host=x86_64-w64-mingw64 \ > > --target=arm-none-eabi \ > > --with-python \ > > --without-tcl \ > > --without-tk \ > > --without-guile \ > > --with-expat \ > > --with-lzma \ > > --with-system-readline \ > > --with-zlib \ > > --enable-tui > > > > I am getting the compilation errors below: > > > > [snip] > > I also get this error when trying to build on Windows. Thanks for confirming. > I installed > mingw-w64 using the installer found here: > > http://mingw-w64.org/doku.php/download/mingw-builds > > I just noticed that the host gets auto-detected as "x86_64-pc-mingw64" > (same as you specified explicitly). I see that when building on mingw, > -Wno-format should be added, specifically ignoring these warnings: > > > https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;a=blob;f=bfd/warning.m4;h=5a7f92d61622c6a0934aa950f8aaa6bf55677d43;hb=HEAD#l75 > > However, it's only done when the host string contains "mingw32", not > "mingw64". Maybe this needs to be adjusted to "*-*-mingw*"? If you > grep, you'll find a bunch of other things conditionally done if the > triplet is "*-*-mingw32*", maybe they need to be adjusted too? > > I noticed that the mingw-w64-gdb package is built with the mingw32 third part of the triple. https://github.com/Alexpux/MSYS2-packages/blob/335af17a04df7481e80979eafbd134fef9de9a0f/pacman/makepkg_mingw64.conf#L49 https://github.com/Alexpux/MINGW-packages/blob/dbe70c831fe4024016d5466213b9167c31cdf054/mingw-w64-gdb/PKGBUILD#L85 I will use that configuration. Simon >