From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 5EDBE3858D35 for ; Sat, 7 Jan 2023 16:15:37 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5EDBE3858D35 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEBr5-0001ve-9B; Sat, 07 Jan 2023 11:15:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=mS4pUtGrEl5XDxC5yBiXI4BPmULptzE0WZC3ApZOChw=; b=U1Ye/cUrmCUH a0xikdhLub1PIrEKvyVn43TBb3kSNajxzJ41eHqU+Z3HzOLAiCgNzXPr2Su6LDFHnF7zSNuUbCVGM JnanjdjPe1Jntf/eI5BzQabvS/DsKqDKkNdK5zjWdaAlbDLb8Fglvn8npc4Ube9h8oxNFHRySPRBo Jy++mVF45xPlYuKY4qiQh8RW1Jbnzk099djL9UvRbJNiU7YMyENss/n17JS2tyl1wWdCasvrHcLse e/ML9AO3BO1fnxigfljg/9grNmlJ3GHnvGz1J2sX/pzWYufCUBPyTAksCBluF8LvWuaEJtDlEP+gl itkS2q+SnwJ9qgHBtSGifw==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pEBr4-0004ZN-GT; Sat, 07 Jan 2023 11:15:34 -0500 Date: Sat, 07 Jan 2023 18:15:55 +0200 Message-Id: <83y1qeqq10.fsf@gnu.org> From: Eli Zaretskii To: schwab@linux-m68k.org CC: gdb-patches@sourceware.org In-Reply-To: <83zgauqqa5.fsf@gnu.org> (message from Eli Zaretskii via Gdb-patches on Sat, 07 Jan 2023 18:10:26 +0200) Subject: Re: Two observations using GDB 13 snapshot References: <83h6xugc5v.fsf@gnu.org> <83r0w6uaad.fsf@gnu.org> <87fscmemeo.fsf@linux-m68k.org> <83358mu1tv.fsf@gnu.org> <87bknaek9z.fsf@linux-m68k.org> <83v8lisjlx.fsf@gnu.org> <87lemeh4wz.fsf@igel.home> <83h6x2sb5x.fsf@gnu.org> <87cz7qh2db.fsf@igel.home> <83a62usabj.fsf@gnu.org> <878rieh194.fsf@igel.home> <838ries9je.fsf@gnu.org> <874jt2h0hq.fsf@igel.home> <835ydis7qt.fsf@gnu.org> <87zgaufj4w.fsf@igel.home> <83zgauqqa5.fsf@gnu.org> X-Spam-Status: No, score=1.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_BARRACUDACENTRAL,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > Date: Sat, 07 Jan 2023 18:10:26 +0200 > Cc: gdb-patches@sourceware.org > From: Eli Zaretskii via Gdb-patches > > > >> That does not happen for me. Did you configure with --enable-shared? > > > > > > No. Why would I need to? > > > > Without it, libtool should have no reason to put gdb in .libs. > > I see. Well, here it is. Could it be related to the warnings I got from libtool during the build: /bin/sh ./libtool --tag=CC --mode=link gcc -W -Wall -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wstack-usage=262144 -Wno-format -Werror -O2 -gdwarf-4 -g3 -release `cat libtool-soversion` -Wl,--stack,12582912 -o libbfd.la -rpath d:/usr/lib archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo cache.lo coff-bfd.lo compress.lo corefile.lo elf-properties.lo format.lo hash.lo init.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo section.lo simple.lo stab-syms.lo stabs.lo syms.lo targets.lo binary.lo ihex.lo srec.lo tekhex.lo verilog.lo `cat ofiles` d:/usr/lib/libintl.a d:/usr/lib/libiconv.a -lz *** Warning: Trying to link with static lib archive d:/usr/lib/libintl.a. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because the file extensions .a of this argument makes me believe *** that it is just a static archive that I should not use here. *** Warning: Trying to link with static lib archive d:/usr/lib/libiconv.a. *** I have the capability to make that library automatically link in when *** you link to this library. But I can only do this if you have a *** shared version of the library, which you do not appear to have *** because the file extensions .a of this argument makes me believe *** that it is just a static archive that I should not use here. libtool: link: warning: undefined symbols not allowed in i686-pc-mingw32 shared libraries Same warning in opcodes and in ibctf. I ignored those, because they don't prevent the build, but maybe libtool acted as if --enable-shared was specified, without me saying so?