* bug#52711: undefined reference to '__muloti4'
@ 2021-12-21 19:30 Alan Third
2021-12-21 19:47 ` Eli Zaretskii
0 siblings, 1 reply; 7+ messages in thread
From: Alan Third @ 2021-12-21 19:30 UTC (permalink / raw)
To: 52711
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.
I'm not sure when the problem started as I haven't built Emacs from
source on this machine in at least a couple of weeks.
--
Alan Third
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#52711: undefined reference to '__muloti4'
2021-12-21 19:30 bug#52711: undefined reference to '__muloti4' Alan Third
@ 2021-12-21 19:47 ` Eli Zaretskii
2021-12-21 20:12 ` Alan Third
0 siblings, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2021-12-21 19:47 UTC (permalink / raw)
To: Alan Third; +Cc: 52711
> Date: Tue, 21 Dec 2021 19:30:42 +0000
> From: Alan Third <alan@idiocy.org>
>
> 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.)
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#52711: undefined reference to '__muloti4'
2021-12-21 19:47 ` Eli Zaretskii
@ 2021-12-21 20:12 ` Alan Third
2021-12-21 20:17 ` Eli Zaretskii
2021-12-21 23:41 ` Paul Eggert
0 siblings, 2 replies; 7+ messages in thread
From: Alan Third @ 2021-12-21 20:12 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: eggert, 52711
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 <alan@idiocy.org>
> >
> > 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 <eggert@cs.ucla.edu>
Date: Sat Dec 18 16:12:38 2021 -0800
Update from gnulib
I think the actual call is deep within some nested macros.
--
Alan Third
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#52711: undefined reference to '__muloti4'
2021-12-21 20:12 ` Alan Third
@ 2021-12-21 20:17 ` Eli Zaretskii
2021-12-21 21:26 ` Alan Third
2021-12-21 23:41 ` Paul Eggert
1 sibling, 1 reply; 7+ messages in thread
From: Eli Zaretskii @ 2021-12-21 20:17 UTC (permalink / raw)
To: Alan Third; +Cc: eggert, 52711
> Date: Tue, 21 Dec 2021 20:12:07 +0000
> From: Alan Third <alan@idiocy.org>
> Cc: bug-gnu-emacs@gnu.org, Paul Eggert <eggert@cs.ucla.edu>
>
> 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 <alan@idiocy.org>
> > >
> > > 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 <eggert@cs.ucla.edu>
> 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?
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#52711: undefined reference to '__muloti4'
2021-12-21 20:17 ` Eli Zaretskii
@ 2021-12-21 21:26 ` Alan Third
0 siblings, 0 replies; 7+ messages in thread
From: Alan Third @ 2021-12-21 21:26 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: eggert, 52711
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 <alan@idiocy.org>
> > Cc: bug-gnu-emacs@gnu.org, Paul Eggert <eggert@cs.ucla.edu>
> >
> > 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 <alan@idiocy.org>
> > > >
> > > > 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 <eggert@cs.ucla.edu>
> > 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
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#52711: undefined reference to '__muloti4'
2021-12-21 20:12 ` Alan Third
2021-12-21 20:17 ` Eli Zaretskii
@ 2021-12-21 23:41 ` Paul Eggert
2021-12-22 13:53 ` Alan Third
1 sibling, 1 reply; 7+ messages in thread
From: Paul Eggert @ 2021-12-21 23:41 UTC (permalink / raw)
To: Alan Third; +Cc: 52711
On 12/21/21 12:12, Alan Third wrote:
> Looks like it's gnulib:
Indeed it is. In a recent Gnulib change I misspelled "__clang_major__"
in an ifdef, which caused intprops.h to incorrectly assume that you were
running Clang 14 (which isn't out yet) and therefore intprops.h did not
work around Clang bug 16404, a bug that is present on your Clang
11-based platform.
Sorry about that. I corrected the misspelling in Gnulib and propagated
the latest Gnulib into Emacs, so it should work now.
^ permalink raw reply [flat|nested] 7+ messages in thread
* bug#52711: undefined reference to '__muloti4'
2021-12-21 23:41 ` Paul Eggert
@ 2021-12-22 13:53 ` Alan Third
0 siblings, 0 replies; 7+ messages in thread
From: Alan Third @ 2021-12-22 13:53 UTC (permalink / raw)
To: Paul Eggert; +Cc: 52711-done
On Tue, Dec 21, 2021 at 03:41:51PM -0800, Paul Eggert wrote:
> On 12/21/21 12:12, Alan Third wrote:
> > Looks like it's gnulib:
>
> Indeed it is. In a recent Gnulib change I misspelled "__clang_major__" in an
> ifdef, which caused intprops.h to incorrectly assume that you were running
> Clang 14 (which isn't out yet) and therefore intprops.h did not work around
> Clang bug 16404, a bug that is present on your Clang 11-based platform.
>
> Sorry about that. I corrected the misspelling in Gnulib and propagated the
> latest Gnulib into Emacs, so it should work now.
Thanks, Paul. That's it sorted now.
--
Alan Third
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2021-12-22 13:53 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-21 19:30 bug#52711: undefined reference to '__muloti4' Alan Third
2021-12-21 19:47 ` Eli Zaretskii
2021-12-21 20:12 ` Alan Third
2021-12-21 20:17 ` Eli Zaretskii
2021-12-21 21:26 ` Alan Third
2021-12-21 23:41 ` Paul Eggert
2021-12-22 13:53 ` Alan Third
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).