From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from CAN01-TO1-obe.outbound.protection.outlook.com (mail-eopbgr670114.outbound.protection.outlook.com [40.107.67.114]) by sourceware.org (Postfix) with ESMTPS id A00523851C12 for ; Fri, 22 May 2020 03:55:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org A00523851C12 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=uleth.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=nicolc@uleth.ca ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dHeMk+uufNoMPH7c7dmFpIvzfyZHeCfRO9u86u6Cl6RZWOJdyZS5PgpRsE2tRUPPS8Faj1Po63Jgb7/ko0lnNi9dbM5mPKuJnZpMDrqAi9+qmfRVlKB10IbfUMkL5G7AuuXQ8Q91CBdy7OV9zw/d4YXDsZYYPzKJEnY/xWk3GtzwCXbYIm+RIsVtj86/T5dvLWMGY8gqcsUeq1bkDcjlm4o0k3UooMFCYO5iIlKRpJ2FP4hYAd1PNAkrf6WBJfhH1TYwkK+J7eDs3kwqt+ZO5EQeL2dt+nEF/a2O/MvS0T0cMHfs3+DdO35o8rh4h0A1fG32e/fvdS8IM0JgWUIvrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8gGSPoLPx+MHV455roHl1A+vFldPuAxSbGNhPc1YKjo=; b=j6ygl5dDmsodPK2VvSpoFe1yx1nt1QCPSKW7zKlztGKNsYYI0/NYIKDiIxYVv6JwE9QgSbPltf3+47qQcwFq1yVkpxpxZGnJd2r+CZdGE3H3o1CEWPvHBqK8TsRBeCM/Sf0yDRkuONuhbTJg6xajcNsjtGs4fYJYFiIFA14u2H5LHYEcxvFO4E4sX+s9xaZ461BWdkxbMlvF1CMxkZJqxB9kumcVjQCd3fy6Iy5TBLDjAGA7vNE5Z4uPN0HdzPEQyT8myL6Bt+V1pC1Pkw29+pNaxztb42w47mwiPkauXGmXjGs2rU6NJAY8FlJrAbA9NbGHqu704Nk5tw2RaKXD3g== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uleth.ca; dmarc=pass action=none header.from=uleth.ca; dkim=pass header.d=uleth.ca; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uleth.onmicrosoft.com; s=selector2-uleth-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8gGSPoLPx+MHV455roHl1A+vFldPuAxSbGNhPc1YKjo=; b=vsfVGViHtAwbGK6ioOzHURYNxCgRYkv8JFUUysLoXW/a55tjx5n3U5eUw0FKrWhAUxYzrxdwEPNnzWzMChYP7DB8wcwbgdWkb/7SPH917BxDOacivswgcRPGHPJnpOG65M1txsJOorzOnlcwwkEW2VMEFAT7USd42t6n7My+z74= Authentication-Results: sourceware.org; dkim=none (message not signed) header.d=none;sourceware.org; dmarc=none action=none header.from=uleth.ca; Received: from YQBPR0101MB2228.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:12::16) by YQBPR0101MB1619.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:5::29) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.24; Fri, 22 May 2020 03:55:58 +0000 Received: from YQBPR0101MB2228.CANPRD01.PROD.OUTLOOK.COM ([fe80::8492:5f7d:52dd:ad46]) by YQBPR0101MB2228.CANPRD01.PROD.OUTLOOK.COM ([fe80::8492:5f7d:52dd:ad46%2]) with mapi id 15.20.3021.020; Fri, 22 May 2020 03:55:58 +0000 Subject: Re: gdb-9.1 Fails to build: "invalid cast to abstract class type" To: gdb@sourceware.org References: <052613da-fdbe-707b-3a52-da7ce437d424@uleth.ca> <1b20f6d8-9736-02d8-73dc-bc4843e36ed3@simark.ca> From: Chris Nicol Message-ID: <198ff4bc-8195-750e-84f5-e3d76974a223@uleth.ca> Date: Thu, 21 May 2020 21:55:55 -0600 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.8.0 In-Reply-To: <1b20f6d8-9736-02d8-73dc-bc4843e36ed3@simark.ca> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: MWHPR01CA0031.prod.exchangelabs.com (2603:10b6:300:101::17) To YQBPR0101MB2228.CANPRD01.PROD.OUTLOOK.COM (2603:10b6:c00:12::16) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from [192.168.0.11] (70.75.207.33) by MWHPR01CA0031.prod.exchangelabs.com (2603:10b6:300:101::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3021.23 via Frontend Transport; Fri, 22 May 2020 03:55:57 +0000 X-Originating-IP: [70.75.207.33] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 90ff3448-eb4e-4bf8-7a9e-08d7fe0408ca X-MS-TrafficTypeDiagnostic: YQBPR0101MB1619: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:10000; X-Forefront-PRVS: 04111BAC64 X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: vD4qGj3FWYy6bWspR8qCK4F9isroW/WURTTeI31/bBIuQCSL0nEvYKQtfldii88EiD5oEjGAeAen7dd9FCwn0VLfodG30hnENeW2bhBB0cNO5pupLQh6ddvfUT0zM/fYg3U1J3IfMhbQMSM+JGQvokDkknGAlAyuqnsWv6h644Xn+bOBe9OjHa0iaybG6x4QvMs77M1OFI+Gpo1X6nXzUt8veUq71q2nKoOCiaWlzd2JYKMygg2Gg8AW9uBNZWGkQ2cbqcY+X5QtX0LLL4v/tC0alNgdUQYhf0aYig6XzW0Rs17AVOI4swDqFN324vgR9XkoK/Geno5eM/kMakGqzsOWsG1HeAxhBu5XrTJwO5N/eRjAu86agjWUqj8r1SW0Nbi9Gw+07LwqD6XT3uAtmwyyJkEWN+JaSH7VnVtLuI78ZDNcmMH9yMurdkEgozlHBenD7sIaRDF6dSo2daggAg== X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:YQBPR0101MB2228.CANPRD01.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFTY:; SFS:(39860400002)(366004)(346002)(396003)(136003)(376002)(2616005)(478600001)(2906002)(6916009)(53546011)(8676002)(31686004)(31696002)(66556008)(966005)(52116002)(86362001)(66476007)(66946007)(316002)(786003)(26005)(6486002)(956004)(8936002)(16576012)(36756003)(5660300002)(16526019)(186003)(43740500002); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData: mZzWmGqvcn3IfC3fQohRAc/p1F/pmAiWd55AQiuZqvQPhYNqDMqpY0twZX6jzVnv3nX3B0BKzKeRWCR2HeCs2deDMt5MWGR0gCduWKF9loq6GTNCcvSeukFsGYV7t1tJdexdWWJQril6O3rBxuxESYOxkA5Y5NeemW3B8e0eE9pN/pSGukEWeNYJHptWJ9ZYWMXJF0UNCpC+TzrEw7Ev6HnP0o9XZZJu0z7lwlUfYsxXEdSItJohvOnlETHst3EFKMySdlaMhmV1OWib9Tapm+lFI5GxzEjsGFt+3k+pIjLjjXggRPu6AIeWMvEiKvbdRse1+vNHIpckXmbkefN7amv/8OzTleqx4jkvRyysq/u0tYLVfc1NXs8/nTI4fOhUSOspqW65fdlRG/YrhvyUeDi3+ZDTEuTO7LWexdyL7/LzIVHNITITx721HaVYjAm+ZxawZmYDEd+jTmGNXtIBpX7dokW8GPQFf+l7J0WPEFU= X-OriginatorOrg: uleth.ca X-MS-Exchange-CrossTenant-Network-Message-Id: 90ff3448-eb4e-4bf8-7a9e-08d7fe0408ca X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 May 2020 03:55:57.8965 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 8cd360c2-068b-4e36-8db5-27b35792f53f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: QkChJaSrS5ttrCKuIPmTqjOxE2mA9AMmoAoWxpqzfbpKeCz/Jtod88qrgVvtPuBO X-MS-Exchange-Transport-CrossTenantHeadersStamped: YQBPR0101MB1619 X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, MSGID_FROM_MTA_HEADER, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 22 May 2020 03:56:01 -0000 Dear Simon, Thanks for your helpful advice. Before receiving it, I retrieved version 8.3 looking for a different result, and your advice arrived just as that version crashed for the same reason. So, I did the edit on the relevant code, and this version failed at the very end when doing all the linking. I was able to find the fix for that fail from git, and built the 8.3 successfully. I am now in the process of building 9.1 with the fix you have noted. The SunBlade 100 is old, so this will take some time, but I am pretty sure it will work now. Thanks for the offer of the 9.2. I will just wait until that is formally released. I have been pulling these src files from ftp.gnu.org, but it might be a better idea to go get the code from git, as it would incorporate any intermediate bug fixes? The reason I wanted the new version of debugger was because the older one I had (a stock 6.1.1, which came with the FreeBSD 12.1 I am running) would not run against some core dumps I had from llvm-tblgen in the build of llvm90. This was being built with gcc9, a gcc9 which I built and installed on the SunBlade 100 from the /usr/ports tree. When I run the gdb-8.3 against that llvn-tblgen.core, I get an initial message "A handler for the OSI ABI "FreeBSD" is not built into this configuration of GDB. Attempting to continue with the default sparc settings". The debugger does not then provide any useful results, simply indicating that a seg fault happened at: #0 0000000000000000 in ?? () I think this is because the gdb can't figure out the arch of my SunBlade? I read some other posts of a similar nature that generated this message, which I think is built into the test code to identify architecture. I believe there is a simple workaround for this, but it is beyond my ken as a mere economist dabbling in things I should leave alone ;) Can anyone of the list provide any advice on this, please? Thank you. Sincerely, Chris. > On 5/21/2020 8:12 AM, Simon Marchi wrote: >> >> This has been fixed by this commit: >> >> >> https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=c6a42d11acf2d485bf70d76eda76fd005fcd6825 >> >> >> So if you use the master branch, you shouldn't see this error. >> >> GDB 9.2 (the bugfix release of 9.1) will be out soon, we could probably >> cherry-pick that commit in that branch if that helps you. >> >> Simon >> > > >