From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 37788 invoked by alias); 1 Aug 2018 12:45:43 -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 37657 invoked by uid 89); 1 Aug 2018 12:45:34 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2 spammy=morgan, Morgan, installer, Wnoformat X-HELO: smtp.polymtl.ca Received: from smtp.polymtl.ca (HELO smtp.polymtl.ca) (132.207.4.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 01 Aug 2018 12:45:31 +0000 Received: from simark.ca (simark.ca [158.69.221.121]) (authenticated bits=0) by smtp.polymtl.ca (8.14.7/8.14.7) with ESMTP id w71CjIuf012673 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 1 Aug 2018 08:45:23 -0400 Received: by simark.ca (Postfix, from userid 112) id 3DDCA1EF36; Wed, 1 Aug 2018 08:45:18 -0400 (EDT) Received: from simark.ca (localhost [127.0.0.1]) by simark.ca (Postfix) with ESMTP id E9DA91E077; Wed, 1 Aug 2018 08:45:15 -0400 (EDT) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Date: Wed, 01 Aug 2018 12:45:00 -0000 From: Simon Marchi To: Bill Morgan Cc: gdb@sourceware.org Subject: Re: elf-attrs.c compliation errors In-Reply-To: References: Message-ID: <34635b11cf35c120572f8452ff415e05@polymtl.ca> X-Sender: simon.marchi@polymtl.ca User-Agent: Roundcube Webmail/1.3.6 X-IsSubscribed: yes X-SW-Source: 2018-08/txt/msg00003.txt.bz2 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. 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? Simon