From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 61054 invoked by alias); 21 Dec 2016 21:15:51 -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 61035 invoked by uid 89); 21 Dec 2016 21:15:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-4.0 required=5.0 tests=AWL,BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=died X-HELO: camailhost.cavium.com Received: from camailhost.cavium.com (HELO camailhost.cavium.com) (12.108.191.230) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 21 Dec 2016 21:15:40 +0000 Received: from sellcey-lt.caveonetworks.com ([10.18.104.211]) by camailhost.cavium.com (8.14.7/8.14.7) with ESMTP id uBLLFcWq018888 for ; Wed, 21 Dec 2016 13:15:38 -0800 Received: from sellcey-lt.caveonetworks.com (localhost [127.0.0.1]) by sellcey-lt.caveonetworks.com (8.15.2/8.15.2/Debian-3) with ESMTP id uBLLFcDL014870 for ; Wed, 21 Dec 2016 13:15:38 -0800 Received: (from sellcey@localhost) by sellcey-lt.caveonetworks.com (8.15.2/8.15.2/Submit) id uBLLFbxb014869; Wed, 21 Dec 2016 13:15:37 -0800 Date: Wed, 21 Dec 2016 21:15:00 -0000 From: Steve Ellcey Message-Id: <201612212115.uBLLFbxb014869@sellcey-lt.caveonetworks.com> To: gdb-patches@sourceware.org Subject: Build problem with latest GCC (auto-load.c fails to compile) Reply-To: sellcey@cavium.com X-SW-Source: 2016-12/txt/msg00371.txt.bz2 Has anyone tried building gdb with the latest (top-of-tree) GCC sources? I just did that and the build died with message shown below. Steve Ellcey sellcey@caviumnetworks.com ../../../src/binutils-gdb/gdb/auto-load.c: In function ‘void print_scripts(VEC_loaded_script_ptr*)’: ../../../src/binutils-gdb/gdb/auto-load.c:1317:52: error: argument 1 null where non-null expected [-Werror=nonnull] sizeof (loaded_script_ptr), sort_scripts_by_name); ^ In file included from /home/ubuntu/sellcey/test-ifunc/install-init/include/c++/7.0.0/cstdlib:75:0, from /home/ubuntu/sellcey/test-ifunc/install-init/include/c++/7.0.0/stdlib.h:36, from build-gnulib/import/stdlib.h:36, from ../../../src/binutils-gdb/gdb/common/common-defs.h:53, from ../../../src/binutils-gdb/gdb/defs.h:28, from ../../../src/binutils-gdb/gdb/auto-load.c:20: /usr/include/stdlib.h:764:13: note: in a call to function ‘void qsort(void*, size_t, size_t, __compar_fn_t)’ declared here extern void qsort (void *__base, size_t __nmemb, size_t __size, ^~~~~ cc1plus: all warnings being treated as errors Makefile:1880: recipe for target 'auto-load.o' failed make[2]: *** [auto-load.o] Error 1 make[2]: Leaving directory '/home/ubuntu/sellcey/test-ifunc/obj/binutils-gdb/gdb' Makefile:10455: recipe for target 'all-gdb' failed make[1]: *** [all-gdb] Error 2 make[1]: Leaving directory '/home/ubuntu/sellcey/test-ifunc/obj/binutils-gdb' Makefile:850: recipe for target 'all' failed make: *** [all] Error 2