From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Alan Third Newsgroups: gmane.emacs.bugs Subject: bug#52711: undefined reference to '__muloti4' Date: Tue, 21 Dec 2021 21:26:51 +0000 Message-ID: References: <83y24dyc2i.fsf@gnu.org> <83v8zhyap9.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29131"; mail-complaints-to="usenet@ciao.gmane.io" Cc: eggert@cs.ucla.edu, 52711@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 21 22:29:36 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mzmhU-0007Qy-2N for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Dec 2021 22:29:36 +0100 Original-Received: from localhost ([::1]:54108 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mzmhS-0005wH-Sv for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Dec 2021 16:29:34 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55506) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzmfy-0003cW-Lx for bug-gnu-emacs@gnu.org; Tue, 21 Dec 2021 16:28:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44329) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mzmfy-0000sR-DH for bug-gnu-emacs@gnu.org; Tue, 21 Dec 2021 16:28:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mzmfy-0003j5-BE for bug-gnu-emacs@gnu.org; Tue, 21 Dec 2021 16:28:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Alan Third Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Dec 2021 21:28:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52711 X-GNU-PR-Package: emacs X-Debbugs-Original-Cc: bug-gnu-emacs@gnu.org, eggert@cs.ucla.edu Original-Received: via spool by submit@debbugs.gnu.org id=B.164012204014275 (code B ref -1); Tue, 21 Dec 2021 21:28:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Dec 2021 21:27:20 +0000 Original-Received: from localhost ([127.0.0.1]:55875 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzmf4-0003hw-H7 for submit@debbugs.gnu.org; Tue, 21 Dec 2021 16:27:20 -0500 Original-Received: from lists.gnu.org ([209.51.188.17]:51386) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mzmf0-0003hb-9f for submit@debbugs.gnu.org; Tue, 21 Dec 2021 16:27:04 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:55482) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzmf0-0002vK-4E for bug-gnu-emacs@gnu.org; Tue, 21 Dec 2021 16:27:02 -0500 Original-Received: from [2a01:4f8:fff0:65::8:228] (port=49579 helo=outbound.soverin.net) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mzmex-0000pW-CE; Tue, 21 Dec 2021 16:27:01 -0500 Original-Received: from smtp.soverin.net (unknown [10.10.3.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by outbound.soverin.net (Postfix) with ESMTPS id CC343D1; Tue, 21 Dec 2021 21:26:55 +0000 (UTC) Original-Received: from smtp.soverin.net (smtp.soverin.net [159.69.232.138]) by soverin.net DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=idiocy.org; s=soverin; t=1640122015; bh=qy7cjt2txGg3Jqj1FGKjM+CsQU+MQGF3xXc4XYfgmCo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=cp+uLVuuOMgwbKLdTWx9zTUIa0WaVEwnyrL7aiv7dmlHS2Fz/BaM+CN4ZyJ6CoXoc vsRS8PkHDLJzh9+pl/Yxie29d+rBgV3HKBJkFhg6DMMlGlyU36fIWyTNg8DIFClbcK 3sAPi3QSMQZUjgFed1xotZs/nTr/l2Mq7MS9x1hpTj2Za/zHoHsPgGWJ521rqK9Tzx iimbEQeXrr4QWFTwVyGJHBEBEL/mjykVKtXXsrBLWp4bvWbIfGmczjalkadNCt/y6+ xBkh7L6kQs3mEUJVuRFQZj8hIyVi7RE65jBqVggTf4K8sGDUL2Nk7pzE8fTbdRmplb c8jfsw6I3Cj8w== Original-Received: from alan by faroe.holly.idiocy.org with local (Exim 4.95-RC2) (envelope-from ) id 1mzmeq-001rV3-0Q; Tue, 21 Dec 2021 21:26:52 +0000 Mail-Followup-To: Alan Third , Eli Zaretskii , bug-gnu-emacs@gnu.org, eggert@cs.ucla.edu Content-Disposition: inline In-Reply-To: <83v8zhyap9.fsf@gnu.org> X-Host-Lookup-Failed: Reverse DNS lookup failed for 2a01:4f8:fff0:65::8:228 (failed) Received-SPF: pass client-ip=2a01:4f8:fff0:65::8:228; envelope-from=alan@idiocy.org; helo=outbound.soverin.net X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222898 Archived-At: On Tue, Dec 21, 2021 at 10:17:22PM +0200, Eli Zaretskii wrote: > > Date: Tue, 21 Dec 2021 20:12:07 +0000 > > From: Alan Third > > Cc: bug-gnu-emacs@gnu.org, Paul Eggert > > > > On Tue, Dec 21, 2021 at 09:47:49PM +0200, Eli Zaretskii wrote: > > > > Date: Tue, 21 Dec 2021 19:30:42 +0000 > > > > From: Alan Third > > > > > > > > I no longer seem to be able to build the master branch. I'm getting > > > > this error: > > > > > > > > CCLD temacs > > > > fileio.c:6261: error: undefined reference to '__muloti4' > > > > clang: error: linker command failed with exit code 1 (use -v to see invocation) > > > > make[2]: *** [Makefile:697: temacs] Error 1 > > > > > > > > I had a look but couldn't see where the problem comes from. I'm using > > > > clang on Debian testing, if that matters. > > > > > > Try using "nm -A fileio.o" to see what is that function and which code > > > calls it. > > > > > > If nothing else helps, try bisecting. (But my crystal ball says it > > > isn't Emacs that changed, it's something else on that system.) > > > > Looks like it's gnulib: > > > > f05a93e8232e6f56458ac16d733b03e96a63e930 is the first bad commit > > commit f05a93e8232e6f56458ac16d733b03e96a63e930 > > Author: Paul Eggert > > Date: Sat Dec 18 16:12:38 2021 -0800 > > Update from gnulib > > > > I think the actual call is deep within some nested macros. > > If you do "nm -A libgnu.a", do you see this function in the library? > If so, from what file does it come? No, it's not listed in the output... OK, so some searching shows it's a clang bug that was only just fixed last month, so won't be in whatever version of clang I've got access to. https://bugs.llvm.org/show_bug.cgi?id=16404 As described in that thread, adding this to LDFLAGS sorts it: --rtlib=compiler-rt --unwindlib=libgcc -- Alan Third