From unknown Mon Jun 16 23:43:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#39009 <39009@debbugs.gnu.org> To: bug#39009 <39009@debbugs.gnu.org> Subject: Status: checking command to parse /usr/bin/nm -B output from gcc object... failed Reply-To: bug#39009 <39009@debbugs.gnu.org> Date: Tue, 17 Jun 2025 06:43:19 +0000 retitle 39009 checking command to parse /usr/bin/nm -B output from gcc obje= ct... failed reassign 39009 libtool submitter 39009 Martin Li=C5=A1ka severity 39009 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 07 08:31:32 2020 Received: (at submit) by debbugs.gnu.org; 7 Jan 2020 13:31:32 +0000 Received: from localhost ([127.0.0.1]:47523 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iooxI-0006Xo-03 for submit@debbugs.gnu.org; Tue, 07 Jan 2020 08:31:32 -0500 Received: from lists.gnu.org ([209.51.188.17]:36430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iooxG-0006Xg-DC for submit@debbugs.gnu.org; Tue, 07 Jan 2020 08:31:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:46518) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iooxE-0002LS-7g for bug-libtool@gnu.org; Tue, 07 Jan 2020 08:31:29 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iooxD-00058h-7l for bug-libtool@gnu.org; Tue, 07 Jan 2020 08:31:28 -0500 Received: from mx2.suse.de ([195.135.220.15]:39404) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1iooxD-000587-2G for bug-libtool@gnu.org; Tue, 07 Jan 2020 08:31:27 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 265B6AD73 for ; Tue, 7 Jan 2020 13:31:26 +0000 (UTC) To: bug-libtool@gnu.org From: =?UTF-8?Q?Martin_Li=c5=a1ka?= Subject: checking command to parse /usr/bin/nm -B output from gcc object... failed Message-ID: Date: Tue, 7 Jan 2020 14:31:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.3.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] [fuzzy] X-Received-From: 195.135.220.15 X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) Hello. nm -B detection fails to be detected with -flto and -fno-common CFLAGS: configure:6307: checking command to parse /usr/bin/nm -B output from gcc object configure:6460: gcc -c -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -fno-common -flto conftest.c >&5 configure:6463: $? = 0 configure:6467: /usr/bin/nm -B conftest.o \| sed -n -e 's/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm configure:6470: $? = 0 configure:6536: gcc -o conftest -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -fno-common -flto -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables -fstack-clash-protection -Werror=return-type -g -fno-common -flto conftest.c conftstm.o >&5 conftest.c:18:12: error: variable 'nm_test_var' redeclared as function 18 | extern int nm_test_var(); | ^ conftest.c:4:6: note: previously declared here 4 | relocations are performed -- see ld's documentation on pseudo-relocs. */ | ^ lto1: fatal error: errors during merging of translation units compilation terminated. lto-wrapper: fatal error: gcc returned 1 exit status compilation terminated. /usr/lib64/gcc/x86_64-suse-linux/9/../../../../x86_64-suse-linux/bin/ld: error: lto-wrapper failed collect2: error: ld returned 1 exit status configure:6539: $? = 1 As seen, I bet problem is in conftstm.o file (for which I can't see how it's created). Probably the file is missing declaration of nm_test_var and so that it's implicitly deduced to be int nm_test_var(). Thanks, Martin