From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 99223 invoked by alias); 27 Nov 2015 13:31:55 -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 99194 invoked by uid 89); 27 Nov 2015 13:31:54 -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 13:31:52 +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 <1a2J7t-0020nW-GN>; Fri, 27 Nov 2015 14:31:49 +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 <1a2J7t-000aLa-Ee>; Fri, 27 Nov 2015 14:31:49 +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 1a2J7p-0000Uz-Nv; Fri, 27 Nov 2015 14:31:45 +0100 Received: from tburnus by login1.physik.fu-berlin.de with local (Exim 4.80 #3 (Debian)) id 1a2J7p-0007gs-HL; Fri, 27 Nov 2015 14:31:45 +0100 Date: Fri, 27 Nov 2015 13:31:00 -0000 From: Tobias Burnus To: Simon Marchi , gdb-patches@sourceware.org Subject: gdb fails to build (was: Re: [PATCH v2 0/3] Remote thread name support) Message-ID: <20151127133145.GA26571@physik.fu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1448488138-2360-1-git-send-email-simon.marchi@ericsson.com> User-Agent: Mutt/1.5.21 (2010-09-15) X-SW-Source: 2015-11/txt/msg00582.txt.bz2 Hello all, today, I fail to build gdb using GCC 6; looking at the changes, the culprit seems to be this patch set. (I don't know whether it caused the issue or just revealed it.) In any case, using yesterday's GDB with yesterday's GCC worked. The error I see is for remove.c - using stddef.h via common-defs.h: gcc -g -O2 -I. -I../../gdb -I../../gdb/common -I../../gdb/config -DLOCALEDIR="\"gdb/gdb-inst/share/locale\"" -DHAVE_CONFIG_H -I../../gdb/../include/opcode -I../../gdb/../opcodes/.. -I../../gdb/../readline/.. -I../../gdb/../zlib -I../bfd -I../../gdb/../bfd -I../../gdb/../include -I../libdecnumber -I../../gdb/../libdecnumber -I../../gdb/gnulib/import -Ibuild-gnulib/import -DTUI=1 -Ipython/python/include/python2.7 -Ipython/python/include/python2.7 -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wpointer-sign -Wmissing-prototypes -Wdeclaration-after-statement -Wmissing-parameter-type -Wold-style-declaration -Wold-style-definition -Wformat-nonliteral -Werror -c -o remote.o -MT remote.o -MMD -MP -MF .deps/remote.Tpo ../../gdb/remote.c In file included from build-gnulib/import/stdio.h:53:0, from ../../gdb/common/common-defs.h:31, from ../../gdb/defs.h:28, from ../../gdb/remote.c:22: build-gnulib/import/stddef.h:104:3: error: conflicting types for ‘max_align_t’ } max_align_t; ^ In file included from build-gnulib/import/stddef.h:55:0, from build-gnulib/import/stdio.h:53, from ../../gdb/common/common-defs.h:31, from ../../gdb/defs.h:28, from ../../gdb/remote.c:22: gcc/gcc-trunk/lib/gcc/x86_64-pc-linux-gnu/6.0.0/include/stddef.h:429:3: note: previous declaration of ‘max_align_t’ was here } max_align_t; ^ The definitions are as follows. GCC 6: typedef struct { long long __max_align_ll __attribute__((__aligned__(__alignof__(long long)))); long double __max_align_ld __attribute__((__aligned__(__alignof__(long double)))); } max_align_t; GDB's build-gnulib: typedef union { char *__p _GL_STDDEF_ALIGNAS (char *); double __d _GL_STDDEF_ALIGNAS (double); long double __ld _GL_STDDEF_ALIGNAS (long double); long int __i _GL_STDDEF_ALIGNAS (long int); } max_align_t; Cheers, Tobias