From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id u+rKHSD1VGVgHAcAWB0awg (envelope-from ) for ; Wed, 15 Nov 2023 11:43:12 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=ibm.com header.i=@ibm.com header.a=rsa-sha256 header.s=pp1 header.b=KHoN10y4; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 6BA1D1E0D2; Wed, 15 Nov 2023 11:43:12 -0500 (EST) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 27E941E091 for ; Wed, 15 Nov 2023 11:43:10 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AC2D63858C66 for ; Wed, 15 Nov 2023 16:43:09 +0000 (GMT) Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 01DBA3858D20 for ; Wed, 15 Nov 2023 16:42:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 01DBA3858D20 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 01DBA3858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700066577; cv=none; b=n8QzVmF2yzsHT1dYhqtcIgAv8qFJy79aQfoMUakA3FeKHe5YazNZCuyd493QSB4U71J7T+kBAtbAn7P0y64A/wKhuDd7I0UWsaxrmkKYZnp8A3NrEjoNgZYMzv2n7s52N5YFax5j+pXEFMLp0TTMyT16OwpNVGb954d4lp/Df38= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1700066577; c=relaxed/simple; bh=KYXPtqnqcfQtIZNrrmSkxzB/k4VGSiB6ey3HPIoaOvY=; h=DKIM-Signature:Message-ID:Subject:From:To:Date:Mime-Version; b=GJwsUYiU9B4eOr2uPRw3GXEOB+PpxtB5sqUSNX3Fx1lBCKvqauU9FFVYBoROEnAfISxpZwLdjrJLTEs/QT6fLk1sSRR52wnZLpNtT2CEuapUUOqFyhzL8ucL284efAKu6Q3Eu5hQmaJ0O1+9o3W74UB1bJLQ73U2/ZH1cftWQfc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353727.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 3AFFRRKp024142; Wed, 15 Nov 2023 16:42:53 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : subject : from : to : cc : date : in-reply-to : references : content-type : mime-version : content-transfer-encoding; s=pp1; bh=69gSG/MSOWinQ1mnZoyqQRgKB8Wa9G+jJOGhlYcObVM=; b=KHoN10y4vZn/WOb1GQqSLo0ws4eHIZZtSZhq1s/JHa/FO6eDAQgxFb7CcGKU0hXsi6xW 4hfvnea+L5FJ6E7v/URlc5DYf9mmy+bjd531k9/8UPqtXsWJEhe8iTJu2ssA4Qoy05ez StKMn/WTGDAWc03JXovulOXIMN9Ws+98vzEkrxQrQh6CJlwzreGtClk5TzHTSBLIDToB fahja0KlNivpkRbd43ph7xZampEzci1lDHG6uGg8MjSdsSBjfrIW10VQbSTxSsA5F8Uy hwG5+FwDuwjiKLlfpruWr3zXnt6IDg6AOiIAGc1V3U8EDRBBysFrSduxjFqKltgjwb4h 0A== Received: from ppma11.dal12v.mail.ibm.com (db.9e.1632.ip4.static.sl-reverse.com [50.22.158.219]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3ud0n5a2nf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 16:42:53 +0000 Received: from pps.filterd (ppma11.dal12v.mail.ibm.com [127.0.0.1]) by ppma11.dal12v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 3AFG60l9031637; Wed, 15 Nov 2023 16:42:51 GMT Received: from smtprelay05.dal12v.mail.ibm.com ([172.16.1.7]) by ppma11.dal12v.mail.ibm.com (PPS) with ESMTPS id 3uapn1r3nh-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 15 Nov 2023 16:42:51 +0000 Received: from smtpav05.dal12v.mail.ibm.com (smtpav05.dal12v.mail.ibm.com [10.241.53.104]) by smtprelay05.dal12v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 3AFGgoTs40370600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 15 Nov 2023 16:42:50 GMT Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A434258056; Wed, 15 Nov 2023 16:42:50 +0000 (GMT) Received: from smtpav05.dal12v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1437C58052; Wed, 15 Nov 2023 16:42:50 +0000 (GMT) Received: from wecm-9-67-110-146.wecm.ibm.com (unknown [9.67.110.146]) by smtpav05.dal12v.mail.ibm.com (Postfix) with ESMTP; Wed, 15 Nov 2023 16:42:49 +0000 (GMT) Message-ID: <504ba270f8a70484ea6135dea17a59fa74e94de8.camel@linux.ibm.com> Subject: Re: Ada compile with -fvar-tracking From: Carl Love To: Tom Tromey , cel@linux.ibm.com Cc: gdb-patches@sourceware.org Date: Wed, 15 Nov 2023 08:42:49 -0800 In-Reply-To: <87a5rfnjl2.fsf@tromey.com> References: <871qcsp1h9.fsf@tromey.com> <87ttpongbg.fsf@tromey.com> <1d5e5408487d26a90cded2f599cba75ee60c2c6b.camel@linux.ibm.com> <87a5rfnjl2.fsf@tromey.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.5 (3.28.5-22.el8) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: H6vuUpSTN3hHUHFujP3l5WvJ95hmC0v8 X-Proofpoint-GUID: H6vuUpSTN3hHUHFujP3l5WvJ95hmC0v8 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.987,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2023-11-15_16,2023-11-15_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 phishscore=0 spamscore=0 priorityscore=1501 suspectscore=0 bulkscore=0 mlxscore=0 adultscore=0 clxscore=1015 lowpriorityscore=0 mlxlogscore=501 malwarescore=0 impostorscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311060000 definitions=main-2311150128 X-Spam-Status: No, score=-5.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Tom: On Wed, 2023-11-15 at 08:04 -0700, Tom Tromey wrote: > > > > > > "Carl" == Carl Love writes: > > Carl> I have attached the patch, followed by the entire log > file. Hopefully > Carl> you can see something I am missing. Thanks for the help. > > Well, it is definitely a mystery to me. > > A pretty normal failure mode is that the compiler emits some warning > or > something, and dejagnu thinks this is an error. This doesn't seem to > be > happening in your case. > > Carl> compilation failed: gcc -c -I./ -fvar-tracking > -I/home/carll/GDB/build-ada/gdb/testsuite/../../../binutils-gdb- > ada/gdb/testsuite/gdb.ada/finish-large -g -I- > /home/carll/GDB/binutils-gdb-ada/gdb/testsuite/gdb.ada/finish- > large/p.adb > > I wonder if this is exiting with a non-zero status. > > It's hard to imagine what else it could be. Like could there be a > message but dejagnu isn't putting it into the log? > > What happens if you 'cd' into the appropriate subdir in the source > tree > and invoke gnatmake yourself? I think earlier you said this worked, > but > it's good to start with a clean build tree (hence srcdir -- you can > 'git > clean .' to nuke the build artifacts) Some good ideas. So, I cloned a clean copy and cd to the source directory and then took each of the commands from the log file and ran them with the appropriate input directory paths putting the output in the current directory. I then ran echo $? to see the exit code for each command. I didn't see any errors or warnings from any of the commands. The exit code was 0 for each command. I then dumped the dwarf on the binary and again verified that it now contains the DW_TAG_call_site entries that are needed. Yea, I was hoping I would see a bad exit code that would give me a clue. carll@ltcd97-lp3:~/GDB/binutils-gdb-ada/gdb/testsuite/gdb.ada/finish-large$ gcc -I./ -fvar-tracking -c -I . -g -I- p.adb carll@ltcd97-lp3:~/GDB/binutils-gdb-ada/gdb/testsuite/gdb.ada/finish-large$ echo $? 0 carll@ltcd97-lp3:~/GDB/binutils-gdb-ada/gdb/testsuite/gdb.ada/finish-large$ gcc -c -I./ -fvar-tracking -I/. -g -I- ./pck.adb carll@ltcd97-lp3:~/GDB/binutils-gdb-ada/gdb/testsuite/gdb.ada/finish-large$ echo $? 0 carll@ltcd97-lp3:~/GDB/binutils-gdb-ada/gdb/testsuite/gdb.ada/finish-large$ gnatbind -I. -x p.ali carll@ltcd97-lp3:~/GDB/binutils-gdb-ada/gdb/testsuite/gdb.ada/finish-large$ echo $? 0 carll@ltcd97-lp3:~/GDB/binutils-gdb-ada/gdb/testsuite/gdb.ada/finish-large$ gnatlink p.ali -g -lm -o p carll@ltcd97-lp3:~/GDB/binutils-gdb-ada/gdb/testsuite/gdb.ada/finish-large$ echo $? 0 carll@ltcd97-lp3:~/GDB/binutils-gdb-ada/gdb/testsuite/gdb.ada/finish-large$ readelf -wi p > p.dump carll@ltcd97-lp3:~/GDB/binutils-gdb-ada/gdb/testsuite/gdb.ada/finish-large$ emacs p.dump So, per my thoughts last night, I guess I need to dig into the expect gdb_compile_ada proceedure and see if I can find something there. Please let me know if you come up with any other ideas. Appreciate all the time and efforts from you on this. Carl