From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20875 invoked by alias); 21 Apr 2016 09:09:49 -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 20836 invoked by uid 89); 21 Apr 2016 09:09:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=buildbot@sergiodj.net, U*buildbot, D*sergiodj.net, buildbotsergiodjnet X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Thu, 21 Apr 2016 09:09:38 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0CD887F36F; Thu, 21 Apr 2016 09:09:37 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u3L99ZWK003276; Thu, 21 Apr 2016 05:09:36 -0400 Subject: 32-bit buildbot builders broken [Re: Your commit 'Build GDB as a C++ program by default' broke GDB] To: sergiodj+buildbot@sergiodj.net, "gdb@sourceware.org" , Sergio Durigan Junior References: From: Pedro Alves Message-ID: <571898CF.6060906@redhat.com> Date: Thu, 21 Apr 2016 09:09:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-04/txt/msg00043.txt.bz2 On 04/21/2016 12:04 AM, sergiodj+buildbot@sergiodj.net wrote: > Hello there, > > Your commit: > > Build GDB as a C++ program by default > a23585089d7ba710b238d3d1ab3d34320afa48d0 > > broke GDB. Please fix it, or the GDB gods will get you. > > Full Build URL: > > This is "Fedora-i686", a 32-bit builder. > > g++ -g -O2 -I. -I../../binutils-gdb/gdb -I../../binutils-gdb/gdb/common > -I../../binutils-gdb/gdb/config ... > -I../../binutils-gdb/gdb/../libdecnumber -I../../binutils-gdb/gdb/gnulib/import -Ibuild-gnulib/import -DTUI=1 -I/usr/include/python2.7 -I/usr/include/python2.7 -Wall -Wpointer-arith -Wno-unused -Wunused-value -Wunused-function -Wno-switch -Wno-char-subscripts -Wempty-body -Wno-sign-compare -Wno-write-strings -Wno-narrowing -Wformat-nonliteral -Werror -c -o linux-thread-db.o -MT linux-thread-db.o -MMD -MP -MF .deps/linux-thread-db.Tpo ../../binutils-gdb/gdb/linux-thread-db.c > In file included from ../../binutils-gdb/gdb/i386-linux-nat.c:25:0: > ../../binutils-gdb/gdb/i386-linux-nat.c: In function void fetch_regs(regcache*, int): > ../../binutils-gdb/gdb/i386-linux-nat.c:207:46: error: cast from elf_greg_t (*)[27] {aka long long unsigned int (*)[27]} to int loses precision [-fpermissive] > if (ptrace (PTRACE_GETREGS, tid, 0, (int) ®s) < 0) ... however this error is exactly what you get if you compile with a 64-bit compiler, and forget to pass -m32 to gcc/g++. IOW, it compiles i386-linux-nat.c as if for a 64-bit host, which fails. So I suspect the builder is using CC="gcc -m32", and now that a C++ compiler is involved, it needs to be updated to pass CXX="g++ -m32" as well. Thanks, Pedro Alves