From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111734 invoked by alias); 27 Nov 2015 22:36:05 -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 111721 invoked by uid 89); 27 Nov 2015 22:36:04 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: outpost17.zedat.fu-berlin.de Received: from outpost17.zedat.fu-berlin.de (HELO outpost17.zedat.fu-berlin.de) (130.133.4.110) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 27 Nov 2015 22:36:03 +0000 Received: from relay1.zedat.fu-berlin.de ([130.133.4.67]) by outpost.zedat.fu-berlin.de (Exim 4.85) with esmtp (envelope-from ) id <1a2RcW-00048J-LX>; Fri, 27 Nov 2015 23:36:00 +0100 Received: from mx.physik.fu-berlin.de ([160.45.64.218]) by relay1.zedat.fu-berlin.de (Exim 4.85) with esmtps (envelope-from ) id <1a2RcW-0023yD-Je>; Fri, 27 Nov 2015 23:36:00 +0100 Received: from login1.physik.fu-berlin.de ([160.45.66.207]) by mx.physik.fu-berlin.de with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1a2RcS-0005Sm-V0; Fri, 27 Nov 2015 23:35:56 +0100 Received: from tburnus by login1.physik.fu-berlin.de with local (Exim 4.80 #3 (Debian)) id 1a2RcS-0004xn-OO; Fri, 27 Nov 2015 23:35:56 +0100 Date: Fri, 27 Nov 2015 22:36:00 -0000 From: Tobias Burnus To: Simon Marchi Cc: gdb-patches@sourceware.org Subject: Re: gdb fails to build Message-ID: <20151127223556.GA26669@physik.fu-berlin.de> References: <20151127133145.GA26571@physik.fu-berlin.de> <56587B86.4090603@ericsson.com> <5658A991.4020302@ericsson.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <5658A991.4020302@ericsson.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2015-11/txt/msg00596.txt.bz2 On Fri, Nov 27, 2015 at 02:05:53PM -0500, Simon Marchi wrote: > I just tested building gdb (622b9eb1a6047bd3ad3e1a3f120cf7318ac25b57) using gcc master: > /opt/gcc/bin/gcc -v > gcc version 6.0.0 20151127 (experimental) (GCC) > and it works fine. Have you done a build from scratch or an incremental one? > > In gdb/build-gnulib/config.log, I have: > > 965 configure:16981: checking for max_align_t > 966 configure:16981: result: yes > > I suppose that yours says "no". I think I found the issue of mine: I accidentally start a new shell in my build script: time (make "$@" && make install) which overrides the set PATH - such that ./configure runs with /usr/bin/gcc while make runs with gcc 6. Thus, I had "result: no" but before your patch, it didn't fail. Sorry for the false alarm! * * * Still, using GCC 6 through out still fails - albeit due to an other issue: make[4]: Entering directory `/data/local_users/tobiasb/gdb/binutils-gdb/build/gold' g++ -DHAVE_CONFIG_H -I. -I../../gold -I../../gold -I../../gold/../include -I../../gold/../elfcpp -DLOCALEDIR="\"/data/local_users/tobiasb/gdb/gdb-inst/share/locale\"" -DBINDIR="\"/data/local_users/tobiasb/gdb/gdb-inst/bin\"" -DTOOLBINDIR="\"/data/local_users/tobiasb/gdb/gdb-inst/x86_64-pc-linux-gnu/bin\"" -DTOOLLIBDIR="\"/data/local_users/tobiasb/gdb/gdb-inst/x86_64-pc-linux-gnu/lib\"" -W -Wall -Werror -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -frandom-seed=dirsearch.o -I../../gold/../zlib -g -O2 -MT dirsearch.o -MD -MP -MF .deps/dirsearch.Tpo -c -o dirsearch.o ../../gold/dirsearch.cc ../../gold/dirsearch.cc:125:1: error: ‘{anonymous}::Dir_caches::~Dir_caches()’ defined but not used [-Werror=unused-function] Dir_caches::~Dir_caches() ^~~~~~~~~~ That's with GDB 622b9eb1a6047bd3ad3e1a3f120cf7318ac25b57 and GCC 335ce86cb6cea8046993ab93d573316fd9ff798c (r231023). I wonder why that didn't show up with before when configuring with GCC 4.4 and building GCC 6. I assume it didn't show up for you as you didn't use '--enable-ld --enable-gold' - or did you also build gold? Cheers, Tobias