From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 34926 invoked by alias); 30 Aug 2017 12:18:40 -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 34868 invoked by uid 89); 30 Aug 2017 12:18:39 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.7 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=answering X-HELO: dgw.wapice.com Received: from dgw.wapice.com (HELO dgw.wapice.com) (81.209.51.126) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Aug 2017 12:18:37 +0000 Received: from dgw.wapice.com (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 1D72A1D8586_9A6AD1AB for ; Wed, 30 Aug 2017 12:18:34 +0000 (GMT) Received: from EDB2.wapice.localdomain (unknown [10.0.4.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (Client CN "edb2.wapice.localdomain", Issuer "wapice-AD0-CA" (not verified)) by dgw.wapice.com (Sophos Email Appliance) with ESMTPS id D07D81D57C5_9A6AD19F for ; Wed, 30 Aug 2017 12:18:33 +0000 (GMT) Received: from EDB3.wapice.localdomain (10.0.4.81) by EDB2.wapice.localdomain (10.0.4.80) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Wed, 30 Aug 2017 15:18:33 +0300 Received: from EDB3.wapice.localdomain ([fe80::2090:37a9:cd92:40d9]) by EDB3.wapice.localdomain ([fe80::2090:37a9:cd92:40d9%13]) with mapi id 15.00.1178.000; Wed, 30 Aug 2017 15:18:33 +0300 From: =?iso-8859-1?Q?Lassi_Niemist=F6?= To: "gdb@sourceware.org" Subject: RE: Build root location affects debugging on PowerPC Date: Wed, 30 Aug 2017 12:18:00 -0000 Message-ID: References: <659baa98c7344fd2af55c359c1133681@EDB3.wapice.localdomain> In-Reply-To: <659baa98c7344fd2af55c359c1133681@EDB3.wapice.localdomain> x-ms-exchange-transport-fromentityheader: Hosted Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes X-SW-Source: 2017-08/txt/msg00073.txt.bz2 Answering to myself: Root cause for debugging to fail on PowerPC were the rpaths auto-planted in= to my binaries by CMake. After using set(CMAKE_SKIP_BUILD_RPATH TRUE), the = debugging started working as it should independent from the build root loca= tion. Not sure why it was not an issue on my x86 build, maybe because there= I add some rpaths manually and this may stop CMake from autoplanting them. =20 Tried my best to make the build completely deterministic but hitting the bu= g https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D65015 and thus the CRC par= t of --add-gnu-debuglink will still change my binary a little bit every ti= me I build. Another non-determinism is the LTO I use for some small binaries, but that = is another discussion. I am splitting the debug information to separate debug file using objcopy a= nd thus have used --add-gnu-debuglink. If someone knows a way to allow the = debugging without the link, I am interested.=20=20 > will file a bug report about the 8.0=20 It existed already, so just posted some material for easy recreation on any= PC: https://sourceware.org/bugzilla/show_bug.cgi?id=3D21603 -Lassi N.